Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
ããã«ã¡ã¯ããããã ãã§ãã ä»åã¯ååä½æãããã£ããã¢ããªããCoffeeScriptãã§ç½®ãæãã¦ã¿ã¾ãã CoffeeScriptã«ã¤ãã¦ã¯ãã¯ãããCoffeeScriptãã·ãªã¼ãºãè¦ã¦ããã ããã¨å¬ããã§ãã ãã¯ãããCoffeeScript ãã®1ã ãã¯ãããCoffeeScript ãã®2ã ãã¯ãããCoffeeScript ãã®3ã CoffeeScriptã®ã¤ã³ã¹ãã¼ã« ã¾ããCoffeeScriptãã¤ã³ã¹ãã¼ã«ãã¾ãã ã¿ã¼ããã«ã§ä»¥ä¸ã®ã³ãã³ããå®è¡ãã¦ãã ããã (ã¨ã©ã¼ãåºãå ´åã¯ããsudoããã¤ãã¦ã¿ã¦ãã ããã) ãCoffeeScriptã npm install -g coffee-script ã¤ã³ã¹ãã¼ã«ãçµãã£ãããã¡ãããã¼ã¸ã§ã³ã確èªãã¦ããã¾ãããã ãcoffee -vãã§ãCoffeeScript version 1.4.0ã
1. 大è¦æ¨¡ JavaScript ãã®è¨è¨ã¨å®è£ ã¨ç¾å® æ ªå¼ä¼ç¤¾Aiming ã½ããã¦ã§ã¢ã¨ã³ã¸ã㢠竹馬å 太é 2012/10/24@AimingStudy#6 12å¹´10æ24æ¥æ°´ææ¥ 2. @mizchi / Koutaro Chikuba 2012/3/1- Aiming/Software Engineer * github https://github.com/mizchi * blog http://d.hatena.ne.jp/mizchi 12å¹´10æ24æ¥æ°´ææ¥
ææã«æåºããããã«æä½ã£ããã®ã®ã³ã¢é¨åãè©°ãã¦ä½ã£ããã ãã©ãèãä¹ã£ãã®ã§ä»æ¥ãã®ã¾ã¾ä½ãããã§ã¿ãã åæã«ãã°ã¤ã³ãã¦ç¸æã«è¿ã¥ãã¦æ®´ã£ããHPãã¼ãæ¸ã£ã¦æ»ã¬ãæ»ã¬ã¨4ç§ã§ãªãããããã ã¾ã ããããå®è£ ãããã¢ã³ã¹ã¿ã¼ãå¾å¾ãããããã¦ãªããå®è³ªä¸æ¥ã§ä½ã£ããã®ãªã®ã§ç¾ç¶ãã®ç¨åº¦ã ã¬ã¯ã¯enchant.jsã§æ¸ãããã¯ããã¦ã¾ã¨ãã«ã¤ãã£ã¦ã¿ãããæå¤ã¨è¤éãªæ§æã«èããå°è±¡ãã¨ãã«ã¢ãã¡ã¼ã·ã§ã³é¨åã¯avatar.enchant.jsã®ä»çµã¿ã«ã»ã¼ä¹ã£ãã£ã¦ããã®ã ãããµã¼ãã¼ãµã¤ãã§ã¹ãã¼ãã決å®ãã¦ã¯ã©ã¤ã¢ã³ãã§åãåã£ã¦ããããããªãã¨èªå以å¤ã¯ãã£ã¦ããªãã¨æãã ä¸å¿Githubã«ç½®ãããã°ã¯ã¼ãã¨ä½ãããã£ãã®ã§ãã¾ã ãã¹ãã³ã¼ããæ¸ãã¦ããªãã mizchi/node-mmo https://github.com/mizchi/node-mmo git cl
ï¼ï¼ååãCoffeeScriptã£ã¦ä½ï¼ãã¸ï¼ï¼ CoffeScriptã3æéã§ç解ããããã®10ã®ãã¤ã³ãã®ãã¡ããã¤ã³ã1ãã3ã¾ã§ã解説ãã¾ãããã¤ã³ã1ã¯ãCoffeeScriptã¯ã³ã³ãã¤ã«ã§å³æé¢æ°ã«å¤æãããããã¨ããã¤ã³ã2ã¯ãå¤æ°ã¯èªåçã«å®£è¨ãããããã¨ããã¤ã³ã3ã¯ããªãã©ã«ã§è±ããªè¡¨ç¾ãå¯è½ã«ããããã¨ã§ãã POINT1ãCoffeeScriptã¯ã³ã³ãã¤ã«ã§å³æé¢æ°ã«å¤æããã â ãå³æé¢æ°ãã§ã°ãã¼ãã«å¤æ°ãä½ããªã â JavaScriptã®strictã¢ã¼ãã«ãå¯¾å¿ CoffeeScriptã§è¨è¿°ãããã³ã¼ããã³ã³ãã¤ã«ããã¨ãJavaScriptã®ã³ã¼ãã¯ã(function() {...}).call(this);ã§ã©ãããããç¶æ ã§åºåããã¾ãï¼ãªã¹ã7ï¼ï¼1ãå¥ç°ã«ãè¦ããæ¸ãæ¹ã§ãããå®ã¯ãJavaScriptã®ä¸çã§ã¯å®ç³ã¨ãè¨ããæ¸ãæ¹ã®ä¸
CoffeeScriptåºç¤ææ³æéãã¹ã¿ã¼ ã¯ããã¾ãã¦ãæ°äººã®tek_kocã§ãã ä»åã¯å··ã§è©±é¡ã®CoffeeScriptã®ææ³ãã¾ã¨ãã¦ã¿ã¾ããã 1å¹´è¿ãåã«æµè¡ã£ãåºç¤ææ³ãã¹ã¿ã¼ã·ãªã¼ãºã«CoffeeScriptããªãã£ãã®ã§ãåå¼·ãå ¼ãã¦åå½¢å¼ã§æ¸ãã¦ã¾ã ã JavaScriptã使ã£ã¦ããæ¹ã¯ããããã£ããçºãã¦CoffeeScriptã¸ã®ç§»è¡ãæ¤è¨ãã¦ãããã°ãªã¨æãã¾ãã ã¾ã ç¶²ç¾ ãããã¦ããªãã§ããããããèªãã°CoffeeScriptã«ä¹ãæãããã¨ãã§ããã¯ãã§ãã ééããã足ããªãç®æãªã©ãããã°ãæ¯éã³ã¡ã³ãçã§ææãã¦ãã ããï¼ ãã¼ã¸ã§ã³ ç¾æç¹ã§ææ°ã®1.0.1ã対象ã«ãã¾ãã ï¼ï¼æ¦è¦ CoffeeScriptã¨ã¯JavaSciprtã«ã³ã³ãã¤ã«å¯è½ãªè¨èªã§ãã RubyãPythonãªã©ã«è¿ãè¨è¿°ãå¯è½ã§ãJavaScriptã®éçºãããå¹çç
A社coffee-scriptã¨ã´ã¡ã³ã¸ã§ãªã¹ãã®mizchiã§ããä»æ¥ã¯æ¨ä»ã®å¤§è¦æ¨¡JSã®éè¦ã®é«ã¾ãã«å¿ããã¹ãããåãç¥ã£ã¦ãè³æãã¾ã¨ããã¨ã®ãéããä¸ã£ãã®ã§ã社å wikié¢åã ãããã«è¼ãã¦ã¾ããã åæ 大è¦æ¨¡JSãã¢ã¸ã¥ã¼ã«åããçºã«coffee-scriptã®ã·ã³ã¿ãã¯ã¹ã·ã¥ã¬ã¼ã§OOPã®ãã©ãã¤ã ãæã¡è¾¼ã coffee-scriptã®ç ©éãªã³ã³ãã¤ã«ä½æ¥ãé¿ããããã«ãRails/Nodeã§ã¯ã¢ã»ãããã¤ãã©ã¤ã³ã使ã£ã¦åçã«ã³ã³ãã¤ã«ã¨å§ç¸®ãè¡ã JSããã¸ã§ã¯ããé¨åçã«nodeåãã¦TDDã§ãµã¤ã¯ã«ãåã coffee-scriptã«é¢ãã¦ã¯ãåºæ¬çã«ã¯æ¬å®¶ãã¥ã¼ããªã¢ã«ã¨ The Little Book on CoffeeScript ãèªãã°ãã coffee-script ãã¥ã¼ããªã¢ã« æ¬å®¶ãã¥ã¼ããªã¢ã« CoffeeScript little book
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ãå¸æç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æ稿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æ稿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}