4 ms·
What about browser support ? No stack trace, no proper file:lineno for exceptions, the code you put in the console is not the one you work with. Those are essen
by valisystem 15y ago
What about browser support ? No stack trace, no proper file:lineno for exceptions, the code you put in the console is not the one you work with. Those are essential to my work flow, and I guess, surely not everyone, but many other nevertheless. This is the same problem we have with those fancy css processors.
- dagw 15y agoThe nice thing with coffeescript is that it complies to very readable Javascript with an almost one to one matching between lines in coffscript and lines in javascript. So as such it is pretty trivial to find the corresponding line in your coffescript file, given a line in your javascript file.
- showell30 15y agoI agree that matching up line numbers is usually pretty trivial, although I also see how this complicates the workflow for people. To make matching lines even easier, I've written this tool: https://github.com/showell/CoffeeScriptLineMatcher https://github.com/showell/CoffeeScriptLineMatcher
- iambot 15y agoThat's the same criticism that gets thrown at CoffeeScript every time its ever being debated. And the answer is always the same, see @dagw reply.
- digispaghetti 15y agoSource maps have already landed in both Chrome and Firefox dev channels, and this long running saga is near completion: https://github.com/jashkenas/coffee-script/issues/558#issuecomment-3709114 https://github.com/jashkenas/coffee-script/issues/558#issuec...
- jaybee 15y agoIt's a valid concern if that's how you develop, but in my experience my tests catch any issues before I get anywhere near the browser console.
- jashkenas 15y agoIf this is the sticking point that's preventing you from giving CoffeeScript a try -- don't let it. Not having source map support in browsers is certainly less than ideal, and yet... 95% of the folks who raise this issue have never tried CoffeeScript, and 95% of the people who have tried CoffeeScript will tell you it's not an issue.
- peregrine 15y agoThey are coming, they have shown up in nightlies of chrome.[1] [1] http://peter.sh/2012/01/css-selector-profiler-source-mapping-and-software-rendering/ http://peter.sh/2012/01/css-selector-profiler-source-mapping...