News for hackers. Stuff that matters.
Re:Farewell CoffeeScript by mdavidn on Thursday October 02, 2014 @04:13AM (#8399811)
Without CoffeeScript, automated JavaScript linters are your friend. Run them in your editor, test suites, and asset pipelines. They'll catch those pesky "var" and "===" typos.

http://www.jshint.com/docs/

Re:Farewell CoffeeScript by swartkrans on Thursday October 02, 2014 @04:41AM (#8399886)
> They'll catch those pesky "var" ... typos.

So will "use strict";

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

Re:Farewell CoffeeScript by reidrac on Thursday October 02, 2014 @05:18AM (#8399958)
But what if you're targeting the browser? Is the strict mode supported?
Re:Farewell CoffeeScript by davedx on Thursday October 02, 2014 @05:28AM (#8399989)
We just transitioned our code base to "use strict". If you use it in combination with a module system it works painlessly, and indeed prevents some classes of bugs.
Re:Farewell CoffeeScript by danabramov on Thursday October 02, 2014 @05:24AM (#8399970)
Surely you can (and should) 'use strict' in browser.
[deleted]
Re:Farewell CoffeeScript by reidrac on Thursday October 02, 2014 @01:32PM (#8401903)
Oh, yes... I did. The post you linked says it is not reliable and it shouldn't be trusted as not all browsers support it. I was asking in case you had anything to add.

Sorry for the misunderstanding.

Re:Farewell CoffeeScript by swartkrans on Thursday October 02, 2014 @02:20PM (#8402193)
I apologize for that comment, it was unnecessarily brusque and actually uninformed. I think it's fine to depend on "use strict"; in Chrome.
Re:Farewell CoffeeScript by reidrac on Thursday October 02, 2014 @02:52PM (#8402364)
Thanks for the info. Seems like it is more reliable than the post in MDN suggests: http://caniuse.com/#feat=use-strict
Re:Farewell CoffeeScript by rikkus on Thursday October 02, 2014 @04:33AM (#8399862)
ReSharper also has great support for JavaScript. ReSharper isn't just a refactoring tool - it also points out errors and other potential issues in your code and offers to help fix them.

I'm just waiting for ReSharper the Vim plugin!

Re:Farewell CoffeeScript by rikkus on Thursday October 02, 2014 @04:34AM (#8399865)
Oh and if you're using VS, you could use TypeScript, which in my limited experience seems to make JavaScript better 'just enough'.
Re:Farewell CoffeeScript by killercup on Thursday October 02, 2014 @04:22AM (#8399835)
Linting CoffeeScript is a good idea, too (using coffeelint).