3 ms·
In short your stance is to sacrifice readability for performance. Legit in some cases. But for usual business software, code is for humans (compiler will make
by lucketone 10mo ago
In short your stance is to sacrifice readability for performance.
Legit in some cases. But for usual business software, code is for humans (compiler will make machine code intended for the machine)
- Mikhail_Edoshin 10mo agoReadability belongs to documentation. Code should have certain technical aesthetic, it should be easy to navigate it, but why its operation should be obvious more than that of any complex mechanism? Nobody demands a mechanical watch to be readable or have meaningful names for the parts. It is not just performance. A minimal component gives you flexibility: you may make the whole system performant or you may trade extra performance to reach a different goal, such as robustness or composability. It is a more fundamental principle, common to construction in general: a thing should do all it has to do and should not do anything more.
- lucketone 10mo agoOptimisation usually sacrifices some flexibility and/or robustness. Valid if needed, but exists
- deleted 10mo ago[deleted]