r/badcode • • Apr 13 '21

php I guess that's one way to ensure tabs is always used for indention.

Post image
817 Upvotes

r/badcode • • Mar 13 '23

js I have to agree with your assessment

Post image
814 Upvotes

r/badcode • • Jun 23 '21

python This is a part of the random task solution in codewars that I came across today

Post image
814 Upvotes

r/badcode • • Jul 16 '21

js Found this in the source code for a reasonably large open source online experiment platform.

Post image
812 Upvotes

r/badcode • • Jul 03 '19

js Found on stack overflow, The most efficient way to remove particular array elements

Post image
811 Upvotes

r/badcode • • Oct 03 '20

python I wonder why dev didn't use a dictionary for it

Post image
810 Upvotes

r/badcode • • Aug 04 '21

c++ I'm done with Facebook coding groups.

Post image
809 Upvotes

r/badcode • • Sep 06 '20

other language Poor sould had to resort to this

Post image
809 Upvotes

r/badcode • • Oct 08 '21

js This poor confused little thing came from the lead dev on our team.

Post image
807 Upvotes

r/badcode • • Aug 26 '21

python y=-x/4

Post image
807 Upvotes

r/badcode • • Apr 26 '22

java Funniest line of code I found at my company's codebase

Post image
804 Upvotes

r/badcode • • Sep 10 '21

c++ Learn C++ with LinkedIn Learning! Facebook ad

Post image
803 Upvotes

r/badcode • • Jan 20 '21

python I just finished watching Mr. Robot which was praised for its authenticity...

Post image
801 Upvotes

r/badcode • • Feb 19 '21

css Just found it 4 months after the first line on the picture was committed. How could I let this slide?

Post image
797 Upvotes

r/badcode • • Feb 18 '20

c# Recently removed 30 thousand lines of such "documentation" from legacy project i mantain

Post image
797 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
796 Upvotes

r/badcode • • Jan 14 '21

js Dynamically created functions are the future!

Post image
795 Upvotes

r/badcode • • Oct 06 '20

c# I am trying out the new C# 9 features. Now I can finally write if statements with 'and' instead of &&

Post image
791 Upvotes

r/badcode • • Apr 23 '21

html Svelte's minification and whitespace trimming usually works well, but when it doesn't, you have to format your code like this

Post image
790 Upvotes

r/badcode • • Feb 26 '23

python Example code in an online course my friend is taking. I really hope the course was free.

Post image
789 Upvotes

r/badcode • • May 02 '22

css University lecturer provided me with some utility classes.

Post image
788 Upvotes

r/badcode • • Aug 17 '20

java Todo: less dirty.

Post image
788 Upvotes

r/badcode • • Apr 26 '21

java Always take the emergency exit before an assertion fails

Post image
787 Upvotes

r/badcode • • Dec 18 '22

java "I mean it works"

Post image
786 Upvotes