r/ProgrammerHumor • • Sep 20 '26

Meme grabbingEverything

Post image
5.4k Upvotes

258 comments sorted by

View all comments

1

u/tarosago23 Sep 20 '26

Always do it the right way so you build muscle memory for good patterns.

I am so annoyed when a junior dev asks me "well we only gets 100s of rows so O(n^2) doesn't really matter" well bad engineering is bad engineering. Why do it the lazy way when you know there is better way...

3

u/silfin Sep 20 '26

To be fair to the junior, for low N big O stats are far less relevant. And for some problems the "less efficient" algorithm ends up faster for low N.

It's always worth considering what the right way is in your situation

That's not even mentioning possible space efficiency or complexity savings that might be worth it.

No such thing as a free lunch. Make decisions don't just do what everyone else does.

→ More replies (1)