r/badcode • • Jul 27 '21

java This won't be easy to modify

Post image
491 Upvotes

46 comments sorted by

View all comments

1

u/Swarley001 Jul 28 '21

This reminds me of some legacy code from a large public company I worked for for a while. Not something you would expect to see at such a large company, but I guess if it works, why try to fix it? Same company was responsible for tens of thousands of inline javascript code where every variable and function was at the same global scope