Teach Me To Code » Screencasts
CoffeeScript Basics – A Teach Me To Code Tutorial

CoffeeScript Basics – A Teach Me To Code Tutorial

Teach Me To Code » Screencasts

About this episode

CoffeeScript is now going to be a default installation with Ruby on Rails. So, I installed CoffeeScript and NodeJS and have been playing with it for the last hour or so.

Here are the basics you need to know to use CoffeeScript including functions, arrays, hashes (objects), control functions (if, else, unless) and loops.

In my opinion it is friendlier than JavaScript and more terse, but I don't feel like it's a huge win over JavaScript. That being said, it is something I'm likely to use in the future.

Download 168 MB
Download (iPhone & iPod) 87.3 MB

More from Teach Me To Code » Screencasts

My Equipment: Mackie PROFX12 12-Channel Compact Effects Mixer with USB Sony MDR7506 Professional Large Diaphragm Headphone Roland R-05 Studio WAVE/MP3 Recorder Transcend 32 GB Class 10 SDHC Flash Memo…

When preparing to add some layout features to JotRod, I realized it was a Rails 3.0.9 application. Here's a quick rundown on upgrading to Rails 3.1.3. Download 164.7 MB Download (iPod & iPhone) 37.9 M…

In order to get someone a timeline in JotRod, we need followers and following lists to compile the Jots from. This means that we need to add a new ColumnFamily called Followers and another one called…

In the Jots (like tweets) in JotRod, I needed to generate a hash on creation as the key for the Jots. So, I determined that the easiest way to do that was to include ActiveModel Callbacks. The module…

Model Generator

Here's an introduction to creating a Rails connector gem for an ORM with a model generator. Download 352.3 MB Download (iPod & iPhone) 84.7 MB Take the 2011 Readers Survey