Latest Posts

Database Migrations with Nodejs

A database is a vital part of every complex application. Databases change very often and contain data that can even disintegrate our whole application if they get out of sync. Changing a live database, whether it's related to schema or data, can be hard. Modern apps, where Agile methodologies along with processes such as Continuous Integration apply, have raised the bar of complexity so maintaining a database separately from the application's business logic can be quite painful. Fortunately, we have »

Live the dream

Sometimes we feel like still chasing the dream. Like it is still far away.  Think again. What were you dreaming of last year? Five years ago? What about when you were 15 years old. What was your goal back then?  I feel like I'm living my last year's dream. I do. And now I dream bigger. I want to feel it again next year. And after five years. And after thirty years. I forgot that I am already living my »

Isolated Unit Tests with Sinonjs

Units in Unit Testing is the smallest unit of code. But how small? Small enough to be tested. For that matter, Unit Tests need to be isolated and for that you need stubs. Here I will use a small function and the Sinonjs to try to test it. My function does some checks and finally an HTTP call to an external service while similar functions would hit a DB. But our intention is to test the actual function and we »

Go canonical import paths & Github forks

I started playing with Golang(or just Go) this week for the first time. Go is a compiled, statically typed language and I thought it would be a great fit for situations where Node.js, my primary go-to stack, won't be a great candidate for the job. For heavy processing and problems where concurrent-first solutions must be applied. The first thing I did was to check the online tour on the official site. It's very well structured and has also »