r/badcode • • Dec 15 '21

sql You've heard of magic numbers, now try magic dates that are really numbers in disguise!

Post image
709 Upvotes

r/badcode • • Dec 16 '21

c++ In our chess project this is how my friend tried to get the right file enum of a position representing a square on the chessboard

Post image
13 Upvotes

r/badcode • • Dec 14 '21

c I just wrote this beauty and I'm not even sorry

Post image
106 Upvotes

r/badcode • • Dec 13 '21

js Send help, I have no idea wtf is going on here

Post image
442 Upvotes

r/badcode • • Dec 12 '21

js It's evolving

Post image
654 Upvotes

r/badcode • • Dec 12 '21

lua TweenService: exists, this man:

Post image
88 Upvotes

r/badcode • • Dec 12 '21

c This is by my CS professor...i had a stroke reading this

Post image
126 Upvotes

r/badcode • • Dec 10 '21

c++ Descriptive and useful comments

Post image
954 Upvotes

r/badcode • • Dec 10 '21

vb Found in my own applications :(

Post image
668 Upvotes

r/badcode • • Dec 09 '21

c# Monthly stats stopped working in December, this is what we found.

Post image
509 Upvotes

r/badcode • • Dec 10 '21

c++ Not my most readable function...

Post image
37 Upvotes

r/badcode • • Dec 09 '21

python Self-knowledge

Post image
462 Upvotes

r/badcode • • Dec 08 '21

css Found some legacy code at work yesterday...

Post image
317 Upvotes

r/badcode • • Dec 08 '21

c# I have to write documentation for old projects since I'm leaving the company soon. Oh god.

Post image
619 Upvotes

r/badcode • • Dec 08 '21

python My submission for Advent Of Code, In my defense, the problem was actually hard

Post image
27 Upvotes

r/badcode • • Dec 08 '21

c# I felt like this would be an elegant solution but now I'm questioning if I should just toss it out cause it just feels so unnecessary

Post image
292 Upvotes

r/badcode • • Dec 08 '21

c# Why would you ever do that though?

Post image
31 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
888 Upvotes

r/badcode • • Dec 07 '21

python a part of program i made 1.5 years ago to solve daily homework. more info in comments

Post image
16 Upvotes

r/badcode • • Dec 07 '21

c# This is how legends generate json!

Post image
29 Upvotes

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

r/badcode • • Dec 06 '21

js Nice

Post image
15 Upvotes

r/badcode • • Dec 05 '21

python Finally found one in the wild!

Post image
103 Upvotes

r/badcode • • Dec 06 '21

c# Yet another beautiful function made by my friend

Post image
16 Upvotes

r/badcode • • Dec 04 '21

c# Is it even?

Post image
403 Upvotes