• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
An Intoduction to Coffeescript (Turkish)
 

An Intoduction to Coffeescript (Turkish)

on

  • 1,063 views

 

Statistics

Views

Total Views
1,063
Views on SlideShare
1,060
Embed Views
3

Actions

Likes
1
Downloads
8
Comments
1

1 Embed 3

http://www.hanrss.com 3

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • coffeescript
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

An Intoduction to Coffeescript (Turkish) An Intoduction to Coffeescript (Turkish) Presentation Transcript

  • CoffeeScript Seyfeddin Başsaraç @seyfoyun
  • CoffeeScript Nedir? CoffeeScrip t
  • JavaScript Kullanımı CoffeeScrip t
  • JavaScript syntax’ı ne kadar iyi? CoffeeScrip t
  • JavaScript syntax’ı ne kadar iyi? CoffeeScrip t
  • CoffeeScript Nedir? CoffeeScrip t
  • CoffeeScript Nedir?JavaScript’e derlenen küçük bir dildir. CoffeeScrip t
  • Doğru Syntax square = function(x) {square = (x) -> x * x return x * x; }; alert "I knew it!" if elvis? if (typeof elvis !== "undefined" && elvis !== null) alert("I knew it!"); CoffeeScrip t
  • CoffeeScript Kurulumu CoffeeScrip t
  • CoffeeScript Kurulumu CoffeeScrip t
  • CoffeeScript Kurulumu https://peepcode.com/products/coffeescript CoffeeScrip t
  • JS -> Coffeevar CreditCard = {  cleanNumber: function function(number) { return    return number.replace(/[- ]/g, "");  }, CoffeeScrip t
  • JS -> Coffeevar CreditCard =  cleanNumber: function function(number) return    return number.replace(/[- ]/g, "");   CoffeeScrip t
  • JS -> CoffeeCreditCard =  cleanNumber: function function(number)    return number.replace(/[- ]/g, "");   CoffeeScrip t
  • JS -> CoffeeCreditCard =  cleanNumber: function(number)    number.replace(/[- ]/g, "");   CoffeeScrip t
  • JS -> CoffeeCreditCard =  cleanNumber: function(number)    number.replace(/[- ]/g, "")   CoffeeScrip t
  • JS -> CoffeeCreditCard =  cleanNumber: function(number)    number.replace /[- ]/g, ""   CoffeeScrip t
  • JS -> CoffeeCreditCard =  cleanNumber: (number)    number.replace /[- ]/g, ""   CoffeeScrip t
  • JS -> CoffeeCreditCard =  cleanNumber: (number) ->    number.replace /[- ]/g, ""   CoffeeScrip t
  • CoffeeScript -> JS -> Dashrocket = Fonksiyon CoffeeScrip t
  • Dashrocket = Fonksiyon jQuery ->   $("#info").focus() CoffeeScrip t
  • Dashrocket = Fonksiyon jQuery ->   $("#info").focus() jQuery(function() {   return $("#info").focus(); }); CoffeeScrip t
  • CoffeeScript -> JS @ this. = @instance CoffeeScrip t
  • this. = @instancebeforeEach ->  @dish = new Dish Steak $18.99 CoffeeScrip t
  • this. = @instancebeforeEach ->  @dish = new Dish Steak $18.99 beforeEach(function () { this.dish = new Dish(Steak $18.99); }); CoffeeScrip t
  • CoffeeScript -> JSif var date, mood;mood = greatlyImproved if singing if (singing) mood = greatlyImproved;if happy and knowsIt if (happy && knowsIt) { clapsHands() clapsHands(); chaChaCha() chaChaCha();else } else { showIt() showIt(); }date = if friday then sue else jill date = friday ? sue : jill; CoffeeScrip t
  • CoffeeScript -> JSforeat food for food in [toast, cheese, wine]var food, _i, _len, _ref;_ref = [toast, cheese, wine];for (_i = 0, _len = _ref.length; _i < _len; _i++) { food = _ref[_i]; eat(food);}countdown = (num for num in [10..1]) CoffeeScrip t
  • CoffeeScript -> JS her satır bir ifade var grade; grade = function(student) {grade = (student) -> if (student.excellentWork) { if student.excellentWork return "A+"; "A+" } else if (student.okayStuff) { else if student.okayStuff if (student.triedHard) { if student.triedHard then "B" else "B-" return "B"; else } else { "C" return "B-"; } } else { return "C"; } }; CoffeeScrip t
  • Teşekkürler Seyfeddin Başsaraç @seyfoyun