Hacker News new | ask | show | jobs
by bqm 1054 days ago
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.

1 comments

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...