Your SlideShare is downloading. ×
0
Coffeescript - take a sip of code
Coffeescript - take a sip of code
Coffeescript - take a sip of code
Coffeescript - take a sip of code
Coffeescript - take a sip of code
Coffeescript - take a sip of code
Coffeescript - take a sip of code
Coffeescript - take a sip of code
Coffeescript - take a sip of code
Coffeescript - take a sip of code
Coffeescript - take a sip of code
Coffeescript - take a sip of code
Coffeescript - take a sip of code
Coffeescript - take a sip of code
Coffeescript - take a sip of code
Coffeescript - take a sip of code
Coffeescript - take a sip of code
Coffeescript - take a sip of code
Coffeescript - take a sip of code
Coffeescript - take a sip of code
Coffeescript - take a sip of code
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Coffeescript - take a sip of code

1,349

Published on

This is an intro presentation to the new and awesome language, Coffeescript. See the presentation for more details.

This is an intro presentation to the new and awesome language, Coffeescript. See the presentation for more details.

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
1,349
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. CoffeeScript Unfancy JavaScript
  • 2. DimitrisTsironisCEO & Founder at GeemboUI designer & huge geek,who loves good design andfrench fries, as much asgood indentation in astylesheet.@tsironakos
  • 3. JeremyAshkenasInteractive News at theNYTimes /DocumentCloud •Creator of CoffeeScript+ Backbone.js • Code isLiterature
  • 4. CoffeeScript is a little language that compiles into Javascript
  • 5. It’s just Javascript!
  • 6. Code is poetry...
  • 7. A beautiful programming language Least amount of code to get the job done Readable and understandable Easy to maintain well, should have elegant and beautiful form
  • 8. Let’s see some code!
  • 9. Variables message = “Ready for some coffee?” CoffeeScript alert(message) var message; message = “Ready for some coffee?”; JavaScript alert(message);Functions coffee = -> CoffeeScript confirm “Ready for some coffee?” var coffee = function() { return confirm(“Ready for some coffee?”); JavaScript }
  • 10. Example coffee = -> answer = confirm “Ready for some coffee?” CoffeeScript “Your answer is ” + answeror “Your answer is #{answer}” var coffee; coffee = function() { var answer; JavaScript answer = confirm(“Ready for some coffee?”); return “Your answer is ” + answer; }
  • 11. Function Parameters coffee = (message) -> answer = confirm message CoffeeScript “Your answer is #{answer}” var coffee; coffee = function(message) { var answer; JavaScript answer = confirm(message); return “Your answer is “ + answer; }
  • 12. Optional Parameters coffee = (message = “Ready for some coffee”) -> answer = confirm message CoffeeScript “Your answer is #{answer}” var coffee; coffee = function(message) { var answer; JavaScript if (message == null) { message = “Ready for some coffee?”; } answer = confirm(message); return “Your answer is “ + answer; }
  • 13. Applied jQuery $ -> changeTab = (e) -> e.preventDefault() $(“#tabs li a.active”).removeClass “active” CoffeeScript $(@).addClass “active” $(“#tabs ul li a”).click changeTabjQuery(function($) { function changeTab(e) { e.preventDefault(); $(“#tabs li a.active”).removeClass(“active”); jQuery $(this).addClass(“active”); } $(“#tabs ul li a”).click(changeTab);});
  • 14. You get the idea
  • 15. hubot, make me some coffee please!
  • 16. Hubot is your companys robot.Install him in your company to dramatically improve and reduce employee efficiency.
  • 17. What he/she doesLives in your chat (Campfire, GTalk, Hipchat etc.)Deploys your codeConnect to your issues, commits etc.Finds funny cat gifsIntegrates with almost every service on EarthManages the playlist in your officeeverything you could imagine!
  • 18. Written in CoffeeScript (and some Perl and Shell)
  • 19. we have our own hubot Meet Geembot!
  • 20. Open source & expandable (original written by Github Inc.)
  • 21. Thanks!Follow me@geembohq@tsironakos

×