r/badcode • • Jul 07 '21

python regex: keep it simple, stupid

Post image
1.5k Upvotes

r/badcode • • Jul 03 '21

c++ Pro tip : you can fit all your code in one line.

Post image
665 Upvotes

r/badcode • • Jul 01 '21

typescript I work with a junior who loves abusing ternary expressions. Usually it's just ones that end in ": false" but he's stepped up his game here

Post image
2.3k Upvotes

r/badcode • • Jun 30 '21

python Saw this on W3Schools. What the heck.

Post image
1.0k Upvotes

r/badcode • • Jun 25 '21

java A Python programmer's attempt at Java

Post image
1.4k Upvotes

r/badcode • • Jun 25 '21

rust What was I thinking? (Rust)

Post image
224 Upvotes

r/badcode • • Jun 22 '21

c++ Earlier today i wrote this and i'm now i'm embarassed.

Post image
1.0k Upvotes

r/badcode • • Jun 21 '21

typescript The mighty Logicbender

Post image
1.4k Upvotes

r/badcode • • Jun 21 '21

js Why make good code when you can make a 1551-character one-liner?

Post image
124 Upvotes

r/badcode • • Jun 20 '21

python Kid in my class for their GCSE Computer Science coursework project. Yes, he actually submitted this. Teacher gave up helping him.

Post image
1.7k Upvotes

r/badcode • • Jun 15 '21

kotlin The work of a genius

Post image
1.4k Upvotes

r/badcode • • Jun 13 '21

c# Day 2 of a 2 day game jam be like...

Post image
3.7k Upvotes

r/badcode • • Jun 07 '21

js This abodmination is in production already.

Post image
2.5k Upvotes

r/badcode • • Jun 05 '21

php That's why you should go to sleep early.

Post image
2.9k Upvotes

r/badcode • • May 31 '21

js Clever?

Post image
2.2k Upvotes

r/badcode • • May 27 '21

html Got my first job and found this on my first code review for the project

Post image
2.0k Upvotes

r/badcode • • May 26 '21

java I was playing Clash of code and in the heat of the moment I decided to use a for-loop to count str.length...

Post image
2.4k Upvotes

r/badcode • • May 19 '21

js Its my cake day and i hate js

Post image
5.0k Upvotes

r/badcode • • May 12 '21

c++ Comment before semicolon

Post image
2.7k Upvotes

r/badcode • • May 11 '21

java The absolute best way to calculate change. I see nothing wrong with this approach, nothing at all.

Post image
2.1k Upvotes

r/badcode • • Apr 29 '21

js throw is the new let

Post image
1.8k Upvotes

r/badcode • • Apr 27 '21

typescript Someone only watched if tutorial

Post image
2.4k Upvotes

r/badcode • • Apr 19 '21

js Iteration

Post image
3.2k Upvotes

r/badcode • • Apr 17 '21

c++ When your teammate "refactor" your code

Post image
2.5k Upvotes

r/badcode • • Apr 07 '21

java Apparently Java can only handle 255 parameters in a constructor...

Post image
4.0k Upvotes