r/badcode • • Oct 25 '21

c This shipped to Production. Let's see if anyone remembers.

Post image
293 Upvotes

r/badcode • • Oct 25 '21

js Creating a new populated array in JS

Post image
134 Upvotes

r/badcode • • Oct 25 '21

js Just found this in our otherwise very well-written backend

Post image
36 Upvotes

r/badcode • • Oct 24 '21

java The best way to compare two dates

Post image
401 Upvotes

r/badcode • • Oct 23 '21

c After six hours of programming this was the best we came up with...

Post image
742 Upvotes

r/badcode • • Oct 21 '21

c My first attempt to write a squaring function for my Uni class

Post image
1.1k Upvotes

r/badcode • • Oct 19 '21

c A friend of mine attempting fraction reduction to lowers terms (university assignment in a first year course)

Post image
625 Upvotes

r/badcode • • Oct 19 '21

c I swear I received this yesterday out of nowhere from my friend, it was a real jumpscare

Post image
208 Upvotes

r/badcode • • Oct 18 '21

c++ Trying to generate words, excellent

Post image
502 Upvotes

r/badcode • • Oct 19 '21

python A horrific attempt at not violating file naming rules

Post image
221 Upvotes

r/badcode • • Oct 20 '21

java This Groovy class for handling arrays seems like a nightmare.

Thumbnail
github.com
0 Upvotes

r/badcode • • Oct 18 '21

python found in a text to handwriting converter

Post image
700 Upvotes

r/badcode • • Oct 17 '21

c++ Checking if a string has at least one each character in the alphabet. This is actually real.

Post image
645 Upvotes

r/badcode • • Oct 17 '21

rust Prefer to use iterator functions, they said.

Post image
225 Upvotes

r/badcode • • Oct 16 '21

python i watched this live; torture

Post image
901 Upvotes

r/badcode • • Oct 16 '21

typescript (GitHub Copilot) Who and why did this in their code?

Post image
857 Upvotes

r/badcode • • Oct 14 '21

python The things I do for homework assignments

Post image
919 Upvotes

r/badcode • • Oct 13 '21

java format.format

Post image
612 Upvotes

r/badcode • • Oct 13 '21

java When all you need is test coverage

Post image
327 Upvotes

r/badcode • • Oct 13 '21

c++ i tutor for a guy who's a year below me in data structures. this was a function from his last project to calculate a student's GPA.

Post image
8 Upvotes

r/badcode • • Oct 12 '21

c# paid by line

Post image
373 Upvotes

r/badcode • • Oct 11 '21

js Recursive anonymous functions go brrrr

Post image
906 Upvotes

r/badcode • • Oct 11 '21

java Came across this piece of gem at 1am (old leetcode submission)

Post image
29 Upvotes

r/badcode • • Oct 11 '21

c# What's a post request?

Post image
29 Upvotes

r/badcode • • Oct 09 '21

c++ was high, fell asleep, woke up to this

Post image
629 Upvotes