Latest Posts

Sending and receiving emails when on Github Pages

If you, like me, like to host simple little sites of yours on Github Pages, I am sure you have already reached the moment when you wanted to send emails from that site but you didn't know how to. This is how I did it. devastation.tv, my podcast for developers (for the time in Greek only) is hosted on Github Pages with a custom domain that I have purchased from Namecheap. I wanted to be able to send email »

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 »