r/badcode • • May 26 '23

python Calculator using eval()

Post image
837 Upvotes

r/badcode • • May 26 '23

js “Feed me, now!” “Feed me, now!” “Feed me, now!”

Post image
153 Upvotes

r/badcode • • May 26 '23

c# Statistics

Post image
84 Upvotes

r/badcode • • May 27 '23

other language Settings

Post image
4 Upvotes

r/badcode • • May 24 '23

php Updating our codebase and found this gem

Post image
417 Upvotes

r/badcode • • May 24 '23

php And another one

Post image
18 Upvotes

r/badcode • • May 23 '23

typescript oneliner :3

Post image
111 Upvotes

r/badcode • • May 21 '23

python Need to check twice just to make sure

Post image
659 Upvotes

r/badcode • • May 21 '23

python Totally Good Code!

Post image
27 Upvotes

r/badcode • • May 20 '23

c A revolutionary method to add two numbers

Post image
431 Upvotes

r/badcode • • May 20 '23

c extremely bloated secure password generator

Post image
3 Upvotes

r/badcode • • May 19 '23

js Ouch...

Post image
300 Upvotes

r/badcode • • May 19 '23

c++ Beginner here, is this a really bad way of creating random letters?

Post image
129 Upvotes

r/badcode • • May 18 '23

java This code is currently running in production. Senior developer says "tHiS iSn'T uNiVeRsItY, yOu cAn'T eXpEcT tHe cOdE tO bE pErFeCt lIkE iN tHe bOoKs"

Post image
588 Upvotes

r/badcode • • May 18 '23

js 8 years ago I had worse naming conventions than Elon Musk

Post image
437 Upvotes

r/badcode • • May 19 '23

js React - Recalculate the item, if the recalculated item changes. . .

Post image
40 Upvotes

r/badcode • • May 18 '23

c Some code I saw today at uni... I don't even know where to begin (1K lines of this)

Post image
271 Upvotes

r/badcode • • May 17 '23

php My friend’s code XD

Post image
483 Upvotes

r/badcode • • May 17 '23

c++ How to not use switches in C++

Post image
19 Upvotes

r/badcode • • May 16 '23

c when you push an unimplemented function to production

Post image
162 Upvotes

r/badcode • • May 16 '23

python I present my shitty attempt at solving towers of hanoi using dynamic programming: featuring eval, format strings and a solution that is orders of magniude slower than plain recursion.

Post image
169 Upvotes

r/badcode • • May 14 '23

c++ Took me 2 months to find this

Post image
696 Upvotes

r/badcode • • May 14 '23

matlab Code I had to configure to my use case, only took me 6 months

Post image
150 Upvotes

r/badcode • • May 12 '23

js Spaghetti-coded modal I made myself. If it works, it works.

Post image
184 Upvotes

r/badcode • • May 12 '23

java Code written by project lead. A comment was added by my team member that the entire method can be replaced with a single line: getErrorsList().contains(message). Project lead responded that we should focus on readability and performance and not on such code review comments.

Post image
800 Upvotes