972
you are viewing a single comment's thread
view the rest of the comments
[-] Hudell@lemmy.dbzer0.com 5 points 1 month 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.

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

Programmer Humor

29692 readers
2024 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