r/badcode • • Dec 06 '21

python Periodically a friend sends me snippets from codebases he's forced to maintain. This is today's goodness.

Post image
889 Upvotes

r/badcode • • Feb 20 '21

js not sure why I did this

Post image
889 Upvotes

r/badcode • • Feb 08 '22

python High-accuracy profiling.

Post image
888 Upvotes

r/badcode • • Feb 04 '22

php don't know what to say...

Post image
887 Upvotes

r/badcode • • Dec 07 '21

python So one of my classmates made a sandwich generator. I hope you're hungry for some code!

Post image
887 Upvotes

r/badcode • • Apr 12 '21

c++ My friend is learning C++ for college course...

Post image
885 Upvotes

r/badcode • • Aug 26 '22

java What does a map do again?

Post image
882 Upvotes

r/badcode • • Nov 13 '20

java Getting Digits using Switch Catch

Post image
881 Upvotes

r/badcode • • Jul 01 '22

python due to some bad variable naming (I had a variable naked o) it took me half an hour to figure out why this was highlighted as unreachable

Post image
878 Upvotes

r/badcode • • Apr 09 '21

js Back to basics

Post image
877 Upvotes

r/badcode • • Oct 22 '20

js Found this a very old project... Thought I'd share this

Post image
877 Upvotes

r/badcode • • Aug 09 '21

python It might change

Post image
876 Upvotes

r/badcode • • Jun 30 '22

bash A little one, found in an update script for an IP intercom made by the manufacturer. It just made me smile...

Post image
871 Upvotes

r/badcode • • Jun 09 '21

other language Real Attempt at Fizz Buzz in F#

Post image
871 Upvotes

r/badcode • • Jan 04 '21

java oh god

Post image
869 Upvotes

r/badcode • • Jun 28 '21

c# MS Word Interop is Trash

Post image
866 Upvotes

r/badcode • • Jan 18 '21

c++ ...when you want to be SURE it's equal!

Post image
866 Upvotes

r/badcode • • Sep 18 '21

js How to get the amount of days in a month, according to someone on stackoverflow

Post image
862 Upvotes

r/badcode • • Nov 04 '21

js This hurts to look at

Post image
861 Upvotes

r/badcode • • Jan 10 '20

java Oh rly?

Post image
861 Upvotes

r/badcode • • May 13 '22

c++ Got it?

Post image
860 Upvotes

r/badcode • • Jul 29 '21

java If only there was a way to iterate over a range of numbers

Post image
860 Upvotes

r/badcode • • Oct 06 '21

css There are 1380 !important tags on this css, literally after every lane

Post image
859 Upvotes

r/badcode • • Feb 18 '22

js It goes on like this... (From lewdle, a lewd wordle clone)

Post image
858 Upvotes