Aston J

CoffeeScript, SASS and Rails 3.1

Posted on: April 13th, 2011 by AstonJ 3 Comments

The Rails team have announced that CoffeeScript and SASS will be defaults in Rails 3.1

Personally I think this is a great idea. In fact, this is one of the reasons why I like Rails so much – that I don’t have to spend hours/weeks researching and agonising over which technologies to use. It’s like delegating the decision to someone else. Someone smarter, more experienced and knowledgeable. And someone who’s delivered the goods in the past (ref DRY, REST, Convention over Configuration, MVC, testing etc)

Yes I’m a Rails nube, and most of those disagreeing with the decision are not, but I’ve yet to see a good solid argument against it. Most of the reasons seem academic, “Steeper learning curve”, “It’s your choice not mine” – reasons I don’t think are really that big of a deal. Nubes will defer learning the new tech till later, and those who don’t like CoffeeScript or SASS simply don’t have to use them… just as it is now with any of the other defaults that you might not happen to like (such as Test::Unit).

There is also one big bonus about them becoming defaults, their respective user-bases will soar. Which in turn will help make them the de facto standards, and increase their speed of development/maintenance, which we’ll all benefit from. It’s a win win situation all round, and I’d bet a large majority of those not adopting the tech now, will, later.

Update: Want to know more about SASS and CoffeeScript? Check out this article by Peter Cooper.

Update 2: Check out this video by Charles Maxwood going through the basics of CoffeeScript

Tags: , ,

3 Responses

  1. Chris Oliver says:

    I think that what sets rails apart is that since it is built upon Ruby, everything surrounding the framework has become its own mini language. The additions of CoffeeScript and SASS are wonderful because they add to the simplicity of the language as a whole. I’m pretty excited, but now I’ve got a lot more to learn!

  2. AstonJ says:

    Completely agree with you Chris. I think they compliment Rails perfectly, and once you get to know Ruby you yearn for everything else to be as elegant and joyful to use.

  3. Very legible, it’s the way

Leave a Reply