this post was submitted on 27 Jun 2025
798 points (98.5% liked)

Programmer Humor

24709 readers
330 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
[โ€“] pugnaciousfarter@literature.cafe 48 points 5 days ago (1 children)

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

[โ€“] Hotzilla@sopuli.xyz 3 points 5 days ago* (last edited 5 days 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.