Joined December 2012
·
Posted to
Backbone.js: Better error visibility
over 1 year
ago
Indeed, interesting idea.
Couple cautions with this approach:
1) Performance concerns. http://flippinawesome.org/2013/09/30/rethinking-javascripts-trycatch/. Just the presence of a try/catch block in a section of javascript code can have performance implications (meaning even if no exception is thrown)
2) In IE8 + 9, "console" is only available when you have developer tools open. If an error occurs and you haven't opened dev tools, you'll get an error trying to use it. Mostly I'm saying this in reference to your comment "Supported in IE8 and every other browser"
Achievements
137 Karma
115,184 Total ProTip Views

Komodo Dragon 3
Have at least three original repos where Java is the dominant language

Komodo Dragon
Have at least one original repo where Java is the dominant language

Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos

Forked
Have a project valued enough to be forked by someone else

Charity
Fork and commit to someone's open source project in need

Mongoose
Have at least one original repo where Ruby is the dominant language
I think you hit an issue displaying your regex. Coderwall interpreted part of your regex as a code snippet and removed an important piece!