r/badcode • u/edmoore3 • Jul 16 '20
2.9k
Upvotes
r/badcode • u/uruharushia • Jul 20 '21
c++ friend found this in a real 20+ year old codebase
2.7k
Upvotes
r/badcode • u/Baby10001 • Jan 10 '21
python My friend thought that 1 is a string in Python
2.5k
Upvotes
r/badcode • u/suicidalpasta • Aug 07 '21
python I was wondering why it was running slowly
2.5k
Upvotes
r/badcode • u/LasseWE • May 26 '21
java I was playing Clash of code and in the heat of the moment I decided to use a for-loop to count str.length...
2.4k
Upvotes
r/badcode • u/Bronzdragon • Jul 19 '21
js Variable naming can be difficult, but identifying them can be even more so.
2.4k
Upvotes
r/badcode • u/Pajdziok • Oct 30 '21
java So he had to write loop that prints numbers from 1 to 10
2.3k
Upvotes
r/badcode • u/genericindividual69 • Jul 01 '21
typescript I work with a junior who loves abusing ternary expressions. Usually it's just ones that end in ": false" but he's stepped up his game here
2.3k
Upvotes
r/badcode • u/Andrejfsantos • Feb 11 '22
go Here is a great way to troll your fellow devs
2.3k
Upvotes
r/badcode • u/[deleted] • Jan 10 '22
java I present the objectively best way to setup braces: In a massive block at the bottom
2.2k
Upvotes
r/badcode • u/white_shadow131 • Sep 26 '20
c++ I know Instagram code is garbage, but wtf
2.1k
Upvotes
r/badcode • u/GodIsDead_ • Jun 17 '20
c# You've heard of spaghetti code, get ready for sausage link code
2.1k
Upvotes
r/badcode • u/PhlegethonAcheron • May 11 '21
java The absolute best way to calculate change. I see nothing wrong with this approach, nothing at all.
2.1k
Upvotes