How to be a better programmer

Few tips on becoming a better programmer and improving your craft

“Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young.” - Henry Ford Let me start by saying this - you do not need a fancy degree in computer science to start a career in programming. If you are really passionate about coding, you can easily get started. All you need is a computer and an internet connection. With so many high quality tutorials on the net, it is easy to get hold of the basics of any programming language. But it is not just about watching tutorials that make you a good...
Read More

CSS Filters

Let's take a look at various CSS filters

Today we take a look at various CSS filters. There was a time when for any kind of web design, Photoshop or Fireworks were the tools. Things like gradients, shadows, filters etc were possible only through image editing tools like Photoshop. So if you are one of them, you know how difficult it was to get a gradient or a shadow by creating images and repeating them - horror! But now, CSS implements most of those effects through a property called filter. Let’s see how. Few of these filters might not be supported by older browsers, but you can always...
Read More

HTTP status codes

There are various HTTP codes that are returned from a server. What do these numbers mean?

If you are an Internet user or a developer, you would’ve come across various status codes as responses. When you search a particular page and it shows up ‘404 - not found!’. What does this mean exactly? Let’s take a look at the most commonly seen HTTP responses. 100s - Hold on, we are processing! Anything that falls in the 100s represents a process that is still going on. The server has taken your request and is processing it. So you should probably wait. These are few requests that fall in this category: 100 - Continue: This is a confirmation...
Read More

CSS Measuring Units

We look into the world of measuring units used in CSS in this post

It’s programming, mathematics and art! “Everything you can imagine is real.” - Pablo Picasso CSS is fascinating! It is a mixture of programming, mathematics and art as Chris Coyier says. For me, it was just a way to change colours and sizes during the initial days of my tryst with web applications. Those were the days of tables where you aligned your content by creating tables within your HTML page. Scary as hell! But over the years I realised how cool CSS really is. It has become as important as any language in modern web development world. There is a...
Read More

Desktop apps with Electron - 2

In this post we see how to add multiple window options to the app that we made in previous post.

Creating multiple windows in your electron app In my last post, I wrote about how to get a basic Electron app up and running. But what do you do if you want a multi-window app? For example, if you want to display various user specific options once you select from the app menu. Let’s see how to get this done. In our main.js file, we add a couple of lines of code to trigger the options window when a user clicks on the options menu. For this we include a module called ipc which enables us to send commands across...
Read More

Desktop apps with Electron - 1

Let us see how we can create a desktop app using JavaScript, HTML and CSS using Electron framework.

What is the fuss all about? In my last post, I wrote about how JavaScript has taken over the programming world and now extends beyond the boundaries of a web browser. It exisits on the server side and on various desktop apps as well. So we’ll see how to create a simple desktop app using Electron. Electron is an open source framework maintained by Github to enable building cross platform desktop apps using web technologies like HTML, CSS and JavaScript. Electron was initially built to power Github’s Atom editor. Electron has been gaining popularity as is it easier for developers...
Read More

JavaScript Everywhere!

JavaScript has come a long way as a programming language, just my thoughts on it and a retrospect.

Retrospect For past few years, JavaScript has taken over the programming world like no other language before. From something like this: // simple alert box alert('How are you today?'); to something as complex as: // a Node.js server var http = require("http"); var server = http.createServer(function(request, response) { response.writeHead(200, {"Content-Type": "text/html"}); response.write("working"); }); server.listen(80); console.log("Server is listening"); My earliest memory of JavaScript is from a time when it was used to popup little messages on the screen using our ever dear friend, the alert box. It was considered to be an evil language for quite a long time. In fact...
Read More