3 ms·
When you say centralizing I believe you mean coupling. When writing clean code you should reduce & abstract but not couple. Flexibility should be kept in mind.
by hunterb123 5y ago
When you say centralizing I believe you mean coupling. When writing clean code you should reduce & abstract but not couple.
Flexibility should be kept in mind. In the blog post example I would have at least abstracted the math out and there's no reason of the limitation of one handle function, you could swap them out.
Yeah I may a be a bit OCD, no I'm not trying to be clever. I'm trying to reduce complexity so I can keep the entire system in my head to optimize things easier. Don't atomize everything into tiny functions though, there's a huge middle ground.
No book gets everything right, but I recommend The Pragmatic Programmer for this sort of thing.
People seem to use wrong instances of people "cleaning code" to justify dirty code and tech debt.