this post was submitted on 27 Jun 2025
781 points (98.8% liked)

Programmer Humor

24555 readers
1864 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 49 points 1 day ago (1 children)

This is very inefficient, they should be using a switch case.

[โ€“] [email protected] 3 points 12 hours ago* (last edited 12 hours ago)

For efficiency you should you GOTO, so you can join trees that end up in same position.

Like those create your own adventures books.