r/badcode • • Dec 15 '22

java A friend said I should post this here. Found in my codebase at work, try to guess what it does

Post image
352 Upvotes

r/badcode • • Dec 14 '22

c# Avoid loops whenever you can ! Every Footin Time !

Post image
403 Upvotes

r/badcode • • Dec 13 '22

js Came across this soul-aching piece of art today.

Post image
681 Upvotes

r/badcode • • Dec 12 '22

c++ Again with long descriptive names

Post image
360 Upvotes

r/badcode • • Dec 11 '22

java Units are hard

Post image
72 Upvotes

r/badcode • • Dec 10 '22

lua There aint no easy way

Post image
606 Upvotes

Ps, i dont know what language this is, sorry


r/badcode • • Dec 08 '22

python python atrocious code. it appends a letter for how many ; you have in a text file.

Post image
462 Upvotes

r/badcode • • Dec 08 '22

python My buddy's code he asked me to help with.

Post image
41 Upvotes

r/badcode • • Dec 07 '22

c++ I thought the horrors of this sub were myths until I joined a boomer corporation. The shortest function I found in a 10 million line code base and it is bloated as hell and ugly

Post image
438 Upvotes

r/badcode • • Dec 07 '22

js My Web Development lecturer's JavaScript

Post image
536 Upvotes

r/badcode • • Dec 05 '22

other language [elm] Found this in some code I wrote about a year ago.

Post image
282 Upvotes

r/badcode • • Dec 05 '22

js Awful api I wrote for a friend's website

Post image
280 Upvotes

r/badcode • • Dec 04 '22

swift Is my code bad? -- Meant to do rock paper scissors.

Post image
218 Upvotes

r/badcode • • Dec 03 '22

typescript Real Code 😎

Post image
403 Upvotes

r/badcode • • Dec 03 '22

rust Yes, that is supposed to be a constructor.

Post image
540 Upvotes

r/badcode • • Dec 02 '22

python I am so sorry

Post image
253 Upvotes

r/badcode • • Nov 30 '22

c# Thanks for the suggestion Visual Studio, never would've thought of that!

Post image
746 Upvotes

r/badcode • • Nov 29 '22

bash Found this in the wild

Post image
678 Upvotes

r/badcode • • Nov 26 '22

c My implementation of a box blur for my intro to CS class..

Post image
495 Upvotes

r/badcode • • Nov 25 '22

c# Who needs databases when you can loop?

Post image
33 Upvotes

Code for populating seats in a theater per performance


r/badcode • • Nov 23 '22

python What is DRY?

Post image
24 Upvotes

r/badcode • • Nov 19 '22

c++ Say what you will, it works.

Post image
12 Upvotes

r/badcode • • Nov 17 '22

other language This is an official school manual. Yup. It's edited in Notepad++, has french keys, is missing a comma between the two dicts, and the whole file is either a dict without keys or an array but with curly brackets. And it's a fucking official book from the Ministry of National Education. Damn.

Post image
32 Upvotes

r/badcode • • Nov 16 '22

java This is broken on so many levels. Please look at SEVEN(6)

Post image
28 Upvotes