Talk about ECMAScript 6 at YAPC::Asia Tokyo 2015 http://yapcasia.org/2015/talk/show/44721562-10e4-11e5-88a0-d7f07d574c3a https://www.youtube.com/watch?v=oSPv5IPDSxERead less
æååãªãã©ã« HTMLãå«ãæååãçæããéã«ä¾¿å©ãªãããå²ãæã¯ã·ã³ã°ã«ã¯ã©ã¼ã'hoge'ããã ã»ãã³ãã³ æ«å°¾ã«ã»ãã³ãã³ãã¤ããªãã¦ã解éãã¦ããããããã°ãçãå¯è½æ§ãããã®ã§ã»ãã³ãã³ã¯ã¤ããããã«ç¿æ £åãã ES6ã®classè¨æ³ã®ã¡ã½ããæ«å°¾ã«ã¯ã»ãã³ãã³ä¸è¦ åå¤æ¯è¼ åºæ¬çã«===ãã¤ããã==ã ã¨å¯å®¹éãã解éã®ããããã°ãçããã¨ãããã ç絡è©ä¾¡ hogeFuncã®å¼æ°ã«trueç¸å½ã®å¤ãå ¥ã£ã¦ããå ´åã ||ã®å³å´ã¯èªã¾ããªãã hogeFuncã®å¼æ°ã«falseç¸å½ã®å¤ãå ¥ã£ã¦ããå ´åã ï¼false, null, undefined, NaN, "", 0ï¼ ||ã®å³å´ãèªã¿ã«ããã function hogeFunc(e){ e || console.log('piyo'); } hogeFunc(1); // ä½ãåºåãããªããããç絡è©ä¾¡ããªãã
ãã2016å¹´ãªã®ã§ãçããã¯æ¯ãããããã«es6ã使ããã¦ãããã¨ã ã¨æãã¾ãã å½ç¶ãserverless frameworkã®ã³ã¼ãães6ã§æ¸ãããã§ãããã ãã¡ãããæ®éã«èªåã§babelã§ãã©ã³ã¹ãã¤ã«ãã¦ãããã®ã§ãããå ¬å¼ã«serverless-optimizer-pluginã¨ãããã®ãæºåããã¦ããã®ã§ãããã使ã£ã¦ã¿ããã¨æãã¾ãã 以ä¸ã®èª¬æã¯ãã¹ã¦macãåæã«ãã¦ãã¾ãããwindowsã§ãé°å²æ°ã§å¤§ä½ãããã¯ãã§ãã ã³ã¼ãã¯ãã¡ãã«ããã¾ãã (ãªãã¸ããªåã¨projectåãåã£ã¦ãªãã§ããæ°ã«ããªãã§ãã ãã...) ããããserverless frameworkã£ã¦ãªãã serverless frameworkã¯ãAWS Lambdaã¨AWS API Gatewayãçµã¿åããã¦ããµã¼ãã¬ã¹ãªã¢ããªãæ§ç¯ãããã¬ã¼ã ã¯ã¼ã¯ã§ãã serverle
In this blog post, I show six tricks enabled by new ES6 features. At the end of each section, I point to related material in my book âExploring ES6â (which is free to read online). Enforcing mandatory parameters via parameter default values  # ES6 parameter default values are only evaluated when they are actually used. That lets you enforce that a given parameter be provided: /** * Called if a par
Kyoto.js #10ã§ãç¥ããã¦ããã§ç¥ããã¦ãªãå°ãç¥ããã¦ãECMAScript 2015 (ES6)ã®æ°æ©è½ãã¨ããã©ã¤ããã³ã°ãã¼ã¯ãããã®ã§ããã®ã¹ã©ã¤ãã«å½æ¥ããã¹ã£ãå 容ãè£è¶³ã追è¨ãã¦ä»¥ä¸ã«æ²è¼ãã¾ãã èªå·±ç´¹ä» nanto_vi æ å ±è¦æ ¼èª¿æ»ä¼SC 22/ECMAScript Ad hocå§å¡ä¼ editional issueã®å ±å ECMAScript 2015 (ECMA-262 6th Edtition) ã¯ã©ã¹æ§æ ã¢ãã¼é¢æ° ãããã¯ã¹ã³ã¼ã Promise etc... 2015å¹´ã«ECMAScriptãå¤§å¹ ã«æ¹å®ããã¾ãããã¯ã©ã¹æ§æãã¢ãã¼é¢æ°ã®è¿½å ã¯ãã¡ãã¡ã§åãä¸ãããã¦ããã®ã§çãããåç¥ã§ãããããããã§ã¯ãã¾ãåãä¸ãããã¦ããªãå°å³ãªæ°æ©è½ãç´¹ä»ãã¾ãã Unicodeã®ç¬¦å·ä½ç½® // ð£ '\uD83C\uDF63'; // ES5 '
æ¥ã ã®ä»äºã®ä¸ã§å½¹ã«ç«ã¤ES2015ï¼ES6ï¼ã®ãã£ããã¹ãã³ãããã¹ããã©ã¯ãã£ã¹ãããã°ã©ã ã®è¦æ¬ããç´¹ä»ãã¾ããã³ã³ããªãã¥ã¼ã·ã§ã³æè¿ã§ãï¼ ç®æ¬¡ var vs. let / const IIFEãããããã¯ãã¼ã¹ã¸ ã¢ãã¼é¢æ° æåå ãã¹ãã©ã¯ãã£ãªã³ã° ã¢ã¸ã¥ã¼ã« ãã©ã¡ã¼ã¿ ã¯ã©ã¹ ã·ã³ãã« ããã WeakMaps Promises ã¸ã§ãã¬ã¼ã¿ Async/Await var vs. let / const var ã®ä»ã«ãå¤ãæ ¼ç´ãã let 㨠const ã¨ããèå¥åãæ°ãã«è¿½å ããã¾ããã var ã¨ã¯ç°ãªã£ã¦ã let 㨠const ã¯ã¯ãã¼ã¸ã£ã®ã¹ã³ã¼ãå ã§æåã«è¨è¿°ããããã¨ã¯ããã¾ããã var ã®ä½¿ç¨ä¾ã§ãã var snack = 'Meow Mix'; function getFood(food) { if (food) { var snack
ã¯ããã« ãããã«ã¯æ§ã ãªæ å ±ã溢ãã¦ãããJavaScriptã«é¢ããæ å ±ãå¤æ°åå¨ãã¦ããã¾ãã ãã®ä¸ã«ã¯ããä»æãããªæ¸ãæ¹ããããâ¦ãã¨æããããã³ããå ¥ããããªããããªãæ¬å½ã«ãæ¬å½ã«å¤ãå 容ã«ã¤ãã¦æ¸ããã¦ããå¤ææ¸ãåå¨ãã¾ãã ãããªç½ è¨äºã®æ å ±ã«åããã¦ãã¾ã£ã¦ããã¤ã¾ã§çµã£ã¦ãç¾ä»£çãªJavaScriptãæ¸ããªãçããã®ããã«ããã®ã·ãªã¼ãºã®è¨äºã§ã¯ãåã»ã¯ã·ã§ã³æ¯ã«åãã¦ãæ§ç³å¨æ代ã®è¨è¿°ã¨ãç¾ä»£ã®è¨è¿°ãç´¹ä»ããå½¢ã§ãææéåããã¦ããããã¨ããæãã§è¨è¿°ããã æåã¯ãç¾å¨æ¯è¼çã¡ã¸ã£ã¼ãªãã©ã¦ã¶ã§ä¸éãåä½ãããECMAScript 5ãã¾ã§ã®å 容ã«é¢ãã¦ãã¨ã ãæ¸ãé£ãã¦ãããæçµçã«ã¯ä¸é£ã®å 容ãèªãã ãã§ãES6(ES2015)ãã«ããæ°æ©è½ãã絶è³ææ¡ä¸ã®ãES7ãã®ä¸é¨ææ¡å 容ã«ã¤ãã¦ãææ¡ããããããç¾ä»£äººãè²æãããã¨ãç®æ¨ã¨ããã â¦ãªãã¦ãã£
2016-01-31è¿½è¨ ãã®è¨äºãæåã«æ¸ããé ã¯ä»ã«ä½ãæ å ±ãããã¾ããã§ããããä»ã§ã¯ããã ãã¶ããããããè³æãåºæã£ã¦ãã¾ããããã£ããã¨ããimport/exportã®ä»æ§ããã£ã¨ç¥ãããå ´åã¯ä¸è¨ãåç §ãããã¨ãæ¨å¥¨ãã¾ã https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Statements/import http://www.slideshare.net/teppeis/effective-es6 http://uehaj.hatenablog.com/entry/2015/11/07/001848 2015/12/05è¿½è¨ ã³ã¡ã³ãæ¬ãã Babel v6 ãã Babel å ¬å¼ã® transform ã§ãã transform-es2015-modules-commonjs ã使ã£ãå ´å ES
Qiita:Teamã«æãã社å ããã¥ã¡ã³ãã ã£ããã©ãç¹ã«åé¡ãªãã®ã§Qiitaã«ãæããã åæã¨ã㦠browserify-rails ã¨babelify ãå°å ¥ããã¦ããç¶æ³ãæ³å®ãã¦ãã åºæ¬æ¹é æ°è¦ã³ã¼ãã¯ES2015ã§æ¸ã æ¬çªã¯browserify(-rails)ã§ã³ã³ãã¤ã«ããã åä½ãã¹ã㯠node ç°å¢ä¸ã§èµ°ããã ãã¹ãç°å¢ä¸ã§ã¯ jsdom 㧠window, document ãã¢ãã¯ãã åä½ãã¹ãã§ã¯ ãã©ã¦ã¶ç¹æã®æåã¯ãã¹ãããªã è£å´ã®ç°å¢(browserifyãspec-helper)ã¯é£ãããã¦è¯ãããå©ç¨è ããã¿ããç¯å²ã¯è¤éã«ããªã(npm install; npm testã§èµ°ã) Universal JavaScript ã«å¯ãããã¨ã§ã³ã¼ãã®ãã¼ã¿ããªãã£ãä¸ãã äºåæºå browserify-railsãå°å ¥ããã .babelr
ãã¦ãNodeSchool ãéæ ¡ãããæã«ãES6ãå¦ã¹ããã¥ã¼ããªã¢ã«çãªãã®ãã»ããã¨æããtower-of-babelã¨ããååã®ãã¥ã¼ããªã¢ã«ãã¼ã«ãä½æãã¾ããã github.com ãã®ãã¼ã«ã¯npm/node.jsã使ã£ã¦ä½ã£ã¦ãã¾ããå®éã«åããã¨ãã¯npmãããã°åãã¾ãã npmã®ã¤ã³ã¹ãã¼ã«ã¯ä»ã®è¨äºãåèã«ãã¦ãã ãããnpmãå ¥ã£ã¦ããã°ã以ä¸ã®ããã«ããã°å®è¡å¯è½ã§ãã $ npm install tower-of-babel -g $ tower-of-babelããããã¨ä¸è¨ã®ãããªãã¤ã¢ãã°ãèµ·åããã®ã§ã¨ã¯ãµãµã¤ãºãé¸æãã¦å種åé¡ã解ãã¦ãã ããã å ¨ã¦ã®åé¡ã解ãçµãã£ãé ã«ã¯ãªãã¨ãªã ES6 ã®æ§æã使ããããªã£ã¦ããã¯ãã§ãã ãªã«ãåé¡ãããã°æ°è»½ã« tower-of-babel ã®ãªãã¸ããªã«é£çµ¡ããã ããã github.com 以ä¸
Introduction ECMAScriptã¨ã¯ä½ãï¼ECMAScriptã®åã¯åã¨è¦æããããã« results matching "" No results matching ""
ã¯ããã« ãã2ã¶æåã®è©±ãªã®ã§ãããæ¥æ¬ã®TDD第ä¸äººè ã§ãæè¿ã¯power-assert-jsã®éçºãªã©JSçéã§ãæ´»èºããã¦ãã@t_wadaããããTwitterã§ãããªææ¡ãããã¦ãã¾ããã ãJavaScript: The Good Partsãã¨ãWEB+DB PRESS Vol.87 第1ç¹éãã®ãããã¦250ãã¼ã¸æªæºã§ES6ã¾ã§ã®å ¨ä½åãã¤ããéç¿ã³ã¼ã¹ã®ãææ¡ http://t.co/doPQ7V4enw http://t.co/NKTGz3syk7â Takuto Wada (@t_wada) 2015, 8æ 10 ã¡ããã©ãã®é ãåãã¦ã®gemãä½ãçµããRuby以å¤ã®è¨èªã«å¯¾ããå¦ç¿æ¬²ãé«ã¾ã£ã¦ããã®ã§ããã®ææ¡ã«ä¹ã£ãã£ã¦ã¿ããã¨ã«ãã¾ããã æ¬ã¨ã³ããªã§ã¯ããã®éç¿ã³ã¼ã¹ãå®éã«å±¥ä¿®ããææ³ã¨ãçµæã©ããªã£ãã®ããæ¸ãããã¨æãã¾ãã 履修åã®ç¶æ ãã£ã¨
ããã«ã¡ã¯ä¸¸å±±@h13i32maruã§ãã ES6ã®ä»æ§ãRC4ã«ãªã£ã¦ãããæ£å¼ãªãªã¼ã¹ãä»ãä»ãã¨å¾ ã¡ãã³ã¦ãããã¨ã¯ããããå人ã§æ¸ãã³ã¼ãã¯ES6ä¸æãES5ã«ã¯æ»ããªã(ããã«ãã¦ãBabelã®å¢ããããã)ã ãããªæãã§ES6ãæ¸ãã¦ãããã ãã©ãã¤ãå æ¥ã«AirbnbãES6ã®ã¹ã¿ã¤ã«ã¬ã¤ããå ¬éããã¨ããã®ãè¦ãããã®ã§ããã£ããèªãã§ã¿ãã Airbnb JavaScript Style Guide() {} ã»ã¨ãã©ã®å 容ã¯ãã§ã«ES5ã§ä¸è¬çã«ãªã£ã¦ãããã®ã ã£ããã©ãä¸é¨ES6ãªãã§ã¯ã®ãã®ããã£ããè³æã§ãããã®ããã£ãããã§ããªããã®ããã£ãã®ã§ãæ°ã«ãªãé ç®ã ã軽ãç´¹ä»ãã¦ã¿ãã constã使ã References ES5ã¾ã§ã¯var fooã¨ããããã«å¤æ°ã宣è¨ãã¦ãããã©ããã®varãæ²è ã§ä»ã®è¨èªã¨ã¯ã¡ãã£ã¨ç°è³ªãªåå¨ã§ãããããããã¯ã¹ã³ã¼ãã§ã¯
ã¯ããã« ES6 (EcmaScript 6)ã試ããã¨ãBabelã®ããã¥ã¡ã³ããèªãã§ããã¨ãããæ«å°¾å¼ã³åºãï¼Tail Callï¼ã®æé©åããã¦ãããã¨ã«ã³ã£ãããå ¬å¼ãªãªã¼ã¹ï¼2015å¹´6æï¼ããï¼ã¶æãã¾ãçµã£ã¦ã¯ãã¾ãããES6ãæ«å°¾å¼ã³åºãæé©åãä»æ§ã¨ãã¦ãµãã¼ããã¦ãããã¨ãããããç¥ãã¾ããã ç¾ç¶ã§æ«å°¾å¼ã³åºãæé©åããµãã¼ããã¦ãããã©ã¦ã¶ã¯ãªãï¼ãã©ã¦ã¶ãaltJSãªã©ã®ES6äºæ表ãåç §ï¼ãå¯ä¸ãES6ããES5ã¸ã®ãã©ã³ã¹ãã¤ã©ã§ããBabelã®ã¿ãé¨åçï¼ç´æ¥çãªæ«å°¾å帰ã®ã¿ï¼ã§ã¯ãããªãããµãã¼ããã¦ããããã§ããã ä»åã®è¨äºã§ã¯ãæ¥ããES6æ代ï¼ãã¾ããã®æã¯ããã¾ããï¼ã«åãã¦ãæ«å°¾å帰ã¨ãã®æé©åã«ã¤ãã¦ç°¡åã«è§£èª¬ããä¸ã§ãBabelãå©ç¨ãã¦å®éã«JavaScriptã§ã®æ«å°¾å帰ã®æé©åãå®é¨ãã¦ã¿ããã¨æãã¾ãã ãã£ããæ¦è¦ å帰é¢æ° ã¯é¢
ç¹é1ã®ãä»ããæ´»ããï¼ ææ°JavaScript é²åããä»æ§ECMAScript 6ãã¾ããã¨è§£èª¬ããèªãã§ES6ï¼ã¾ãã¯ES2015ï¼ã«ã¤ãã¦åå¼·ãã¦ããã WEB+DB PRESS Vol.87 ä½è :ä½è¤ éå¹³,å°æ æ大,ç³æ çå¾,åä¸ åå²,ä¸å èª ,é³¥å± è±,ä½è¤ æ©,æ³æ°´ ç¿å¾,ããã¿ ããã,ä¼è¤ ç´ä¹,é«æ© ä¾ä¹ ,ä½è¤ 太ä¸,hayajo,æ©æ¬ ç¿,西尾 æ³°å,ä¸å³¶ è¡,ã¯ã¾ã¡ã2æè¡è©è«ç¤¾Amazon ES6 ã«ã¤ãã¦ã¯æ¢ã« web ä¸ã§ããããã®è¨äºããã£ããã¹ã©ã¤ããä¸ãã£ã¦ãããããã æ¸ç±ã¨ãã¦åºçããã¦ãããã®ã¯è¦ç¹ãã³ã³ãã¯ãã«åãããããã¾ã¨ã¾ã£ã¦ãããããããå¦ã¼ãã¨ãã人ã«ã¯ãã®ç¹éè¨äºãä¸çªããè³æã ã¨æãã å人çã«ã¯ ES6 ã§å°å ¥ãããæ°ããææ³ããä»ã®ï¼ES5 ã®ææ³ã§ã®ï¼JavaScript ã ã¨ã©ãæ¸ãããã¨å¯¾æ¯ããã¦ãããã ãã
8/21-22ã«éå¬ãããYAPC::Asia Tokyo 2015㧠"Effective ES6" ã¨ããã¿ã¤ãã«ã§çºè¡¨ããã ä»åãèªåã«ã¨ã£ã¦ã¯æåã§æå¾ã®YAPCã ã£ããã©ãYAPCã®é¢ç½ãã¯ç¹å®åéã«çã¾ããªãWebç³»ã¨ã³ã¸ãã¢ãä¸å ã«ä¼ããã¨ããã ã¨æããã ä¾ãã°HTTP/2ã£ã¦Webå ¨è¬ã«å½±é¿ãããä»å¾ãã¼ã«ãªãæè¡è¦ç´ ã ã¨æããã©ãHTTP/2åä½ã®ã¤ãã³ãã«ããããåå ãããèªåã§åå¼·ããããã人ã¯éããããYAPCã§æ§ã ãªã¬ã¤ã¤ã¼ã®ã¨ã³ã¸ãã¢ãHTTP/2ã®ã»ãã·ã§ã³ãèãã¦ããã«ã¤ãã¦è°è«ãããã¨ã§ãæ¥æ¬ã®Webã¨ã³ã¸ãã¢ã«ãããHTTP/2ã®ãã¼ã¹ã©ã¤ã³ãä¸ãã£ããããªæ°ãããã ãã¹ããã¼ã¯3æ¬ã®ãã¡2æ¬ãHTTP/2ã ã£ãã®ããããã£ãè¦å ãããã®ã§ã¯ã¨æããï¼ããã¦ã©ã¡ãã®çºè¡¨ããã®æå¾ ä»¥ä¸ã«ç´ æ´ãããå 容ã ã£ãï¼ï¼ã èªåã®çºè¡¨ããWebéçºã«å¤§ããå½±é¿
ãã®è¨äºã¯ECMAScript 2015ã®äºå§ãã¨ãã¦ãã©ã¤ãã©ãªãECMAScript 2015ã§æ¸ãã¦å ¬éããã¨ããã¨ããããå§ããã®ãããã®ã§ã¯ã¨ããå 容ã§ãã ECMAScript 2015(ES2015)ã¯ES6ã¨ãå¼ã°ãã¦ãã¦ã©ã¡ããåããã®ãæãã¾ããããã®è¨äºã§ã¯ES2015ã«çµ±ä¸ãã¾ãã ECMAScriptã®ãã¼ã¸ã§ã³ã«ã¤ãã¦ã¯æ¬¡ã®ãã¼ã¸ãåç §ãã¦ãã ããã ECMAScript · JavaScriptã®å ¥éæ¸ #jsprimer 2018-12-27: è¿½è¨ textlint/textlint-rule-helperã®masterã¯TypeScriptã®å®è£ ã¸å¤æããã¦ãã¾ãã Babelã®å®è£ ã¯https://github.com/textlint/textlint-rule-helper/tree/2.0.1ããåç §ã§ãã¾ã Babel ãã TypeScrip
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}