|
|
|
|
|
by TacticalCoder
1 day ago
|
|
> Usually, the 'don't do premature optimization' quote gets misused as an excuse to avoid careful design ... The "don't do premature optimization" mindset is the reason why we've got monstrous Electron apps doing jack shit. I hate that quote, I hate that mindset. It's the reason everything is bloated and sucks. |
|
What kills me is that a lot of the stuff just isn’t that hard. You need a data structure that you’ll later check membership of? Use a set. Might a list / array be more front-of-mind? Yes. But if you don’t need it, why? Is it noticeably slower? Not really. Is it objectively the correct answer? No, and it costs you essentially nothing, so just use the correct one.