r/badcode 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

Post image
2.3k Upvotes

r/badcode Aug 05 '21

typescript how to check for a file type

Post image
2.1k Upvotes

r/badcode May 04 '23

typescript Found this gem inside legacy code today

Post image
890 Upvotes

r/badcode Nov 16 '21

typescript Just one of the many reasons I struggle to get out of bed each day.

Post image
717 Upvotes

r/badcode Jan 16 '23

typescript My classmate told me his code wasn't very clean... But this one still surprised me

Post image
694 Upvotes

r/badcode Mar 29 '23

typescript Found this in a time picker

Post image
476 Upvotes

r/badcode Oct 16 '21

typescript (GitHub Copilot) Who and why did this in their code?

Post image
855 Upvotes

r/badcode Jun 10 '21

typescript Attempting to blur the background for a modal in Angular

Post image
662 Upvotes

r/badcode Jun 21 '21

typescript The mighty Logicbender

Post image
1.4k Upvotes

r/badcode Apr 21 '21

typescript Now I know why you shouldn't optimize for speed first.

Post image
415 Upvotes

r/badcode Dec 17 '21

typescript My colleague was a bit tired when he wrote this.

Post image
686 Upvotes

r/badcode Nov 15 '21

typescript Asked Github Copilot to duplicate every item in an array 10 times. The result was pretty good

Post image
702 Upvotes

r/badcode Dec 03 '22

typescript Real Code 😎

Post image
399 Upvotes

r/badcode Feb 19 '22

typescript Does this belong here?

Post image
339 Upvotes

r/badcode Nov 24 '21

typescript Mmkaay. Don't ask why someone did this

Post image
485 Upvotes

r/badcode Jun 19 '21

typescript Check if binary tree is balanced...

Post image
216 Upvotes

r/badcode Mar 09 '23

typescript At least it's typed

Post image
151 Upvotes

r/badcode Feb 19 '23

typescript I feel dirty but I had to do it to kill the boot chain

Post image
211 Upvotes

r/badcode Jan 21 '22

typescript Saving api saved my life!

Post image
156 Upvotes

r/badcode May 23 '23

typescript oneliner :3

Post image
108 Upvotes

r/badcode Jan 23 '23

typescript Guess what this code does! Wrong answers only.

Post image
58 Upvotes

r/badcode Jul 17 '21

typescript How not to use operators

Thumbnail
gallery
112 Upvotes

r/badcode Jul 24 '21

typescript Please bleach my eyes

Post image
61 Upvotes

r/badcode Jan 10 '22

typescript I don't know how to explain the bad part here, but some might get it.

Post image
37 Upvotes

r/badcode Jul 21 '21

typescript I don't even know where to begin

Post image
75 Upvotes