The story of reducing a Github Actions workflow by ~7 minutes

I was working in a nasty flacky test, the test was passing locally but was failing on Github Actions CI, but there was a deeper problem...

Read

DRY in test suites is an antipattern

One of the first things that new software engineers learn is the DRY princliple (Don't repeat yourself), the principle states that in software engineering we should try to reduce repetition by extracting common...

Read

Against closure consts

Imagine that your a developing a library that you want to open-source or you created a helper that will be used all over the codebase in a mid-to-large project. Your little library exposes a function that does what is intented but relies on some (sensible in your eyes) const values.

Read

On cohesion

As the lockdown measures slowly ease, and we are getting back to some short of normality (at least temporarily), I was kinda reflecting on what I did the last months. I became a dad recently, and I was already 1 month at home on parental leave to help my partner and just the moment that I was supposed to return to the office the German government announced the lockdown and thankfully the company I worked for decided to ask us to work from home, so I am...

Read

What I read during the lockdown

As the lockdown measures slowly ease, and we are getting back to some short of normality (at least temporarily), I was kinda reflecting on what I did the last months. I became a dad recently, and I was already 1 month at home on parental leave to help my partner and just the moment that I was supposed to return to the office the German government announced the lockdown and thankfully the company I worked for decided to ask us to work from home, so I am...

Read

Thoughts on rewards as a way to boost productivity

Just some thoughts related to monetary rewards as a way to boost employee performance. Have you ever done an activity that you truly enjoyed until someone else wanted to pay you for the work, where you suddendly stopped enjoying the activity? Have you ever got a bonus about something you did, just to see with great dissapointment that the same activity didn't lead to a bonus the next time you performed it? Have your performance dropped after it?

Read

How to create a CI/CD pipeline for a React app (2nd part)

In the 1st part of the tutorial for creating a CI/CD pipeline for a React app, we saw how to create docker containers for dev, testing and production enviroments. In this 2nd part we will see how to integrate a CI service like Travis CI and deploy our app to AWS.

Read

How to create a CI/CD pipeline for a React app (1st part)

I wanted to write a tutorial on how to dockerize an application, make it production ready, setup CI/CD workflow and eventually deploy it to AWS. So here in that first part we will see how to dockerize a react app for development, testing and...

Read

Code Smell: Too much indirection

Indirection is the ability to reference something using a name, reference, or container instead of the value itself. When it is overused though, it can make the really difficult to follow the flow of the code. Imagine the following...

Read

Code Smell: Divergent Change

Continuing the series of blog posts about code smells, let's talk about `Divergent Change`. Divergent change occurs when you have to do too many changes in a class/module to...

Read