Rewriting Some JavaScript to CoffeeScript

By Ryan Florence, published 2012-04-13

Features Used:

In order of appearance:

  1. default arguments
  2. this shortcut
  3. conditional assignment
  4. same name key:value shortcut (I don’t know what this is called)
  5. unless conditional
  6. postfix conditional
  7. existential operator
  8. splats
  9. postfix loop
  10. destructuring assignment


You can check out the gists here

Feel free to argue here, the gist, or on hacker news, but I’m sold. (better go strikethrough that article I wrote a while back …)

Hi, I'm Ryan!

South Jordan, UT

About Me

I'm a front-end web developer from Salt Lake City, Utah and have been creating websites since the early 90's. I like making awesome user experiences and leaving behind maintainable code. I'm active in the JavaScript community writing plugins, contributing to popular JavaScript libraries, speaking at conferences & meet-ups, and writing about it on the web. I work as the JavaScript guy at Instructure.