Is coffeescript still hip? I used to read a lot about it on here, maybe a year or two. Where is it at? Mainstream?
CoffeeScript 1.7.0
11–20 of 91 posts
Re: CoffeeScript 1.7.0
#12Is coffeescript still hip? I used to read a lot about it on here, maybe a year or two. Where is it at? Mainstream?
Hip? Dunno, I moved onto ClojureScript years ago. ;)
Re: CoffeeScript 1.7.0
#13Is coffeescript still hip? I used to read a lot about it on here, maybe a year or two. Where is it at? Mainstream?
CoffeeScript played an important role in the development of ES6, but looking forward, it seems to have a same-but-different set of features vs. actual JavaScript, which may doom its future.
Re: CoffeeScript 1.7.0
#14Re: CoffeeScript 1.7.0
#15Is coffeescript still hip? I used to read a lot about it on here, maybe a year or two. Where is it at? Mainstream?
Re: CoffeeScript 1.7.0
#16Is coffeescript still hip? I used to read a lot about it on here, maybe a year or two. Where is it at? Mainstream?
Personally, I enjoy it and have been using it to build a fairly large Angular application (Java backend, oddly enough.) I've found that Coffee and Angular complement each other nicely.
Re: CoffeeScript 1.7.0
#17I feel like this is an important improvement, but I don't really understand what it means. Can someone elaborate on what this means and how it works? How did things used to be different?
Re: CoffeeScript 1.7.0
#18> Leading . now closes all open calls, allowing for simpler chaining syntax. I feel like this is an important improvement, but I don't really understand what it means. Can someone elaborate on what this means and how it works? How did things used to be different?
result = range 1, 3
.concat range 4, 6
.map (x) -> x * x
.filter (x) -> x % 2 is 0
For example, the leading `.map` closes the open call to `range` and the open call to `concat`. Before 1.7.0, `.map` would be called on the number 6.Re: CoffeeScript 1.7.0
#19There's also a nice writeup of some of the more user-visible changes available here: https://gist.github.com/aseemk/8637896
Top 3 things tl;dr
Paren-free chaining (think jQuery or d3):
bar = svg.append 'rect'
.attr 'fill', 'papayawhip'
.attr 'width', width
.attr 'height', 0
.attr 'y', height
.attr 'data-hover', data.slug
Ellipsis for soaking up matching parameters, even if you don't want to name a variable: [first, ..., last] = arrayOfStuff
lastArgumentFn = (..., last) -> last
... and generally improved source maps.Re: CoffeeScript 1.7.0
#20> Leading . now closes all open calls, allowing for simpler chaining syntax. I feel like this is an important improvement, but I don't really understand what it means. Can someone elaborate on what this means and how it works? How did things used to be different?