3 ms·
when non-experts give me C++ code to optimize most of the time there are enough low-, sometimes very-low- hanging fruits which we can incrementally refactor pie
by jcelerier 4y ago
when non-experts give me C++ code to optimize most of the time there are enough low-, sometimes very-low- hanging fruits which we can incrementally refactor piece by piece into something that performs better.
when it's JS or python code.. like my man, here's your invoice for the rewrite.
> much better Rust than C++.
I really do not thing we'd agree on what is good code so I don't see a point in arguing more on this
> Such non-expert practitioners are going to lean on defaults more often than an expert
i'd like to see that. what i've seen is people who were working on safety-critical code who could not write a for-loop if their life depended on it, and most of the time people who just redo what they learned in class which is likely from a 1993 textbook. code entirely written in japanese, identifiers included, or as a french/english mix sometimes in the same identifier. it's really all over the place out there.