I must be getting old, now I am teaching myself old tricks
Programmers these days despise nothing so much as repeating themselves. If you solved a problem once, its expected that you’ll not have trouble solving it again. In fact, you’ll likely find something better! ..and good programmers have tests in place to prevent the error from recurring.
I was trying to solve the problem of Asp.Net Mvc throwing controller errors as a 500 application error rather than throwing "404 Not Found" when a url points to a non existent route or file path. When I Googled it, some clever hacker had proposed a solution that results in more appropriate behavior. I was going to follow that fellers other posts to see what else they’d contributed. It was me, 4 months ago. I just don’t remember posting that and clearly didn’t apply it to my own project.
…I’m getting old.
Leave a Reply