Author Posts
Tech

Make Node.js debugging easier with colorful log messages

I’m working on my second project in Node.js. I kind of love it. I haven’t yet decided to find out how better it performs compared to apps written in other languages, such as PHP, or Java. But writing Node.js apps is fun, mostly because you can get npm packages for almost everything you need during development. This helps you concentrate on the business logic and not worry about writing basic boilerplate code. What’s the advantage? Well, you can write a POC/MVP app really quickly. Anyway, one thing I noticed while working on the previous Node.js app was that debugging is a bit difficult if you, like me, have an obsession with having proper log messages everywhere. So one of the first things I did when I was setting up this project was write a couple of middleware methods to log all the r...

Read More
Rants

Not being an entrepreneur is not lame

I’m not an entrepreneur. I’m in the software development industry. I write code, a lot of code. And I read a lot of code too. I was a professional writer, blogging about anything tech. I was in the online ad industry for a few years, doing affiliate marketing, writing guest posts, and what not! The money was good, it was awesome. If you put your time and energy into it, almost everything has a chance to work out in your favour. Anyway, I got a chance to spend some time with a few college kids over the weekend, and I was kind of amused when I understood how that generation plans its future. They all want to start their own businesses, in the tech space. They don’t necessarily want to build products for the tech industry, but use tech in other industries. We’ve reached a point in time whe...

Read More
General

One good practice I picked up: Reading daily

Most of us don’t realise how liberating the practice of reading could be. I wasn’t a reader growing up. I obviously used to indulge in the occasional reading of magazines and comic books, a few fiction novels here and there. But I never did it daily. Even as an adult, I never really felt like reading. I was always on YouTube. Streaming videos online was my thing. Even after I bought an Amazon Kindle I didn’t do a lot of reading. But from the last year or so, I really picked up the habit of flipping pages after pages without end. I read in the train during the weekends, I read at work, I read at home after work, I read whenever and wherever possible. I can safely say that I’m addicted to it, without regrets. After I started reading, my way of thinking has changed. I’ve read everything...

Read More
RantsTech

/public/api/v1.2.3.4.5/login — Don’t do this!

If you are anything like me, or tens of thousands of others working in the web development domain, you know what the title means. We are going to talk about the widely debated “v” in API endpoints. Do I like it? Well, obviously not. I’ll tell you why. 1. It’s ugly! It makes reading documentations very difficult, because you’ll need to version your document as well. And you’ll have to make sure you are using the latest document, or the document that’s relevant to the version of API you are consuming. Wouldn’t it be a lot easier if you had one version of API and one version of documentation? I know what people over at the other camp are shouting — your APIs will change and you need to have versions. I agree, and I’ll tell you how I prefer to handle those changes later. 2. If y...

Read More
GeneralRants

When I finally get to use my master’s degree

According to my knowledge, getting a master’s degree is seen as an achievement, a sign of dedication, passion, and greater intellect. I’m of course talking about the West. I could be wrong here, but that’s what I’ve heard, read, and seen. But when you come to the East, Asia specifically, every other Tom, Dick, and Harry has a master’s degree. In fact, if he has only one, or this one over that one, he could be good for nothing! You have a master’s degree in Arts? Seriously? What the hell are you going to do with that? Go back to college and get a master’s degree in engineering, software engineering. Okay, that was a bit too much. But yes, some degrees are considered to be better than others. Engineering, business administration, and medicine degrees are in great demand. So we see most u

Read More
Tech

It’s time to move your platform to RESTful APIs

If you are into tech, there’s a good chance you already know what’s a web API. All the cool kids use it these days. It’s the new kid on the block. And it’s sexy with well defined features. Web APIs aren’t necessarily new, they’ve been around for a while. Even RESTful APIs aren’t that young. But that’s not what we are here to talk about. We are here to see why it’s time to move your platform to a more modern architecture which exposes a bunch of (RESTful) APIs for the rest of the world to add value to your platform. As a person who’s been producing and consuming APIs for the last few years, I’ve seen a lot of them. I’ve had projects where I was required to get and send data to third party servers, and this is where RESTful APIs come in. I’ve seen tens of thousands of them, scrolled ...

Read More
RantsTech

Why I love curly brackets

Curly brackets. Well, what can I say about them? They sure do have curves! And such curves, I’m addicted! I’ve been abusing them for as long as I remember. I abuse them even today. The day I saw a piece of code for the first time, over a decade ago, I knew I’d be using those curly brackets for the rest of my life. I’m talking about curly brackets in function definitions, loops, conditional statements. I wrote my first ever program in C. As you might have guessed, it was a simple Hello, World! program. I’m not going to talk about the awesome, exciting, orgasmic, feeling that your first ever program gives you. We’ve all been through that. I’m going to tell you why I love those curly brackets so much even though they are not really mandatory in some cases today. For example, if your lo...

Read More
RantsTech

Importance of proper documentation in a project

In the tech industry, it’s not uncommon for developers to work on project maintenance. You could be asked to fix a few bugs in a system which is already in production and has a user base. Or to add new features, or to refactor. Sometimes, you’d even be asked to rewrite the whole project in a different language/framework. For all these, it’s very important to setup the existing code on your development machine, and understand it properly. And for this, you need proper documentation. Most projects today have their own git repository. It’s very unlikely that a project is distributed within a team by copying it on to a storage device. Even your incomplete, two-year old pet projects are usually on GitHub. This means the projects have some sort of readme file. Well, they are not there for no re

Read More
Tech

Why I will stick to Hangouts for as long as I can before moving to Allo/Duo

Google just released their new one-to-one video calling app, Duo. The app is awesome; it’s simple, straight forward, and is tied to your phone number instead of a Google account. I’m sure some people would appreciate that last point. Allo, on the other hand, is a simple, straight forward, text messaging app. Allo is also tied to your phone number. The search engine giant is competing with the likes of WhatsApp here. About an hour back, I installed Duo and called a friend on it. I was surprised at how simple the app is. You have one button, click that and you’ll be taken to your contact list. The list of people who are already on the platform appear at the top. Separated from that list is another list of people who are not yet on the service. You can, however, invite them by sending a text

Read More
General

Introvert, extrovert, ambivert. What are you?

I googled ‘define introvert,’ I got this: a shy, reticent person. I googled ‘define extrovert,’ I got this: an outgoing, socially confident person. Googling ‘define ambivert’ gave me this: a person who has a balance of extrovert and introvert features in their personality. Broad definitions, I know. You probably already know in more detail what each of those three words mean. I’ll try to pen down my opinion of each of those later in this post if possible. I’ll start this with what we think is obvious. Gradually, I’ll try to make more sense of this by looking at what a few of my friends have to say. There’s no scientific research behind all this, by me or my friends. Each one of us is either an introvert, an extrovert, or an ambivert. Some of us kno...

Read More