3 ms·
There's definitely a minimum level of code quality required so you don't want to kill yourself, but many programmers go way overboard trying to come up with 'be
by Mikeb85 5y ago
There's definitely a minimum level of code quality required so you don't want to kill yourself, but many programmers go way overboard trying to come up with 'beautiful' solutions to simple problems.
I've seen 10kloc files with magic numbers and globals everywhere, it's a nightmare. But I've also seen codebases where literally everything is encapsulated and most classes don't really do anything. There's a happy medium, and I'll take 'code that does things' over beautiful code that doesn't do anything.
At the end of the day, code that does things is what makes money.
- pkolaczk 5y agoCode that has too many indirection levels for no business purpose is bad, not good. Encapsulation is only good if it hides the things that the user of the code doesn't need to know. Loose coupling is not quality by itself - it can be either good or bad, depending on the context.