r/badcode • u/Revelation2106 • Jan 10 '21
730
Upvotes
r/badcode • u/maggiforever • Feb 02 '22
c# At the start of 2022 we were suddenly getting exceptions in this method. I wonder why...
725
Upvotes
r/badcode • u/Ahajha1177 • Nov 16 '20
c++ Found this in an old C/C++ project of mine. It's technically C++, but I guess I *really* wanted a C string.
725
Upvotes
r/badcode • u/wolf_math • 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.
722
Upvotes
r/badcode • u/derBalou007 • Mar 03 '22
lua Why care for memory usage when you can use strings instead of booleans
722
Upvotes
r/badcode • u/[deleted] • Aug 08 '21
c# An excellent demonstration on how to use if-statements
718
Upvotes
r/badcode • u/rotteegher39 • Dec 29 '22
rust My friend just started learning Programming and showed me THIS xD (It compiles) NSFW
717
Upvotes
r/badcode • u/dishsoap-paradox • Mar 07 '22
java Checks for three in a row in a tic-tac-toe assignment
717
Upvotes
r/badcode • u/trwolfe13 • Nov 16 '21
typescript Just one of the many reasons I struggle to get out of bed each day.
717
Upvotes
r/badcode • u/ssskh • Apr 20 '21
kotlin null is not null, Found this gem in a production android app written in Kotlin.
717
Upvotes
r/badcode • u/katje510 • Apr 10 '21
python I had a programming exam and had 5 minutes left on the timer to make the last exercise. I had to parse a DNA sequence in a text file and find the minimum distance in DNA sequences between animal species.
717
Upvotes
r/badcode • u/bbb651 • Oct 19 '19
js Getting the ASCII code of a character doesn't get easier than this.
716
Upvotes
r/badcode • u/misterblue28 • Oct 30 '20
other language I wonder what will make people angrier; the eight nested IF statements or the implication that I consider Excel to qualify as a programming language.
711
Upvotes