On Writing a Great Pull Request
Nowadays, pull requests are essential tools to enable seamless collaboration within software teams. They’ve changed our workflows for the better and became a standard development practice. Although there are many…
Functional Object Composition and MVC
I just read a great blog post on the internet about MVC not being object-oriented, and I could not agree more — after all, we don’t peel an apple the…
How to Test Shared Behavior in Elixir
Create a new mix project if you want to follow along: $ mix new calculator $ cd calculator Suppose you have a Calculator module and a sum_list function: defmodule Calculator…
Refactoring Ruby: From Subclass to Registry
My team was given a particularly laborious task: implement responsive images throughout a legacy Rails application. Back then, the app was sending disproportionally large image files over to web browsers…
Towards Minimal, Idiomatic, and Performant Ruby Code
I try to embrace a particular way of working with code: it should be minimal, idiomatic, and performant by default. Sometimes it is necessary to trade performance for readability, or…