Versioning database changes is as important as versioning source code. By using a database migration tool we can safely manage how the database evolves, instead of running a bunch of non versioned loose SQL files.
When it comes for validating input data, boiler plate code with a lot of if conditionals come right in the top of my head. Remembering my experience with Ruby On Rails, I was wondering if it was possible to use declarative validation in Golang, in a similar way of Active Record validations. In this article, we’ll see how to achieve that.
Let’s assume this simple domain:
Benchmarking your application is often a good idea when it comes for fine tuning its performance.
The Golang testing package contains a benchmarking facility that can be used to examine the performance of your Golang code. In this article we’ll see how to write simple benchmark tests that are able to provide us good insights about a given algorithmic solution.
Fibonacci number is a classic numerical series where each subsequent number is the sum of the previous two numbers: 1 1 2 3 5 8 13…
Let’s explore two different implementations: recursive and sequential. We’ll write both unit and benchmark…
If you’re using Makefile as your build tool to your project, chances are that you have several targets in there. Wouldn’t it be nice to properly document its usage, so a new developer coming to your project knows what are the available targets and what are they’re used for?
In real life, I have several targets in a Makefile for a bunch of…
Senior Software Engineer, commercial airplane pilot & flight instructor and self-taught bassist.