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

Someone once told me: "optimize code for reading. In most companies, a piece of code is read 10x more than it is updated".

Usually, when you do that, you end up with simple logic and potential repetitions over complicated abstractions.



As a corollary, quite often in code there is a 'happy path', or small set of operations that people are going to be using 90% of the time. That code is going to get read even more, so make it as high quality and as simple as possible, don't mess with it unless you're very sure...




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

Search: