|
|
|
|
|
by jmac01
697 days ago
|
|
Clean code leads to more testable code leads to more tests leads to better products.
Don't be so quick to dismiss "clean code" as some BS. I've seen first hand how someone writing a 500 line function struggles to test it. But splitting it up into more manageable chunks of functionality makes it easier to write a test. Imo perfectionism is chasing that last 5% performance. Clean code, design patterns etc are just good engineering practices... Not perfectionism .... |
|
This is what I don’t like about software engineering. The dogmatism. The absolutism. The more I work in the field, the less I talk about “clean code”, “ddd”, “good practices”. I find myself saying more and more “it depends”, and more often than not what the business requires is not 5 layers of code in which the concerns are separated among dozens of files and following good design patterns, but a damn single file that get things done.
There’s place for what you call good practices and clean code, but many times those things don’t lead to good products.