3 ms·
It's typical in non-gaming teams to have any instinct to optimize beaten out of you instead of guided. Knuth's comments about premature optimization have been
by hinkley 5y ago
It's typical in non-gaming teams to have any instinct to optimize beaten out of you instead of guided.
Knuth's comments about premature optimization have been so misquoted at this point that we've gone way beyond people using it as permission not to think, they also use it as a mandate to stop other people from thinking as well.
Academics are particularly bad at falling back on aphorisms, so how one would change the curriculum to fix this would also involve changing the teachers, which as an automatic conversation killer.
In my case I was keeping my own council before anyone tried to beat it out of me, and I learned to just keep things to myself. On the plus side I know dozens of ways to refactor for legibility and 'accidentally' improve performance at the same time.
- HideousKojima 5y ago>On the plus side I know dozens of ways to refactor for legibility and 'accidentally' improve performance at the same time. My favorite is "That nested loop is kind of hard to read, how about making a dictionary/hashmap instead?"
- hinkley 5y agoI'll split this operation into a variable so it's easier to debug. Oh, now the variable is defined outside of the loop. How did that happen.
- touisteur 5y agoIf your compiler is not doing expression hoisting at -O2 in 2022, we should (collectively) ask for a refund (I know I'd be opening tickets since we pay for compiler support). Of course, very often, doing that often improves readability so it might still be a good use if your time.