this post was submitted on 18 Dec 2025
712 points (98.5% liked)

Programmer Humor

27913 readers
1536 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
[–] Hudell@lemmy.dbzer0.com 2 points 4 hours ago

A friend of mine used to teach coding decades ago and one story I'll never forget is about the student who had an assignment that asked for a "for" loop to be used, but they didn't quite know how to use it so they just wrote a broken loop there and then hid a "while" loop at the far end of the line.

Code compiled, had a "for" loop and had the right output.