3 ms·
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 u
by bqm 3y 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.
- sweezyjeezy 3y agoAs 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...