|
|
|
|
|
by chx
3262 days ago
|
|
Ha. Check what I wrote two days ago on a different thread https://news.ycombinator.com/item?id=14708868 about great programmer habits. > easier to maintain code is king. Unless you are writing something extremely time critical do not try to be clever. A little slower is okay (and yes, I am in the performance consultancy business) if it significantly decreases the maintenance burden. Clever hacks belong to toy projects and blog posts. The next person who maintains it will be stupid to the code -- even if it's yourself. That clever hack is now a nightmare to untangle. In short: always code under the assumption that you will need to understand this when the emergency phone kicks you out of bed after two hours of sleep in the middle of the night. The CTO of Cloudflare was woken to the news of Cloudbleed at 1:26am. Now I correct myself: clever hacks belong to academia, toy projects and blog posts. |
|