Jeremy Ashkenasæ°ãã¯ããã¨ããCoffeeScriptéçºãã¼ã ã¯ããCoffeeScript 1.8ãã8æ26æ¥ï¼ç¾å°æéï¼ã«ãªãªã¼ã¹ãããCoffeeScriptã¯ãã³ã³ãã¤ã«ãããã¨ã§JavaScriptã«å¤æãããã¨ã®ã§ããJavaScriptã®ä»£æ¿ããã°ã©ãã³ã°è¨èªã®ä¸ç¨®ã ãCoffeeScript 1.8ãã§ã¯ãCLIã®--joinãªãã·ã§ã³ãéæ¨å¥¨ã¨ããã¨ã¨ãã«ãCLIããã£ã¹ã¯ã¸ã®ãã¡ã¤ã«æ¸ãè¾¼ã¿ã«å¤±æããéã«ããexit code 1ãã§çµäºããããã«ãã¦ããã ã¾ããã³ã³ãã¤ã©ãä¸æ¹ã®ã·ã³ã°ã«ã¯ã©ã¼ããããªãæååã«ãã£ã¦ã¯ã©ãã·ã¥ããåé¡ããã½ã¼ã¹ãããã®åæ失æã«ããæååè£éã«é¢ããåé¡ãã¿ãã§ã¤ã³ãã³ããããã³ã¼ãã«ããã¦èª¤ã£ãä½ç½®ã«ã¨ã©ã¼ãã¼ã«ã¼ã表示ããåé¡ãã¹ã¿ãã¯ãã¬ã¼ã¹ãããæ¸ã¿ã½ã¼ã¹ãããã®èª¤ããä¿®æ£ããã ããã«ã%%æ¼ç®åã¯å
CoffeeScriptã¯ããã¾ããããããã³ã¼ãã¼ã§ãã æè¿ã¾ã§ãã«ãã§ãã£ã¦å¼ãã§ã¾ãããè¶ æ¥ãããããã«ãã§ã§ã¹ã¯ãªããçµããããï¼çãªã iPhoneã¢ããªã«ææ¦ãããã¨æã£ã¦ããã£ãã Objective-C ã諦ããããã«æ £ã親ããã JavaScript ããã¢ããã¼ããããã¨æã£ã¦ãããæãã®å¤ãè¦æ¦ãã¾ãã¦ã ãªãã¦ã¾ããããã æ°å¹´åã¨ã¯éä¸ã®æãããã»ã»ã»jQueryã£ã»ã»ã»ãããå®å ¨ã«ä¹ãé ãã¾ããã大波ã«ã ããã¦ããããªåãè¦ããã¦CoffeeScriptã使ã£ã¦ã¿ãªãããã©ã¶ã¼ãã¨ãããç¥äººããã°ã©ãã¼ããå§ãããã¦ã使ãå§ãã¦ã¿ããã¨ã«ã ããã°ã©ã å ã§ã¯ãã¡ãã£ã¨ããã¢ãã¡ã¼ã·ã§ã³ãããããã¨æã£ã¦ãæåã©ããã®EaselJS ããRaphaëlããæ¤è¨ãã¦ã¿ã¾ããããCanvasãSVGã使ãã»ã©ã®ãã®ã§ã¯ãªããªãã¨ã ã§ãããdivã¢ãã¡ã¼ã·ã§ã³ã§ã
æè¿ CoffeeScript é¢é£ã®ã¨ã³ããªã¼ãç§ã®RSSãªã¼ãã¼ã«ã²ã£ãããªãã«æµãã¦ãã¾ã. ã©ãããæµè¡ã£ã¦ããããã. github ã§è©±é¡ã«ãªã£ãããã«å°ã触ã£ããããã§ã®ããè¾¼ã¿ã¯ããªãã£ãã®ã§ãã, ç¡è¦ã§ããªãåå¨ã«ãªãã¤ã¤ããã¾ã. ä»æ´ææºè¼ã§ãããæ軽㫠CoffeeScript ã試ãæ¹æ³ãç´¹ä»ãããã¨æãã¾ã. âå°å ¥ãããã©ããã¯ãã¦ãã, ã¨ã«ãã CoffeeScript ã触ã£ã¦ã¿ããâã£ã¦äººåãã®æ¹æ³ã§ã. { } _____ __ __ }{ }{ { ) / ____| / _|/ _| .- { { } { }} -. | | ___ | |_| |_ ___ ___ ( ( } { } { } } ) | | / _ \| _| _/ _ \/ _ \ |`-..________ ..-'| | |___| (_) | | | || __/ _
ããã«ã¡ã¯ãæ¯å¹´è±ç²çã«ãªãããã¦ãã飯å¡ã§ãã æè¿ã®Node.jsã®æ®åãªã©ã«ãã£ã¦ãµã¼ããµã¤ãJavaScriptçéãçãä¸ãã£ã¦ãã¾ãã ãããªããããªJavaScriptãã©ã¯ã«ãã¤ã¨ã¬ã¬ã³ãã«æ¸ãããã®CoffeeScriptã¨ããè¨èªããã¥ã¼ããªã¢ã«é¢¨ã«ç´¹ä»ãã¾ãã ä½ãããã®ã©ã¤ãã©ãªãèªåã§æ¸ãç¨åº¦ã«JavaScriptã§éçºãã¦ãã人ã¯çµ¶å¯¾ã«ä½¿ã£ãã»ããããã¨æãã¾ãã JavaScriptãç¥ã£ã¦ããã°1-2æéç¨åº¦ã§ååé§ä½¿ã§ããããã«ãªãã¾ãã ï¼2011/6/28ï¼@m_satyræ§ã«ãææé ããç®æãä¿®æ£ãã¾ãããï¼ ç®æ¬¡ CoffeeScriptã¨ã¯ï¼ ã¤ã³ã¹ãã¼ã« Hello World æ§æ é¢æ° å¤æ°å±é Objectã®çæ ã«ã¼ã åå¨ãã§ã㯠ãã¢ããã¥ã¡ã³ã thisã®ãã¤ã³ã ã¯ã©ã¹ ç¡åé¢æ° {var} Tips ?ã®ä½¿ãåã åå¨ãã§ãã¯
#261 Testing JavaScript with Jasmine (revised) addyosmani.github.com/backbone-fundamentals/#unit-testing github.com/bradphelan/jasminerice Jasmineã¯Javascriptç¨ã®ãã¹ããã¬ã¼ã ã¯ã¼ã¯ãPlayFramework 1.2ã¨ãã§ãæ¡ç¨ããã¦ã Jasminericeã¯JasmineãRubyãã使ããgemã§jasmine-jqueryã¨ããjqueryç¨ã®ã©ã¤ãã©ãªãå«ãã§ããããã
ãã®é£è¼ã§ã¯ãç°¡åãªRailsã¢ããªã±ã¼ã·ã§ã³ãä½ããªããCoffeeScriptã¨JQueryã«ã¤ãã¦å¦ãã§ããã¾ãã Webãã¼ã¸ã®ä¸ã®ããåºåãã¦ã¼ã¶ã¼ãããã«ã¯ãªãã¯ããã¨æ£æ¹å½¢ãç¾ããããããã¦ã¹ã§ãã©ãã°ããããã´ãç®±ã«æ¨ã¦ãããããã¨ããã¢ããªã±ã¼ã·ã§ã³ãä½ãã¾ããã¾ã£ããå®ç¨çã§ã¯ããã¾ããããã許ããã ããã Railsã¢ããªã±ã¼ã·ã§ã³ã®ååã¯ãTorajaãã¨ãã¾ãã æ¬é£è¼ã§ã®è¨æ³ æ¬é¡ã«å ¥ãåã«ãæ¬é£è¼ã§ã®è¨æ³ã説æãã¦ããã¾ãã 次ã®ããã«æ¸ãã¦ãã£ãããã¿ã¼ããã«ï¼Windowsã®å ´åã¯ãã³ãã³ãããã³ãããï¼ã§ rails s ã¨ããã³ãã³ããå®è¡ãã¦ãã ãããè¡é ã® % ã¯å ¥åãã¾ããã % rails s ãapp/views/foo/bar.html.erb ãä½æãã¨æ¸ãã¦ãã£ãããã¨ãã£ã¿ã§ãã®ãã¡ã¤ã«ãæ°è¦ä½æãã¦ãã ãããæ¸ãè¾¼ãã½ã¼ã¹ã³ã¼ãã¯ã
æ å ±æ度ãé«ãä½é¢ãæ°ã«ããITä¼æ¥ã®çããã¯ãä»æ¥ã¯ãã£ãã¨å¸°ãã¨è¨ããã¦ãã®ã§ããããã¨ãªããªã£ãã¨ã³ã¸ãã¢éãcho45ããã®é£ãéã«é£ããã¦ããã¹ã«ãã¦ããã®ã ã¨æããã¾ããå¼ç¤¾ãæããudzuraããããããã¹ã«ãã¦ãã®ãã¿ã¦ã¾ããã æãªã®ã§å¤§åå©ã«åå ãã¨ããããä»ã®æ¹ãè¨åãã¦ããªãããªãcoffee-scriptã®è¯ãé¢ãã«ã¤ãã¦æ¸ãããã¨æã£ã¦ãã¾ãã -> ã®ã¨ã¤ãªã¢ã¹ããé¢æ°ãªãã¸ã§ã¯ãã®æèãå¤ãã > ã®é¢æ°å®ç¾©ã¯JSæ¬æ¥ã®é¢æ°åè¨èªã¸ã®æèãå¼ã³è¦ã¾ãã¾ãããããããä»ã¾ã§ãé¢æ°åãã©ãã®è¨èªããã³ã·ã£ã«ã ã£ãããã«é¢æ°ãªãã¸ã§ã¯ããæåæ°çãªåé¡ã§ä½¿ãã«ããã£ãã®ã§ãã ãã³ãã¬ã¼ãã¨ã³ã¸ã³ã®Coffeekupã§ã¯ãé«éé¢æ°ã®å ¥ãåã«ãã£ã¦DOMã表ç¾ãããªãã¦ãã¨ããã£ã¦ã¾ãã doctype 5 html -> head -> meta charset:
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}