Contents tagged with exceptions
I've created a content part that had an innocent little property called Index (what, for the historical accuracy, was of type int), and below that there was a similarly named property in the part record. Guess what I got when I tried to use this?
Catching exceptions with the type of the base Exception class is bad practice. "Never catch an exception you can't handle" says the proverb we all know from kindergarten. But what if we get our dependencies injected by requesting objects by their interface types?