A SIP OFCOFFEESCRIPT TO GET YOU STARTED FRONT END DEVELOPERS OF MIAMI         March 27, 2013  Created by Mauricia Ragland ...
WHAT I WILL DISCUSS    1.   What CoffeeScript Is    2.   Why Its a Great    3.   A few cons    4.   Things to Know in Adva...
COFFEESCRIPT
WRITE ONELANGUAGE TO GET   ANOTHER?
SO WHAT ARE THE   BENEFITS? Forces consistency Great when working on teams Writes great code Great way to sharpen your own...
SO EVERYTHINGS GREAT!          NO!
SO WHAT ARE THE    CONS?   Not for beginners   Requires setup Gem/NPM   Learning Curve   Can breed lazy developers   Thats...
OVERALLYou can stop using CoffeeScript whenever you want            SO THERES NOTHING TO LOSE!
WHAT YOU SHOULD     KNOW
WATCH YOUR SPACING
START BY USING   JS2COFFEE.ORG
GET TEAM IN SYNC
DO NOT EDIT JAVASCRIPT
DO NOT START WITH  TIGHT DEADLINE
DOES NOT TAKE PLACE OF BEST PRACTICES
INSTALLING COFFEESCRIPT     Node Package Manager - NPM             Ruby Gem
NO MANUAL   INSTALLATION                YESWHY USE A PACKAGE     MANAGER   Handles dependencies   Easy to version   I dont...
DO NOT USE SUDOsd con- $SR/s/oauo hw R UE urlcl
NPMnmisal- cfe-citp ntl g ofesrp         Remove -g if you dont want a global install
GEMgmisalcfe-cite ntl ofesrp#hc t sei i isaldCek o e f ts ntlegmqeylcle ur oa
CODE SNIPPETSSyntax to understand to help get you going
FUNCTIONS              Are indicated by arroweape=- x=1+2xml   >                 is equivalent tofnto eape) ucin xml({   v...
PARAMETERSeape=(x y)-xml    ,   >               is equivalent tofnto eape x y)}ucin xml( ,   {
HOW TO CALL A          FUNCTIONeape)xml(#hnPsigprm prnhssaentneeWe asn aas aetei r o eddeapex yxml ,             is equiva...
CREATING A VARIABLEx=1#h floigi icretTe olwn s norcvrx=1a    ;            "var" is not allowed
CONDITIONAL        STATEMENTSeape)i xadyxml( f    naet) i xlr(   f ?              is equivalent toi (x& y) f    &   eape) ...
INTERPOLATIONaet"ynm i #@isNm}#@atae"lr M ae s {frtae {lsNm}             is equivalent toaet"ynm i "+ti.isNm +""+ti.atae;l...
COMPILING COFFEESCRIPTcfe -cmie-otu j/cfe/ofe -opl -upt s ofe#s tewthUe h accfe -wth-cmie-otu j/cfe/ofe -ac -opl -upt s of...
RESOURCESCOFFEESCRIPT Official Site JS2CoffeeNPM Intro to NPM 10 Things you can do with NPMRUBY GEM  Online ManualCode sam...
THE ENDBY  MAURICIA RAGLAND       @SUMMANERD  ITSME@SUMMANERD.COM          SURVEY    http://goo.gl/k9FMW
A sip of coffee   mauricia ragland
Upcoming SlideShare
Loading in …5
×

A sip of coffee mauricia ragland

250 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
250
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

A sip of coffee mauricia ragland

  1. 1. A SIP OFCOFFEESCRIPT TO GET YOU STARTED FRONT END DEVELOPERS OF MIAMI March 27, 2013 Created by Mauricia Ragland / @summnerd SURVEY http://goo.gl/k9FMW
  2. 2. WHAT I WILL DISCUSS 1. What CoffeeScript Is 2. Why Its a Great 3. A few cons 4. Things to Know in Advance 5. The Basics
  3. 3. COFFEESCRIPT
  4. 4. WRITE ONELANGUAGE TO GET ANOTHER?
  5. 5. SO WHAT ARE THE BENEFITS? Forces consistency Great when working on teams Writes great code Great way to sharpen your own skillset Forces namespacing Great Resource for learning
  6. 6. SO EVERYTHINGS GREAT! NO!
  7. 7. SO WHAT ARE THE CONS? Not for beginners Requires setup Gem/NPM Learning Curve Can breed lazy developers Thats all I can think of...
  8. 8. OVERALLYou can stop using CoffeeScript whenever you want SO THERES NOTHING TO LOSE!
  9. 9. WHAT YOU SHOULD KNOW
  10. 10. WATCH YOUR SPACING
  11. 11. START BY USING  JS2COFFEE.ORG
  12. 12. GET TEAM IN SYNC
  13. 13. DO NOT EDIT JAVASCRIPT
  14. 14. DO NOT START WITH TIGHT DEADLINE
  15. 15. DOES NOT TAKE PLACE OF BEST PRACTICES
  16. 16. INSTALLING COFFEESCRIPT Node Package Manager - NPM Ruby Gem
  17. 17. NO MANUAL INSTALLATION YESWHY USE A PACKAGE MANAGER Handles dependencies Easy to version I dont want to manage them myself
  18. 18. DO NOT USE SUDOsd con- $SR/s/oauo hw R UE urlcl
  19. 19. NPMnmisal- cfe-citp ntl g ofesrp Remove -g if you dont want a global install
  20. 20. GEMgmisalcfe-cite ntl ofesrp#hc t sei i isaldCek o e f ts ntlegmqeylcle ur oa
  21. 21. CODE SNIPPETSSyntax to understand to help get you going
  22. 22. FUNCTIONS Are indicated by arroweape=- x=1+2xml > is equivalent tofnto eape) ucin xml({ vrx=1+2 a ;}
  23. 23. PARAMETERSeape=(x y)-xml , > is equivalent tofnto eape x y)}ucin xml( , {
  24. 24. HOW TO CALL A FUNCTIONeape)xml(#hnPsigprm prnhssaentneeWe asn aas aetei r o eddeapex yxml , is equivalent toeape)xml(;eape x y)xml( , ;
  25. 25. CREATING A VARIABLEx=1#h floigi icretTe olwn s norcvrx=1a ; "var" is not allowed
  26. 26. CONDITIONAL STATEMENTSeape)i xadyxml( f naet) i xlr( f ? is equivalent toi (x& y) f & eape) xml(;i (yefx!="neie"& x!=nl){ f tpo = udfnd & = ul aet) lr(;}
  27. 27. INTERPOLATIONaet"ynm i #@isNm}#@atae"lr M ae s {frtae {lsNm} is equivalent toaet"ynm i "+ti.isNm +""+ti.atae;lr(M ae s hsfrtae hslsNm)
  28. 28. COMPILING COFFEESCRIPTcfe -cmie-otu j/cfe/ofe -opl -upt s ofe#s tewthUe h accfe -wth-cmie-otu j/cfe/ofe -ac -opl -upt s ofe watch makes the process seamless
  29. 29. RESOURCESCOFFEESCRIPT Official Site JS2CoffeeNPM Intro to NPM 10 Things you can do with NPMRUBY GEM Online ManualCode sample used during talk:https://github.com/summanerd/asipofcoffee
  30. 30. THE ENDBY  MAURICIA RAGLAND   @SUMMANERD  ITSME@SUMMANERD.COM SURVEY http://goo.gl/k9FMW

×