4 ms·
"Premature optimization is the root of all evil" There, that's the answer. Ok, before getting downvotes, let me explain. The current programming "best practic
by TrianguloY 4y ago
"Premature optimization is the root of all evil"
There, that's the answer.
Ok, before getting downvotes, let me explain. The current programming "best practices" is to write programs with manageable and easy to understand code, not necessarily using as less memory as possible. It is not a bad way per se, you need to spend resources where needed, and focus on optimization when it is really the problem. But with today RAM, specially in development environments, that's rarely an issue. If you have 50% of something unused, you try to use it (similar as space, no matter how much space you have, you will try to fill it just so it doesn't go to waste). The main issue, in my opinion, is that developers often forget that their program is not the only one on a user machine.
Premature optimization is evil. No optimization at all is even 'eviler'.