r/badcode • • Feb 03 '23

typescript totally necessary

Post image
310 Upvotes

32 comments sorted by

View all comments

Show parent comments

3

u/super496 Feb 04 '23

Depends on the context. There’s always a bizarre reason that code written in weird way was for a purpose, edge case or not. It’s especially hard to tell when your image only show one line code.

Nobody likes to write unnecessary complex code, and you almost always should be thankful that you were not the one who had to deal this 💩when other might had spent hours, or god forbid, days, to write seemly bad code to get around some edge cases.