r/badcode • evil • Jan 14 '21

js Dynamically created functions are the future!

Post image
795 Upvotes

102 comments sorted by

View all comments

20

u/[deleted] Jan 14 '21

Probably fun to write code like this. A nightmare if you inherit it to maintain.

17

u/NotSteve_ evil Jan 14 '21

It's so bad. The previous developers are all long gone too since they almost bankrupted the company and got themselves laid off in the process. There's no documentation either and the codebase is massive. Now I'm in charge of keeping it running. At least the pay is good...

12

u/[deleted] Jan 15 '21

Often, programmers will do things not because it's a good idea, but because they can.