æè¿ä½åº¦ãã¯ã©ã¤ã¢ã³ããµã¤ãMVCãã¬ã¼ã ã¯ã¼ã¯ã§ããã¨ããã®ãBackbone.jsã使ã£ã¦ã³ã¼ãããããããã¦ããã®ã§ããã®æã«æãããã¨ãã¾ã¨ã㦠Kyoto.js ã§è©±ãã¦ã¿ã¾ããã çºè¡¨è³æ "ä½ãMVCãã¤ãªãã¦ããã®ã" Backbone.jsã§ã¯MVCã®å層ãã¤ãªããããã«ãBackbone.Eventsã¨ãããªãã¸ã§ã¯ããç¨æããã¦ãã¾ããBackbone.jsã®Modelã¨Viewã®ã¤ã³ã¿ã©ã¯ã·ã§ã³ã¯ããã¼ã¹ã«ãªã£ã¦ããBackbone.Eventsã«ããObserverãã¿ã¼ã³ã«ãã£ã¦å®ç¾ããã¦ãã¾ããå®éã«Backbone.jsã§ã³ã¼ããæ¸ãã¦ã¿ãã¨ã便å©ãªæ©è½ã¯ãããããããã®ã®Backbone.Eventsã®åå¨ãMVCãå®ç¾ããã®ã«éè¦ã§ãããã¨ããããã¾ãã ããã¤ãã¤ããã¨ãBackbone.Eventsã®ãããªObserverãã¿ã¼ã³ãç°¡åã«å®ç¾ã§ããã
Todoã¢ããªãã©ããä½ã ä»åã¯RequireJSã®ç解ãæ·±ãããããBackbone.jsã¨çµã¿åããã¦Todoã追å ããã ãã®ç°¡ç´ ãªãã¢ãä½ã£ã¦ã¿ã¾ããã Backbone.jsã«ã¤ãã¦ã触ãã¦ãããããè¨äºãå°ãé·ãã§ãã ãæ¥ãã®æ¹ã¯ãã¼ã¸ä¸é¨ã«ãã¢ã¨ãµã³ãã«ã³ã¼ããããã®ã§ããã¡ããããã£ã¨ã確èªãã ããã RequireJSï¼ http://requirejs.org/ RequireJS APIï¼ http://requirejs.org/docs/api.html Backbone.jsï¼ http://backbonejs.org/ ãªã«ãã§ããã®ï¼ Webã¢ããªãå¶ä½ããéã«ãRequireJSã使ã£ã¦Backbone.jsã§æ§æãããModelãViewãã¢ã¸ã¥ã¼ã«åãããã¨ã§ãéçºæã®ç®¡çã³ã¹ãåæ¸ãç®æãã¾ãã ãªããã¢ã¸ã¥ã¼ã«åããã¨ãã¡ã¤ã«æ°ãå¢ãã¦èªã¿è¾¼ã¿
ã¯ã©ã¤ã¢ã³ããµã¤ãJavaScriptã®ãã¬ã¼ã ã¯ã¼ã¯ã¨ãã¦äººæ°ã®Backbone.jsãæ¡ç¨ãã¦ãã ModelâViewâPresenter (MVP) ã¨ããã¢ã¼ããã¯ãã£ãã¿ã¼ã³(以ä¸MPVãã¿ã¼ã³)ã«ã¤ãã¦èå¯ãã¦ã¿ã¾ãã Model-View-Controllerãªãèãããã¨ãããã©ï¼ åãããã§ãããåãã¦ç¥ã£ãã®ã¯Ruby on Railsã触ã£ãæã§ãã Modelã¯ãã¼ã¿ã¨æç¶ããæ å½ããViewã¯UIããControllerã¯å ¥åã¤ãã³ããåä»ãã¦Modelã¨Viewæä½ããâ¦ã¨ã¾ããã£ããè¨ãã¨ãããªæãã§ãããã MVPãã¿ã¼ã³ãåãä¼¼ã¦ãã¦ãã©ããMVCãã¿ã¼ã³ããæ´¾çãããã®ã¿ããã§ãã以ä¸ãåãã¿ã¼ã³ã®å³ã§ãã Model-View-Controller Model-View-Presenter PresenterãModelã¨Viewãæä½ãã¦ããã¨ãã
Why do we hate testing? How do we test JavaScript? How do we test Backbone.JS? (Credits to @searls for slides 6 through 12, used with permission).
Backboneã使ãã¨ãã®åèæ å ±ãã¡ Advent Calendarããã¿åãã®æãæçµæ¥ãå´ããªãå°ãã¿ã§çµããããã¯ãã·ãã¨ãããã¨ã§ãªã¹ãã¢ãããã¦ã¿ãã æ¥æ¬èªãªã½ã¼ã¹ ã§ã¯æ©éãæ¥æ¬èªã®ãªã½ã¼ã¹ãããå¤ãæ å ±ã¯ãªã¹ãããå¤ãã¦ããã®ã§ãããããåãããããããæªããããã ãã®ãã¼åãã«ã¾ã¨ã¾ã£ãã® CodeGrid - ããã³ãã¨ã³ãã«é¢ãã人ã ã®ã¬ã¤ã Backbone.js Advent Calendar 2011 - Qiita CodeGridã§é£è¼ä¸ã®Backboneå ¥éããã¡ããã©ãªã¢ã«ã¿ã¤ã ã«æ´æ°ããã¦ãããã®ãã¼åãæ å ±ã§ããããããã ãææãå»å¹´ã®Advent Calendarãä¸å¯§ã§ããããã enja-oss/Backbone · GitHub JavaScript MVCãã¬ã¼ã ã¯ã¼ã¯ Backbone.jsã®ã³ã¡ã³ãä»ãã½ã¼ã¹ã³ã¼ãæ¥æ¬èªè¨³ãå ¬é
Backbone.js Advent Calendarã®19æ¥ç®ã§ãã å é±Backbone.jsã®0.9.9ããªãªã¼ã¹ããã¦ãã£ããå¤æ´ç¹å¤ãã®ã§Change Logã«æ¸ãã¦ãããã¤ãç°¡åã«ã¾ã¨ãã¨ãã¾ãã Backbone.js - Change Log ã¾ããå æ¥æ¸ æ°´ããï¼@tori3_jpï¼ã以ä¸ã®ãããªã¨ã³ããªãæ¸ãã¦ãã¦ãããã¤ãéè¤ããç¹ãããã¾ãã®ã§ããã¡ããåç §ãã¦ãã ããã Backbone.js 1.0ã«åãã¦ã®å¤æ´ç¹ « NAVER Engineers' Blog Eventsé¢é£ Eventsã«listenToã¨stopListeningã追å ããã¾ãããæ¸ æ°´ããã®ã¨ã³ããªã®è¿½è¨ã®é¨åã«è©³ããæ¸ãã¦ããã¾ãã Backboneãªãã¸ã§ã¯ããEventsãç¶æ¿ããããã«ãªãã¾ãããBackbone.on('foo')ã¿ãããªã°ãã¼ãã«ãªã¤ãã³ããè²¼ããã¿ããã§ãã
Githubã§JavaScriptã®ã³ã¼ãã¨ãã¦åé¡ããã¦ãããç¾æç¹ã§watchæ°ã®å¤ã200件ã®ä¸ã§ãå®éã«ä½¿ã£ããã¨ããã便å©ã¾ãã¯é¢ç½ãã¨æãã20件ãã¾ã¨ãã¦ã¿ã¾ããã backbone-boilerplateãrequirejsãyeomanãlodashã®ãããªå®çªã«ãªã£ã¦ãã¦ãããã®ãããTimelineJSã®ãããªå ¨ãæ±ç¨æ§ã®ãªããã®ã¾ã§ããã¾ãã d3.js Data-Driven Documentsããµã³ãã«éã観ãã®ãæã£åãæ©ãã¨æãã¾ãã pdf.js JavaScriptã ãã§PDFãã¬ã³ããªã³ã°ã§ããæ代ã§ãã1å¹´åã»ã©åã«ããã¹ãã¨ãããªãPDF製ä½è ã®æå¾ éãã«ã¬ã³ããªã³ã°ã§ããããã«ãªã£ã¦ãã¦ãã¾ãã backbone-boilerplate Backbone.jsã使ã£ãã¢ããªã®éª¨æ ¼æ§é ããµã¼ãã¼å´ã§ããããMVC2ã®ã¢ããªãä½ã£ã¦ãã人ã«ã¯B
JavaScriptã®åºç¤ã®ç解 ãµã³ãã«ãã¡ã¤ã«ï¼ GitHubããã¯ã¤ã³ã»ã©ã¼ã¢ããªã±ã¼ã·ã§ã³ã®ãã¼ã1ã®ã½ã¼ã¹ã³ã¼ãããã¦ã³ãã¼ããã¾ãããã®ã¢ããªã±ã¼ã·ã§ã³ãå®è¡ããã«ã¯ãRESTfulãµã¼ãã¹ãå¿ è¦ã§ããPHPãã¼ã¸ã§ã³ï¼Slimãã¬ã¼ã ã¯ã¼ã¯ã使ç¨ï¼ã¯ããã¦ã³ãã¼ãã®ä¸é¨ã¨ãã¦æä¾ããã¾ããã¯ã¤ã³ã»ã©ã¼ã¢ããªã±ã¼ã·ã§ã³ã®æ§ã ãªãã¼ã¸ã§ã³ããã¦ã³ãã¼ãã§ãã¾ããGitHubãããã®ã¢ããªã±ã¼ã·ã§ã³ã®Javaããã¯ã¨ã³ãï¼JAX-RSããã³Jerseyã使ç¨ï¼ãã¼ã¸ã§ã³ããã¦ã³ãã¼ããã¾ãããã®ã¢ããªã±ã¼ã·ã§ã³ã®Javaãã¼ã¸ã§ã³ã«ã¤ãã¦ã¯ãç§ã®ããã°ã®è¨äºãUsing Backbone.js with a RESTful Java Back-Endãããèªã¿ãã ãããnon-Backboneã®Javaããã¯ã¨ã³ãã¾ãã¯PHPããã¯ã¨ã³ãããã¦ã³ãã¼ããã¾ãã JavaScript
jQueryããã¼ãªã¢ããªã±ã¼ã·ã§ã³ã®åé¡ç¹ã¨ãMVCã«ããæ§é åã®å¿ è¦æ§ jQueryã¯ããã©ã¦ã¶ä¸ã§åãJSã¢ããªã±ã¼ã·ã§ã³ã®éçºçç£æ§ãåçã«åä¸ããã¾ãããDOMæä½ã«ããåçãªãã¼ã¸æ¸ãæãå¦çãªã©ã¯ãã»ã¬ã¯ã¿ã使ã£ã¦ã¡ããã£ã¨ã³ã¼ããæ¸ãã ãã§ãã»ãã®æ°è¡ã§è¨è¿°ã§ãã¦ãã¾ãã¾ãã ãããããã®æ¹æ³ã®å»¶é·ã§ã大è¦æ¨¡ãªJSã¢ããªã±ã¼ã·ã§ã³ãæ§ç¯ãããã¨ã¯æããã¦ç¾å®çã§ãããããä¾ãã°ãGMailãããNew Twitterãç¨åº¦ã®è¦æ¨¡ã®JSã¢ããªã±ã¼ã·ã§ã³ãæ¸ããªããã°ãªããªãã¨ããããã©ãã§ãããï¼ å¤§è¦æ¨¡ãªJSã¢ããªã±ã¼ã·ã§ã³ãéçºããã«ã¯ããããã£ãææ³ã延é·ããã®ã§ã¯ãªããããæ´ç·´ããããã¶ã¤ã³ãã¿ã¼ã³ãå°å ¥ããå¿ è¦ãããã¾ãããã®ç®çã«ã´ã£ããã®ãã¶ã¤ã³ãã¿ã¼ã³ãããMVCããã¶ã¤ã³ãã¿ã¼ã³ã§ãã MVCãã¿ã¼ã³ã¯ãWebã®ä¸çã§ã¯ãµã¼ããµã¤ãããã°ã©ãã³ã°ã§åºãç¥ãã
é²è¦§ä¸ã®æ³¨æ ãã®è¨äºã§å¯¾è±¡ã¨ãã¦ãããã¼ã¸ã§ã³0.5.3ã¯çµæ§å¤ãã®ã§æ³¨æãã¦ãã ããããã®è¨äºã§ããã°ãbindã¯ç¡ããªããç¾å¨ã§ã¯onãlistenToã使ããã¦ãã¾ãã ãã®ä»ã®å²ãã¨æ°ããæ å ±ã¯ Backbone.js Advent Calendar 2012 ãªã©ã«ããã¾ãã ï¼è¿½è¨ããã¾ã§ï¼ ãã¿åãæãå¦ããªãBackbone.js Advent Calendarã§ãããä»åããä½åãã«åãã¦æåä¸å¯§ãªå ¥éè¨äºãæ¸ãã¦ãããã¨æãã¾ãã 以ä¸ã®ããã«æ¸ãé²ãã¦ããäºå®ã§ãã Events View Model Viewã¨Modelã®é£æº Collection Viewã¨Modelã¨Collectionã®é£æº Routerã¨History ãªãããã§æ±ãBackbone.jsã®ãã¼ã¸ã§ã³ã¯0.5.3ã§ãã #Backbone.jså ¥é ãEventsã Backbone.js
©Powered by hamsketch Quoraã®"What are some good resources for Backbone.js?" ã®ãããåçãcoolã ã£ãã®ã§ã翻訳ãã¦è¿½å ãã¦ç·¨éãã¦ã³ã¡ã³ããã¦ã¡ã¢ã - å ¬å¼ Backbone.js å ¬å¼ãµã¤ã ã½ã¼ã¹ã³ã¼ã 解説ä»ãã½ã¼ã¹ã³ã¼ã 解説ä»ãã½ã¼ã¹ã³ã¼ãã®ç¿»è¨³ï¼æ¥æ¬èªï¼ Underscore.jsï¼å ¬å¼ãµã¤ãï¼ï¼ã½ã¼ã¹ã³ã¼ãï¼ backbone.jsã¯underscore.jsã«å¼·ãä¾åãã¦ãããããã£ã¡ãåå¼·ããæ¹ãè¯ãã å®ã¯ãã®2ã¤ã¯ãã¹ããã¦ãã¨ããã¯ä¸ç·ã ãï¼DocumentCloudï¼ ææ°ã®æ å ±ã欲ãããªã... å ¬å¼Wiki Githubã®Wikiãæ´»çº Backbone.jsã¯ãã³ã¼ãã®ãã¹ãã¯å¿è«ãå ¬å¼ãµã¤ãããã¢ãµã¼ãã¹ãgithub::pagesãWikiãgithub::wikiã¨ãOc
ã°ã¼ã°ã«ãéçºããJavaScript MVCãã¬ã¼ã ã¯ã¼ã¯ãAngularJSããç´¹ä»ãã1ã¤åã®è¨äºã®åå¿ãäºæ³ä»¥ä¸ã«å¤§ããã1æ¥ãããã«ããã¯ãã¼ã¯ã500以ä¸ãã¤ãã¾ããã æ¬è¨äºã§ã¯ãAngularJS以å¤ã«ããã§ã«ããããåå¨ããJavaScript MVCãã¬ã¼ã ã¯ã¼ã¯ã«é¢ããæ å ±ãã¾ã¨ãã¦ç´¹ä»ãããã¨æãã¾ãã JavaScript MVCãã¬ã¼ã ã¯ã¼ã¯ã®æ¯è¼è¨äº æ¢åã®JavaScript MVCãã¬ã¼ã ã¯ã¼ã¯ãæ¯è¼ããè¨äºããThe Top 10 Javascript MVC Frameworks Reviewedãã§ããTop10ã¨æ¸ãã¦ããã¾ããã12種é¡ã®ãã¬ã¼ã ã¯ã¼ã¯ã®æ¯è¼ã§ããããã¯å ¬éå½æã¯10種é¡ã ã£ããã®ãããã®å¾11種é¡ã«ãªããä»åã®AngularJSã®å ¬éã§12種é¡ã«ãªã£ãããã§ãã ä¸è¨ã®ãããªæ¯è¼è¡¨ãè¼ããä¸ã§ã12種é¡ãã¹ã¦ã®å©ç¹ã¨æ¬ ç¹ã説æã
Backbone.jsã¨ã¯ï¼ Backbone.jsã¯ãJavaScriptã«ãã大è¦æ¨¡ãªã¢ããªã±ã¼ã·ã§ã³éçºãè¡ãéã«åãçºæ®ããMVCãã¬ã¼ã ã¯ã¼ã¯ã§ãããã¼ã¿ãã¤ã³ãã£ã³ã°ã¨ã«ã¹ã¿ã ã¤ãã³ããåããModelãé åæ å ±ã表ãCollectionãã¤ãã³ãããã³ããªã³ã°ããViewããµã¼ãã¼ãµã¤ãã®ã¢ããªã±ã¼ã·ã§ã³ã¨é£æºããããã®RESTful JSONãªã©ããã¬ã¼ã ã¯ã¼ã¯ã¨ãã¦åãã¦ãã¾ãã 大è¦æ¨¡ãªæ¥åã¢ããªã±ã¼ã·ã§ã³ã®ã¦ã¼ã¶ã¼ã¤ã³ã¿ãã§ã¼ã¹ãJavaScriptã§ã´ãªã´ãªã¨ä½ããã¨ããå ´åã100%ã«è¿ã確çã§å¤±æãããã¨æãã¾ããããã¯ãFlexã®ãããªãã«ãæã®ã³ã³ãã¤ã©ã¨ã©ã¼ãæ¤åºã§ããªããã¨ãåå¨ãããã¬ã¼ã ã¯ã¼ã¯ãã¤ã³ã¿ã©ã¯ã·ã§ã³ããã¸ã¥ã¢ã«ã«ç¹åãã¦ãããã¨ããã©ã¦ã¶ã¼ãOSã®çµåãã§APIã¬ãã«ã®ä»æ§ãç°ãªãäºãåããã©ã¦ã¶ã¼ã§ããã¼ã¸ã§ã³ã®éãã«ããæåãç°ãªãäº
URLYou can post either your article on Qiita or your blog post. About reserved postingIf you register a secret article by the day before the same day, it will be automatically published around 7:00 on the same day. About posting periodOnly articles submitted after November 1 of the year can be registered. (Secret articles can be registered anytime articles are posted.)
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}