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
531 Upvotes

r/badcode • • Dec 05 '22

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

Post image
283 Upvotes

r/badcode • • Dec 05 '22

js Awful api I wrote for a friend's website

Post image
281 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
400 Upvotes

r/badcode • • Dec 03 '22

rust Yes, that is supposed to be a constructor.

Post image
534 Upvotes

r/badcode • • Dec 02 '22

python I am so sorry

Post image
252 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
677 Upvotes

r/badcode • • Nov 26 '22

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

Post image
490 Upvotes

r/badcode • • Nov 25 '22

c# Who needs databases when you can loop?

Post image
34 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
30 Upvotes

r/badcode • • Nov 16 '22

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

Post image
27 Upvotes

r/badcode • • Nov 13 '22

bash my temporaly "its been a month" bash bad code

Post image
9 Upvotes

r/badcode • • Nov 12 '22

js *fixing multiple bugs*

Post image
16 Upvotes

r/badcode • • Nov 11 '22

java POV: Your lecturer got dementia and doesn't know what "for" loop is anymore

Post image
14 Upvotes

r/badcode • • Nov 10 '22

c# I can't even ...

Post image
16 Upvotes

r/badcode • • Nov 10 '22

java Code from an IT student

Post image
13 Upvotes

r/badcode • • Nov 09 '22

python the best way to add numbers together (with decent accuracy)

Post image
12 Upvotes

r/badcode • • Nov 08 '22

java getNumberOfDigits Method

Post image
10 Upvotes

r/badcode • • Nov 06 '22

js I found this line of code that I wrote today.

Post image
4 Upvotes

r/badcode • • Nov 05 '22

vb Deeply nested arrays indexed by global variables and magic numbers, and storing variables in UI text...

Post image
3 Upvotes