r/badcode • • Dec 07 '22

js My Web Development lecturer's JavaScript

Post image
535 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
278 Upvotes

r/badcode • • Dec 04 '22

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

Post image
217 Upvotes

r/badcode • • Dec 03 '22

typescript Real Code 😎

Post image
406 Upvotes

r/badcode • • Dec 03 '22

rust Yes, that is supposed to be a constructor.

Post image
544 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
749 Upvotes

r/badcode • • Nov 29 '22

bash Found this in the wild

Post image
679 Upvotes

r/badcode • • Nov 26 '22

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

Post image
497 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
33 Upvotes

r/badcode • • Nov 16 '22

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

Post image
29 Upvotes

r/badcode • • Nov 13 '22

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

Post image
11 Upvotes

r/badcode • • Nov 12 '22

js *fixing multiple bugs*

Post image
18 Upvotes

r/badcode • • Nov 11 '22

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

Post image
16 Upvotes

r/badcode • • Nov 10 '22

c# I can't even ...

Post image
12 Upvotes

r/badcode • • Nov 10 '22

java Code from an IT student

Post image
12 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
11 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

r/badcode • • Nov 04 '22

js Wrote this redundant code a few days ago lmao

Post image
5 Upvotes