Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> There are simple usages like shifts to divide/multiply by 2.

Clean code should not do that as the compiler will do that.

Clean code should just say what it wants to do, not replace that with low-level performance optimizations. (Also wasn't performance to be obtained from newer hardware?)



Fair point about shifting being superfluous and not clean!

I never said performance should come only from newer hardware. Only that it is possible to trade vs hardware/costs - unlike correctness and trust.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: