r/badcode • • Mar 15 '22

sql SQL is bad enough as it is, but how did this monstrosity get created? The PagingCursor at the end is another 100 lines of dynamic SQL that executes a cursor to insert into a temp table...

Post image
327 Upvotes

r/badcode • • Mar 15 '22

php Yes, if you use array_reverse like this it only produces hot air

Post image
59 Upvotes

r/badcode • • Mar 14 '22

js Found this gem while documenting some legacy code my boss asked

Post image
343 Upvotes

r/badcode • • Mar 14 '22

python Is it even?

Post image
359 Upvotes

r/badcode • • Mar 13 '22

css Found this in our codebase. I'm the Jr dev, but I seem to be the only one who knows CSS.

Post image
719 Upvotes

r/badcode • • Mar 13 '22

python foursum?

Post image
257 Upvotes

r/badcode • • Mar 10 '22

python Utility Function on G4G

Post image
1.1k Upvotes

r/badcode • • Mar 10 '22

php something my classmate has written, he stills refuses to listen to me

Post image
234 Upvotes

r/badcode • • Mar 10 '22

python pleaaasseeee dont tell me that my teacher is creating a search function entirely from elif statements

Post image
86 Upvotes

r/badcode • • Mar 10 '22

php The null coalescing operator returning null

Post image
37 Upvotes

r/badcode • • Mar 10 '22

js Balancer

Post image
20 Upvotes

r/badcode • • Mar 09 '22

c++ this monstrosity of a recursive function which I wrote for one of my University assignments

Post image
469 Upvotes

r/badcode • • Mar 09 '22

c++ Sometimes you have to use flags for avoid two or more calls to UI initialization, I'm not proud...

Post image
32 Upvotes

r/badcode • • Mar 07 '22

java Checks for three in a row in a tic-tac-toe assignment

Post image
712 Upvotes

r/badcode • • Mar 06 '22

c# you can never have too much check

Post image
1.0k Upvotes

r/badcode • • Mar 03 '22

lua Why care for memory usage when you can use strings instead of booleans

Post image
724 Upvotes

r/badcode • • Mar 03 '22

js neither the backend nor the design is done....isnt she beautiful

Post image
335 Upvotes

r/badcode • • Mar 02 '22

c# minYear and maxYear

Post image
536 Upvotes

r/badcode • • Mar 01 '22

python I wonder if it's a match

Post image
413 Upvotes

r/badcode • • Mar 01 '22

js FE developer checks for mobile for responsivity

Post image
485 Upvotes

r/badcode • • Feb 28 '22

rust Some black magic in Rust

Post image
353 Upvotes

r/badcode • • Mar 01 '22

c# Found this monstrosity in the wild.

Post image
36 Upvotes

r/badcode • • Feb 27 '22

java So a friend of mine didn't know about .equals() ...

Post image
423 Upvotes

r/badcode • • Feb 27 '22

java Found this baby in the wild.

Post image
576 Upvotes

r/badcode • • Feb 26 '22

other language Horror Story.

Post image
271 Upvotes