You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
programming notes. mainly about JavaScript / jQuery. [@Takazudo] [takazudo@gmail.com] Hint: alt + / CoffeeScriptã¯æ¯ãå¦ãã¨ãã話ã¯ãCoffeeScriptã調ã¹ã¦ããã°å¦å¿ãªãã«å¼ã£ããã話é¡ã§ãèªåãããã«ã¤ãã¦ã¯ããªãèãããããããä½åããã®ããã°ã§ãæ¸ããã¨ãããCoffeeScriptãããªã¼ã¨æã£ã¦ã¯ãã¦ãããï¼ï¼ï¼ã¶æã¯ãã£ã¨CoffeeScriptã§JavaScriptãæ¸ãã¦ãããã ãã©ããããç¹ã¯ãã¡ããããã«ãããæ¸ãã¦ãããã¡ã«ãæåã¯è¦ãã¦ãªãã£ãåé¡ãè¦ãã¦ãããããæããããã®ã§ããã®ç¹ã«ã¤ãã¦å°ãæ¸ãã¾ãã ãªã CoffeeScript ãããã - 0xff.toBlog()ãªã CoffeeScript ããã¡ã - å¬éãã«æ¶ãè¡ãå¶æ
ããã¾ãã¦ããã§ã¨ããããã¾ããä¸æ¨å¹´ãæ¨å¹´ã«å¼ãç¶ããä»å¹´ãæ¨å¹´ã®JavaScriptãæ¯ãè¿ãã¤ã¤ãJavaScriptã®è¿ãæªæ¥ã«ã¤ãã¦ã¡ãã£ã¨ã ãã話ããã¦é ãã¾ãã ããã§ã¯æ©éãæ¨å¹´ã®äºæ³ãæ¯ãè¿ãã¤ã¤ãæè¿ã¾ã§ã®JavaScriptçéã®åããæ¯ãè¿ã£ã¦ã¿ã¾ãããã 2011å¹´ã®JavaScriptçéã§ã®ãã¥ã¼ã¹ æ¨å¹´ã®è¨äºã§ç§ã¯2011å¹´ã¯ã¦ã§ãã¢ããªã®æ®åã«åãã¦ãJavaScriptã®éçºç°å¢ã¨ãã¹ãç°å¢ããã¼ã«ãªãã¨æ¸ãã¾ãããã¾ãã¯ãã®2ã¤ã®è¦ç¹ããè¦ã¦ã¿ã¾ãããã JavaScriptã®éçºç°å¢ 2011å¹´ã®JavaScriptã®éçºç°å¢ã«é¢ãã大ããªãã¥ã¼ã¹ã¨ããã°ãRuby on Railsã®3.1ã«CoffeeScriptãããã©ã«ãã§æ¡ç¨ãããã¨ããä¸ä»¶ãããã¾ããRailsã¯é常ã«äººæ°ã®é«ãã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã§ãå¤ãã®ãã¬ã¼ã ã¯ã¼ã¯ã«
æè¿CoffeeScriptçéã®ããã´ã¹ãã£ã¢(æ»èª)ãè³ããã¦ãããCoffeeScriptã使ãã¹ããã使ãããã¹ããï¼ãã¨ãã話é¡ã«ã¤ãã¦ã¾ã¨ãã¦ã¿ãã 以ä¸ã®è¨äºç´¹ä»ã¯è¶ 訳ãã¤è¦ç´ãªã®ã§è©³ããç¥ããã人ã¯å è¨äºãåç §ã®ãã¨ã ãã¨ã®çºç«¯ã¯ãã®è¨äºã SnackJSã®ä½è ãCoffeeScriptããã£ã¹ãã A Case Against Using CoffeeScript by Ryan Florence ãããã°ã®åé¡ CoffeeScriptãçæããJavaScriptã¯ãã¡ãã¨ãã¦ãããã©ãçµå±ã¯èªåãæ¸ããã³ã¼ããããªãããèªã¿ã«ãããèªåã§ç´æ¥æ¸ããã»ããè¦ãããã ããã«CoffeeScriptããããã°ããã¯ã¼ã¯ããã¼ã¯å¤§å¤ã ã ã¾ãåé¡ãJavaScriptå ã®ã©ãã§çºçããã®ããçªãæ¢ãã(CoffeeScriptã®ã³ã¼ãã¨è¡åä½ã§å¯¾å¿ãã¦ãªããã大å¤ã )
JS2Coffee The JavaScript to CoffeeScript compiler. Source $ npm install js2coffee $ js2coffee input.js > output.js
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}