4 ms·
"Trying too hard to avoid cloning" This is the issue I see a certain type of new rustaceans struggle with. People get so used to being able to chuck references
by nostradumbasp 2y ago
"Trying too hard to avoid cloning"
This is the issue I see a certain type of new rustaceans struggle with. People get so used to being able to chuck references around without thinking about what might actually be happening at run-time. They don't realize that they can clone, and even clone more than what might "look good", and that it is super reasonable to intentionally make a clone, and still get incredibly acceptable performance.
"Writing code in an object oriented way instead of a data oriented way"
The enterprise OOP style code habits also seem to be a struggle for some but usually ends up really liberating people to think about what their application is actually doing instead of focusing on "what is the language to describe what we want it to do".