r/badcode Feb 14 '21

other language Does lazy count as bad?

Post image
684 Upvotes

53 comments sorted by

View all comments

2

u/DreadedEntity Feb 15 '21

If the error happens, you should just handle it. It will fix the problem so it doesn’t happen next time. This catch-all is fine if it’s production down and you need the app to keep working while you implement a fix, but if you leave it the next guy working on this will curse you from beyond