Re:Brief Video: Rewriting JavaScript into CoffeeScript
by jashkenas on Thursday April 19, 2012 @11:40AM
(#3863506)
It's a DRY thing. Often in JS, object literals assign their keys to values of the same name -- you'll see a lot of this:
... not so nice. So as a first stab, you can clean it up like so:
... but it's especially nice in the context of destructuring assignment, like for your Node.js imports, for example.
[ Parent
| on HN ]