|
|
|
|
|
by kilgnad
1197 days ago
|
|
Here's another controversial opinion: It's the genius programmers who write the shittiest code. In my experience clean code tends to be a waste of time for geniuses because shitty code isn't really a problem for smarter people. The further away you are from genius the greater the tendency for you to write cleaner code because you need it in order to deal with the complexity. What's common among HN readers is that they think they're smart. So you may be reading this and thinking "Wait a minute, this isn't true! I'm smart and I like clean code!". Well, I hate to break it to you. The truth hurts because most likely one of those two attributes probably doesn't actually describe you. Also as a side mention, I'm a clean code Nazi. My code is really clean. |
|
I actually think how "clean" your code is depends on lots of factors. Eg.
(a) Do you care if your coworkers find it easy to modify your code?
(b) Do you feel a sense of ownership over the code you're touching?
(c) Does your organization reward delivery speed without any checks for code quality? (eg. no culture of code review)
(d) Is the code a proof-of-concept that needs validation from users before further investment?