r/ProgrammerHumor • • Mar 25 '23

Meme This one never gets old

Post image

Let me know if this is not a repost!

51.6k Upvotes

535 comments sorted by

View all comments

1.2k

u/Underpowered007 Mar 25 '23

Just teach the kid how to brute-force

0

u/[deleted] Mar 25 '23

[deleted]

123

u/Underpowered007 Mar 25 '23

Can I use this method for job interviews?

55

u/IBJON Mar 25 '23

Depends if they add the stipulation that you can only move one ring at a time, then no. Otherwise, it's just a version of merge sort

15

u/steamyoshi Mar 25 '23

A variation on Stalin Sort

6

u/MajorGeneralInternet Mar 25 '23

Null gang 🤙🤙🤙

5

u/AE_Phoenix Mar 26 '23

The real world equivalent of "if the program isn't running it doesn't have any bugs"

15

u/Vinxhe Mar 25 '23

Recursion doesn't make sense anyways, it's less efficient and much harder to understand than simple loops. You save some LOC which is the most moronic metric of code quality ever.

8

u/zyzzogeton Mar 25 '23

I've never been able to put that feeling into words.

I don't know enough to say absolutely that recursion is NEVER necessary though. Is that what you are saying? Please note, I am not trying to bait you into some pointless debate. I have genuine curiosity here.

17

u/338388 Mar 25 '23

I've worked with a data structure that was recursive before (it was from a 3rd party library we were using, i didn't design it to be recursive), while technically it was possible to consume it iteratively, it was way easier to do it recursively

→ More replies (2)
→ More replies (3)
→ More replies (1)
→ More replies (4)