The 100 worst lines of code contest
The 100 worst lines of code contestWe're looking for Classic WTF's, Stupid Tricks and AI Gone Wild
Calendar icon
24 Feb 2026
Clock icon7 min read

🏆 Announcing: The Worst 100 Lines of Code Contest

“Your code is WITHOUT A DOUBT, the WORST, I have EVER SEEN.” We’ve all heard it. We’ve all written it. Now it’s time to celebrate it.

We’re launching the Worst 100 Lines of Code Contest — a playful, slightly painful, definitely hilarious showcase of programming gone wrong.


💾 What We’re Looking For

  • Classic WTFs Endless if/else ladders, spaghetti functions, magic numbers, global variables named data2_final_REAL.

  • Stupid Tricks Hardcoded passwords, goto gymnastics, comments like // don’t touch this or it all breaks.

  • AI-Gone-Wild Code hallucinated by large language models with glorious imaginary syntax:

    forcefully await Database.beHappy() unless sadness > MAX_LEVEL;
    

🔥 Contest Rules

  1. Submit up to 100 lines of your worst code (fewer is fine).
  2. Obfuscate anything sensitive (no real credentials or client secrets).
  3. Bonus points for cringe-inducing comments.

🏅 Awards

  • Golden Spaghetti Award 🍝 for the most tangled mess.
  • AI Absurdity Award 🤖 for the funniest made-up syntax.
  • WTF Per Line Award 🧨 for the densest disaster.
  • Most GOTO's that are numbers Award

Winners get eternal bragging rights, community glory, and maybe even a T-shirt that says: “I survived the Worst Code Ever Contest.”

and, a nice electronic gift from our grab bag of toys.

Adult novelties are not anticipated

đź“© How to Enter

Drop your submission Ugly BASIC code surrounded by text

in the comments, post with hashtag #Worst100Lines. We’ll compile the best (worst?) entries into a Hall of Fame blog post.


Why Do This?

Because laughing at bad code is the only way to stay sane. Because every “worst” is a chance to learn. And because if you’ve never written bad code… you’ve never written enough code.


👉 Your move. Show us the worst you’ve ever seen (or written). Let’s make history—100 lines at a time.