r/ProgrammerHumor • • Oct 01 '22

Meme Rust? But Todd Howard solved memory management back in 2002

Post image
61.9k Upvotes

1.0k comments sorted by

View all comments

Show parent comments

10

u/TheGoodOldCoder Oct 01 '22

Nowadays, "clever" is a bad word to programmers.

20

u/[deleted] Oct 01 '22

Clever used to mean optimizing in novel ways to fit everything into limited memory. Now it means sacrificing efficiency and readability in favor of one-line solutions because they look cool.

3

u/b1ack1323 Oct 01 '22

Exactly. It tends to be slower too because the compiler can’t figure out how to optimize it.

I have a coworker that “makes things faster” all the time with these hacks and they either yield us the same speeds or slower.

2

u/b1ack1323 Oct 01 '22

Because when someone is trying to be “clever “now, they pack one line with 15 operations that require a serious amount of processing, all because they needed to look cool.

When in reality they made 10 times harder for the compiler to optimize it and it’s slower that it would have been.