Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CoffeeScript Crash Course

CoffeeScript Crash Course

Video, Code, Blog Post: http://wp.me/p1HYUa-80
Are you a total noob when it comes to CoffeeScript? I am. But I've found that learning CoffeeScript is fun and easy, and I'd like to share my experiences with you getting up and running with CoffeeScript. I'll show you where to find information about CoffeeScript, how to setup node.js on your machine with CoffeeScript support and how to add CoffeeScript support to Visual Studio. Then I'll implement a finite state machine in CoffeeScript right before your eyes, and if we have time, we can whip up a pushdown automaton or a Turing machine.

Jim Counts

June 24, 2012
Tweet

More Decks by Jim Counts

Other Decks in Technology

Transcript

  1. You don’t know what CoffeeScript is, but want to learn.

    You ‘ve heard of CoffeeScript and want to see it in action. You’re a JavaScript/CoffeeScript guru and you want to laugh at me. You really, really like Finite State Machines. Why Are you Here?
  2. “CoffeeScript is a little language that compiles into JavaScript.” “CoffeeScript

    is an attempt to expose the good parts of JavaScript in a simple way.” "It's just JavaScript“ “You can use any existing JavaScript library seamlessly from CoffeeScript (and vice-versa)” And so on… What is CoffeeScript? In the words of CoffeScript.org
  3. EXAMPLE GISTS Wake up and smell the Coffee https://gist.github.com/2968512 Finite

    State Machine https://gist.github.com/2430336 Pushdown Automaton https://gist.github.com/2438044 Turing Machine https://gist.github.com/2474332
  4. What is a Finite State Machine? q0 q1 0,1 0,1

    Σ–{0,1} Σ–{0,1} q2 Σ–{0,1} A simple model of computation Accepts or rejects strings based on a pattern More primitive than a “regular expression” What does this one do?
  5. • Will post these slides @ – https://speakerdeck.com/u/jrc1800/ • I

    wrote about each machine on my blog: – FSM: http://wp.me/p1HYUa-3K – PDA: http://wp.me/p1HYUa-41 – TM: http://wp.me/p1HYUa-4o • CoffeeScript.org • Contact me (although by now you can see I know nothing.) – [email protected] – @jamesrcounts RESOURCES
  6. See me at aspconf I’ll be talking about something I

    actually know about: testing MVC Views using ApprovalTests.