add brought back Kernighan's Law

This commit is contained in:
Artem Zakirullin
2025-09-06 09:20:29 +02:00
parent 1042beb6cd
commit 4a6d92d4b0

View File

@@ -340,6 +340,8 @@ Involve junior developers in architecture reviews, they will help you to identif
**Maintaining software is hard**, things break and we would need every bit of mental effort we can save. The fewer components there are in the system, the fewer issues there will be. Debugging will also be less mentally taxing.
> Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
In general, the mindset "Wow, this architecture sure feels good!" is misleading. That's "a point in time" subjective feeling, and it says nothing about the reality. A far better approach is to observe the consequences in the long run:
- Is it easy to maintain the infrastructure?
- Are there a lot of components/libraries/frameworks to update?