> "So the big mistake I've always seen people make is being too "nervous" about exceptions and feeling that they have to do something about them as close as possible to the point where the exceptions were raised. They need to the exact opposite: feel relaxed about exceptions and let them bubble up."
Hadn't really thought about it in that way, but I find myself employing this pattern where possible - having said that, with async callbacks it can be hard to bubble up when you essentially have multiple logical processes occurring.
Haven't found a solution to this in my own codez yet but I feel a little twitch in my eye whenever I have to do:
try {
something = JSON.parse ...
because there's no native `JSON.validate` method.Not complaining though, definitely not worth losing sleep over .. yet.