📏 Less code is not the ultimate goal
Cliff Brake October 03, 2025 #coding #readability #simplicity #technical debt #programming #maintainabilityLess code is not the ultimate goal
Consider the following byte to binary C program:
int
Unless you are trying to win the International Obfuscated C Code Contest, this is not good code. In spite of what I've said before, less code is not always better. The highest goal is readable maintainable code. Sometimes we have to write more code to have readable code. An example is aligning the happy path.
Less code is more about not implementing unneeded features, cleaning up dead code, refactoring to simplify and eliminate duplicated code, etc. The goal of less code should never sacrifice readability or maintainability.