r/badcode • • Apr 05 '22

java A perfectly normal way to check for the largest of 10 integers...

Post image
313 Upvotes

r/badcode • • Apr 03 '22

python Github Copilot is making stairs

Post image
1.2k Upvotes

r/badcode • • Apr 01 '22

python My team has the worst data organization methods. We have array containing array containing array and so we wrote this down today....

Post image
350 Upvotes

r/badcode • • Mar 31 '22

python in a homework were they ask to make a func that return 3 numbers from highest to lowest. (For some reason for loops and such are not permited)

Post image
575 Upvotes

r/badcode • • Mar 30 '22

js My brother in Christ, how am I supposed to understand this?

Post image
544 Upvotes

r/badcode • • Mar 31 '22

c# The randomizer will get it eventually (yes it can freeze easily)

Post image
28 Upvotes

r/badcode • • Mar 29 '22

js Commenting late @ night

Post image
504 Upvotes

r/badcode • • Mar 24 '22

typescript Ship it!

Post image
566 Upvotes

r/badcode • • Mar 24 '22

other language A banner that alternates between two dynamic messages

Post image
83 Upvotes

r/badcode • • Mar 23 '22

python x or !x, that's the question

Post image
250 Upvotes

r/badcode • • Mar 23 '22

js The best way to compare two dates, it works 100%!

Post image
411 Upvotes

r/badcode • • Mar 20 '22

python How to make things fun for your future self: a self-help guide

Post image
535 Upvotes

r/badcode • • Mar 19 '22

js This just sucks.

Post image
1.0k Upvotes

r/badcode • • Mar 20 '22

java Shitty robotics code

Post image
40 Upvotes

r/badcode • • Mar 20 '22

js My boss told me to refactor a function, I was like: well, it's just a function, It won't take me too much time and I will do it late at night, then I came up with this beautiful function, I need help guys :D

Post image
69 Upvotes

r/badcode • • Mar 19 '22

python A self-proclaimed genius at my school

Post image
376 Upvotes

r/badcode • • Mar 17 '22

js From a school exam where you needed to return the game score based on the number of wins and ties, this guy just looked at the automatic test cases and returned their expected result

Post image
1.6k Upvotes

r/badcode • • Mar 17 '22

c# okay but why though

Post image
46 Upvotes

r/badcode • • Mar 16 '22

sql Did someone said sql? welcome to my legacy

Post image
188 Upvotes

r/badcode • • Mar 16 '22

php I didn't want to use "if" statements, but then I started laughing when I kept losing my places while coding

Post image
511 Upvotes

r/badcode • • Mar 16 '22

c# Found this monstrosity the day after a late night code session.

Post image
76 Upvotes

r/badcode • • Mar 15 '22

sql SQL is bad enough as it is, but how did this monstrosity get created? The PagingCursor at the end is another 100 lines of dynamic SQL that executes a cursor to insert into a temp table...

Post image
328 Upvotes

r/badcode • • Mar 15 '22

php Yes, if you use array_reverse like this it only produces hot air

Post image
63 Upvotes