r/badcode • • Mar 05 '21

java Real programmers use flag and !flag for Booleans

Post image
1.2k Upvotes

r/badcode • • May 25 '21

python ...i don't think my brain was operating at 100%

Post image
1.2k Upvotes

r/badcode • • Mar 11 '21

sql My coworker's select for finding a client

Post image
1.2k Upvotes

r/badcode • • Sep 04 '21

Wtf is this

Post image
1.2k Upvotes

r/badcode • • Dec 31 '22

python Cute

Post image
1.2k Upvotes

r/badcode • • May 27 '21

java if only there was some value to indicate not true

Post image
1.2k Upvotes

r/badcode • • Jan 27 '23

kotlin Top secret code documentation

Post image
1.2k Upvotes

r/badcode • • Jul 23 '21

c# Easy trick to meet minimum test coverage

Post image
1.2k Upvotes

r/badcode • • Jan 19 '21

c# Ahh I see, apperently it´s true

Post image
1.2k Upvotes

r/badcode • • May 18 '21

java And the award for best Java Doc Comment goes to....

Post image
1.2k Upvotes

r/badcode • • Nov 28 '21

c# This is why it takes me so much time to understand my own code I wrote a minute ago.

Post image
1.2k Upvotes

r/badcode • • Jun 02 '20

java return 2;

Post image
1.2k Upvotes

r/badcode • • Jul 11 '21

python Boy, this is some real code for generating recursion errors

Post image
1.2k Upvotes

r/badcode • • Jan 20 '22

java Newbie me had just learned about the ternary operator and wanted to use it everywhere.

Post image
1.2k Upvotes

r/badcode • • Apr 17 '20

java No joke I found something like this in our code base

Post image
1.2k Upvotes

r/badcode • • Apr 03 '22

python Github Copilot is making stairs

Post image
1.2k Upvotes

r/badcode • • Apr 12 '21

python This was my first project ever, nobody told me WHERE exists in SQL so I used Python instead

Post image
1.2k Upvotes

r/badcode • • Jul 29 '21

python Was doing some bug hunting and found essentially what was a sum to n function but of O(fuck) time complexity

Post image
1.2k Upvotes

r/badcode • • Jun 18 '20

matlab Code I wrote to solve a sudoku puzzle when I had just started learning. Welcome to 1500+ lines of nested loop hell

Post image
1.2k Upvotes

r/badcode • • Aug 14 '21

python I’m surprised that this worked

Post image
1.2k Upvotes

r/badcode • • Apr 29 '20

c# Found this in a nested loop today, ever heard of j?

Post image
1.2k Upvotes

r/badcode • • Nov 08 '20

python My friend absolutely refuses to use a for loop because they are too complicated in python

Post image
1.2k Upvotes

r/badcode • • Jan 08 '21

java Just a 2nd year CS major, but I ended up in a group with non CS students that wanted to come up with the model for a sudoku assistant themselves at all costs...

Post image
1.1k Upvotes

r/badcode • • May 29 '22

java Just need to do this for all the sizes of slimes....

Post image
1.1k Upvotes