By Christian Clausen
Flexibility is essential for long-lived codebases, however, it comes at a price. It requires effort to maintain flexibility and improperly-implemented flexibility can actually make a codebase harder to maintain. In this article, I show how good flexibility can be extracted from the structure of our code with minimal effort. But before we get into that, let’s discuss what flexibility in a codebase means.
From Five Lines of Code by Christian Clausen
This article delves into when a function should call a method on an object or pass it on as an argument.