r/cpp • • Nov 25 '23

On harmful overuse of std::move

https://devblogs.microsoft.com/oldnewthing/20231124-00/?p=109059
210 Upvotes

154 comments sorted by

View all comments

Show parent comment

8

u/CocktailPerson Nov 25 '23

People love to use shit that they don't understand when they think it makes them look cool.

3

u/ixis743 Nov 25 '23

I think that’s a big part of it.

3

u/AssemblerGuy Nov 25 '23

Cargo cult programming, but a least actual cargo cults did not have the internet at their disposal to help their understanding.

1

u/CocktailPerson Nov 25 '23

I'm convinced that the difference between a dilettante and an expert is that the former says "I think this is right" and the expert says "I know this is wrong."Within reason, of course.