Why I sometimes hate JavaScript
geekregator.com
Why I sometimes hate JavaScript
1–10 of 66 posts
Re: Why I sometimes hate JavaScript
#2Re: Why I sometimes hate JavaScript
#3Sure, this is annoying, but the reality is that this type of stuff is very easily avoided through the use of linters. IMO, you should never work on a dynamic scripted language like JavaScript without constantly running a linter in the background to pick up stuff like this.
Re: Why I sometimes hate JavaScript
#4Sure, this is annoying, but the reality is that this type of stuff is very easily avoided through the use of linters. IMO, you should never work on a dynamic scripted language like JavaScript without constantly running a linter in the background to pick up stuff like this.
Re: Why I sometimes hate JavaScript
#5Sure, this is annoying, but the reality is that this type of stuff is very easily avoided through the use of linters. IMO, you should never work on a dynamic scripted language like JavaScript without constantly running a linter in the background to pick up stuff like this.
Exactly my thoughts. Just ran the snippet through JSHINT and while it doesn't recognize the exact error it shows you the location where it happens. http://jsfiddle.net/hnxjxyte/
Re: Why I sometimes hate JavaScript
#6Re: Why I sometimes hate JavaScript
#7This bug most definitely should've made your tests go red, your linter give a warning and your code metrics suite should have a thing or two to about the huge expressions and 10+ line function they are in.
Re: Why I sometimes hate JavaScript
#8Re: Why I sometimes hate JavaScript
#9Re: Why I sometimes hate JavaScript
#10If you only hate Javascript sometimes, you are definitely new to the language. That said even in a proper language like Ruby this particular bug can happen, that's why communities around these languages strongly encourage proper discipline, enforced by tools. This bug most definitely should've made your tests go red, your linter give a warning and your code metrics suite should have a thing or two to about the huge e…