When I first entered the industry I was at a company who had written a custom CMS in ASP classic (pre-.NET). I noticed that every single file had the following statement at the top:
On Error Resume Next
After a couple of weeks I looked up it in the docs and found out, to my horror, that it's effectively saying "if there is a runtime error, just skip the offending expression and keep executing like everything is cool".
You could also do things like On Error GoTo SomeFunction that would do exactly what you'd think it might.
On Error GoTo SomeFunction
...Talk about dangerous programming! Hah.
When I was learning C#, that's pretty much exactly what I did. Just try catch everything and have the catch do absolutely nothing. There I was, wondering why my application never did what I expected!
Nice. I'm sure everyone, with enough experience, has a tale or two like this.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.