The Little Book on CoffeeScript
The Little Book on CoffeeScript
CoffeeScriptåå¼·ä¸ã§ãï¼ JavaScriptã®ã¯ã©ã¹ã®é¢åãªé¨åãé è½ããã¦ãã¦ããããããã§ãï¼ ä»¥ä¸ã®ã³ã¼ããä¾ã«ãã¦èª¬æãã¾ãï¼ class Test constructor: (@hoge) -> #publicãªå¤æ° public: 1 #public staticãªå¤æ° @publicStatic = 2 #private staticãªå¤æ° privateStatic = 3 #表示ç¨é¢æ° getPublic: -> @public getPublicStatic: -> Test.publicStatic getPrivateStatic: -> privateStatic ã³ã³ã¹ãã©ã¯ã¿ constructor: (@hoge) -> ä¸ã®ããã«å¤æ°åã«@ãã¤ãã¦æ¸ãã®ã¯ä¸ã®ãããª@hoge(this.hoge)ã¸ã®ä»£å ¥ã®çç¥è¨æ³ã§ãï¼ constructo
ããã«ã¡ã¯ãæ¯å¹´è±ç²çã«ãªãããã¦ãã飯å¡ã§ãã æè¿ã®Node.jsã®æ®åãªã©ã«ãã£ã¦ãµã¼ããµã¤ãJavaScriptçéãçãä¸ãã£ã¦ãã¾ãã ãããªããããªJavaScriptãã©ã¯ã«ãã¤ã¨ã¬ã¬ã³ãã«æ¸ãããã®CoffeeScriptã¨ããè¨èªããã¥ã¼ããªã¢ã«é¢¨ã«ç´¹ä»ãã¾ãã ä½ãããã®ã©ã¤ãã©ãªãèªåã§æ¸ãç¨åº¦ã«JavaScriptã§éçºãã¦ãã人ã¯çµ¶å¯¾ã«ä½¿ã£ãã»ããããã¨æãã¾ãã JavaScriptãç¥ã£ã¦ããã°1-2æéç¨åº¦ã§ååé§ä½¿ã§ããããã«ãªãã¾ãã ï¼2011/6/28ï¼@m_satyræ§ã«ãææé ããç®æãä¿®æ£ãã¾ãããï¼ ç®æ¬¡ CoffeeScriptã¨ã¯ï¼ ã¤ã³ã¹ãã¼ã« Hello World æ§æ é¢æ° å¤æ°å±é Objectã®çæ ã«ã¼ã åå¨ãã§ã㯠ãã¢ããã¥ã¡ã³ã thisã®ãã¤ã³ã ã¯ã©ã¹ ç¡åé¢æ° {var} Tips ?ã®ä½¿ãåã åå¨ãã§ãã¯
CodeZineç·¨éé¨ã§ã¯ãç¾å ´ã§æ´»èºãããããããã¼ãã¹ã¿ã¼ã«ããããã®ã«ã³ãã¡ã¬ã³ã¹ãDevelopers Summitãããã¨ã³ã¸ãã¢ã®çããã¾ããã¼ã¹ãããããã®ã¤ãã³ããDevelopers Boostããªã©ããã¾ãã¾ãªã«ã³ãã¡ã¬ã³ã¹ãä¼ç»ã»éå¶ãã¦ãã¾ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}