Please note that Glide no longer supports Internet Explorer versions 7 or 8.
12/4ã®è¨äºï¼AngularJSã使ã£ãWebã¢ããªã®ã¢ã¼ããã¯ãã£è¨è¨ï¼ã§æ¸ãã¨è¨ã£ãã¾ã¾æ¾ç½®ãã¦ããã®ã§ãAngularJSã®MVCãã¿ã¼ã³ã«ã¤ãã¦æ¸ãã¦ã¿ããã¨æãã¾ãã AngularJSã®MVCã«ã¤ãã¦ã¯ã12/19ã®ãåã®Angular.jsã¯ããMVCã§ã¯ãªããã¨è¨ãããªãããã®Tutorialã¨ãããã°ãããè¨äºãããã¾ãããæ¬è¨äºã§ã¯ããå°ãæ½è±¡çãªå 容ãæ±ã£ã¦ã¿ãããã¨æãã¾ãã MVWï¼Model-View-Whateverï¼ãã¿ã¼ã³ã¨ã¯ MVCãã¿ã¼ã³ã«ã¯ãMVC2ãMVPãMVVMãªã©æ°å¤ãã®æ´¾çãã¿ã¼ã³ãããã¾ãã ç®çã¯åããªã®ã«æ´¾çãã¿ã¼ã³ãããããããã®ã¯ãããããã®ãã©ãããã©ã¼ã åºæã®åé¡ï¼ãã¬ã¼ã ã¯ã¼ã¯ã®éããããµã¼ããµã¤ããã¯ã©ã¤ã¢ã³ããµã¤ããã®éããªã©ï¼ã«ãã£ã¦MV*ã®*ã®å½¹å²ãç°ãªãããã§ãã AngularJSã¯å ¬å¼ãã¼ã¸ã§"Superhe
ã¡ãªã¼ã¯ãªã¹ãã¹ï¼ PHP Advent Calendarããããã24æ¥ç®ã«çªå ¥ã§ãã æ¨æ¥ã¯xhprofã«ã¤ãã¦ã§ããããåãããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã°ã®éã«ä½¿ã£ã¦ãã¾ããæ軽ã«å©ç¨ã§ããã®ã§ãå§ãã§ãã ãã¦ããã®ã¨ã³ããªã¼ã§ã¯è¡¨é¡ã®éãMVCã«ã¤ãã¦æ¸ããã¦ããã ãã¾ããããã¯ãPHPã«ã³ãã¡ã¬ã³ã¹2012&WordCamp Tokyo2012ååLT大ä¼ã§çºè¡¨ããããã¯ããåãã®MVCã¯ééã£ã¦ãããã§ç ½ãã ãã ã£ããã®åé¡ããã¡ãã¨è§£èª¬ãããã®ã§ãã ãã®çºè¡¨è³æãå ¬éããã¨PHPã®æ ãè¶ ãã¦åºãé²è¦§ããã ã*1ãã¾ãå¤ãã®æ¹ããçªã£è¾¼ã¿ãæ´ãã¾ããããLTã ãããã¨è¨ã£ã¦éãã¦ããåçããã¦ãæ°æã¡æ°ãã«æ°å¹´ãè¿ãããã¨æãã¾ãã MVCã¨ã¯ãªããªã®ã ééããææããåã«MVCãããããã©ãããã¢ã¼ããã¯ãã£ã§ããã®ãã確èªããªããã°ããã¾ããã MVCã¯1970年代ã«ãã
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? ç解ããããããã«é©å½ã«é®ã£ãããè¨ãåã£ã¦ãã¾ã£ãã¨ããããããã容赦ããã ãããã MVCã®ç»å ´ MVCã¯ãSmalltalkã®GUIã©ã¤ãã©ãªã®ã¢ãã«ã¨ãã¦ç»å ´ããã ããã¯GUIã¢ããªã±ã¼ã·ã§ã³ãè¨è¿°ããéã«ãé©åãªã¢ãã«åãé²ããã®ã«ã¨ã¦ãããèãæ¹ã ã¨æããã¦ããããå®éã«ããã ã£ãã ããã¯ã¢ã¼ããã¯ãã£ãã¿ã¼ã³ã¨ãã¦ããããããã©ã®ããã«ä¾åããã¹ãããã©ãã«ã³ã¼ããæ¸ãã¹ããã¨ãããã¨ã端çã«è¡¨ãã¦ããã å®å®ä¾åã®ååã¨ãããã®ããããããã¯ãè¦ä»¶ãå®å®ãã¦ããã¢ã¸ã¥ã¼ã«ã«ä¾åããè¦ä»¶ãå¤åããããã¢ã¸ã¥ã¼ã«ã«ã¯ä¾å
ç¶ç·¨ã®ç´¹ä» ç¶ç·¨ ãã¯ã俺ã®MVCã¯ééãã¦ãã in Backbone.js ãæ¸ããããã£ã¡ã®ã»ããæçãªæ å ±ãä¹ã£ã¦ãã¨æããã©é¢ç½ããªããããããªã 以ä¸æ¬ç·¨ MVC ã®è©±ã¨å®æã®è©±ã¨æ¿æ²»ã®è©±ã¨éçã®è©±ã¯ãã¦ã¯ãããªãããã§ãããããªã®ç¥ãã俺ã¯ããã ã¯ã©ã¤ã¢ã³ããµã¤ã MVC ã®è©± ãããã MVC ã®åºèªã GUI ã¢ããªã±ã¼ã·ã§ã³ã®ããã«çã¾ãã¦ãããã®ãªã®ã§ãã¯ã©ã¤ã¢ã³ããµã¤ã MVCããªã©ã¨è¨ãè¨ãæ¹ãããªããã°ãªããªãç¶æ³ããã§ã«æãã®ã ããã©ãã¾ãããã¯ããã¦ããã ããã¡ã¯ Backbone.js ã使ã£ã¦ãããã MVC ã§ã¯ã©ã¤ã¢ã³ããµã¤ããä½ããã¦ãã¦ä¿å®æ§ãé«ãã§ããã¿ãããªãã¨ãè¨ã人éããã¾ã«ããããBackbone.js ãã¤ãã£ãããï¼ããã㯠Marionette.js ã使ã£ããããï¼ã¨ãã£ã¦èªåçã«ãåã®ã¢ããªã±ã¼ã·ã§ã³ã MVC ã«ãªããã
2013-07-05 Rails ã®ã¢ãã«ã¯ã©ãããã¹ãã rails TL;DR: Rails ã® model ã太ããããã®ã¯ãçã¾ãã¤ã責åéå°ã ãããéçºè ãè¨è¨æ®µéã§è²¬åãçµããé£ã¹ãéãæ¸ããã¦ããããã Rails ã® model ã¨ããã®ã¯ãæ¦å¿µãå®è£ ããã¨ã¦ãå¥å¦ãªä½¿ããæ¹ããã¦ããã ããããä¸æ°å³ã ããå®å®³ãããã fat model ã¯ãã£ã¨ Rails çã§è©±é¡ã«ãªãã¤ã¥ãã¦ããã ãã§ã« Rails ã®ãããã§ãã·ã§ãã«ã¯æãåºãã¦ããã®ãããããªãããã¾ã è°è«ã®ä½å°ã®ãã話é¡ã§ã¯ããããã ã ãªã model ã太ããã¨ããã¨ããªãã§ãããã§ã model ã«é£ã¹ãããããã§ããã ä¸æ¥ä¸é£ã¹ã¦ãã°å ã ã©ããªã«ã¹ã¬ã³ãã¼ã§ã太ãã«æ±ºã¾ã£ã¦ãã ã³ã¼ãã®ãã¤ã¨ããã¯é£ã¹ãéãæ¸ããããå¤ã«åºããããªãã 太ã£ã¦ããå¤ã«åºãã®ããªãã¡ã¯ã¿ãªã³ã°ã§ããã å¾ç¥æµçã«
1åç·ã¹ãããè¿ã¥ãããã®é ã«ãJavaScriptã®MVCãã¬ã¼ã ã¯ã¼ã¯ã«ä½ã使ããï¼ node.jsã¨ä½¿ã£ã¦ã¿ããã¦ã§ãã¢ããªã®ãã¬ã¼ã ã¯ã¼ã¯ã®åè£ã14é¸ãã§ã¿ã¾ããã MVCãã¬ã¼ã ã¯ã¼ã¯ã¨ãã£ã¦ããç´ç²ãªMVCã ãã§ã¯ãªããMVVMãMVC2ãMVPãªã©åºç¾©ã®MVCãã¬ã¼ã ã¯ã¼ã¯ãå«ã¿ã¾ããæçãããã¬ã¼ã ã¯ã¼ã¯ backbone.jsã®ããã«ä¸å®ã®æ´å²ã®ãããã®ããexpress.jsã®ããã«node.jsã§ã®ããã¡ã¯ãã»ã¹ã¿ã³ãã¼ãã«ãªã£ã¦ãããããªãã®ãå«ããä»ãããããã¯ã·ã§ã³ç°å¢ã§ä½¿ç¨ã§ããæç度ãããã¨æããããã¬ã¼ã ã¯ã¼ã¯ãã¾ã¨ãã¾ãã Backbone.js http://documentcloud.github.com/backbone/ å¤åã®ããã³ãã¨ã³ãåãMVCãã¬ã¼ã ã¯ã¼ã¯ã node.jsã«éãããRailsçã®ãã¬ã¼ã ã¯ã¼ã¯ã§ãããã³ãã¨ã³ãå´ã®
JavaScriptã§MVCã®æ§é ãæã¤ã¢ããªã±ã¼ã·ã§ã³ãéçºããããã®ãã¬ã¼ã ã¯ã¼ã¯ã10種é¡ä»¥ä¸ç»å ´ãããã®åéãçãä¸ãã£ã¦ãããã¨ã¯ã以åã®è¨äºãJavaScript MVCãã¬ã¼ã ã¯ã¼ã¯ã¯ãã§ã«å種é¡ä»¥ä¸ããã®æ¯è¼ãææ°æ å ±ãªã©ã®ã¾ã¨ããã§ç´¹ä»ãã¾ããã ãã®å種JavaScript MVCãã¬ã¼ã ã¯ã¼ã¯ã®éããå¦ã¼ãã¨ããã®ããWebãµã¤ããTodoMVCãã§ãã ToDoMVCã§ã¯ãAngularJSãBackbone.jsãEmber.jsãSpine.jsãªã©ä¸»è¦ãªMVCãã¬ã¼ã ã¯ã¼ã¯ãç¨ãã¦éçºããToDoã¢ããªãã¾ã¨ãã¦å ¬éãã¦ãã¾ãã éçºãããToDoã¢ããªã¯ã»ã¼åä¸ã®å¤è¦³ãæ©è½ãåãã¦ãã¾ããããã«ãããããããã®ã½ã¼ã¹ã³ã¼ããè¦ããã¨ã«ãã£ã¦ãåMVCãã¬ã¼ã ã¯ã¼ã¯ãã©ã®ãããªã³ã¼ãã£ã³ã°ã¹ã¿ã¤ã«ãç¨ãã¦ããã®ããã©ã®ãããªæ©è½ãæä¾ãã¦ããã®ããã¨ãã£ãéã
ãã®è¨äºã¯Trygve Reenskaugæ°ã®è¨äºãMODELS - VIEWS - CONTROLLERSãããæ°ã®è¨±å¯ãå¾ã¦ç¿»è¨³ãããã®ã§ããï¼åæå ¬éæ¥ï¼1979å¹´12æ10æ¥ï¼ ã¢ãã« ã¢ãã«ã¯ç¥èã®è¡¨è±¡ã§ããã¢ãã«ã¯ï¼ã¤ã®ãªãã¸ã§ã¯ãã§ããããããã¾ããï¼ãã¾ãé¢ç½ãã¯ããã¾ãããï¼ãè¤æ°ã®ãªãã¸ã§ã¯ããããªãæ§é ããããã¾ããã ã¢ãã«ã¨ãã®ä¸é¨ã«ã¯ä¸å¯¾ä¸ã®å¯¾å¿é¢ä¿ãããä¸æ¹ã§ãã¢ãã«ã¨ãã®ææè ã«ãã£ã¦ç¥è¦ãããä¸çã®è¡¨è±¡ã¨ã®éã«ãä¸å¯¾ä¸ã®å¯¾å¿é¢ä¿ãããã¾ãããããã£ã¦ãã¢ãã«ã®åãã¼ãã¯ãã®åé¡ã«ãããèå¥å¯è½ãªä¸é¨åã表象ãã¦ããã®ã§ãã ã¢ãã«ã®åãã¼ãã¯ãåä¸æ°´æºã®åé¡ãæ±ããã®ã§ãªããã°ãªãã¾ãããåé¡æåã®åãã¼ãï¼ä¾ãã°ãã«ã¬ã³ãã¼ã®äºå®ï¼ãå®è£ ã®è©³ç´°ï¼ä¾ãã°ããã©ã°ã©ãï¼ã¨ä¸ç·ã«ãããã¨ã¯æ··ä¹±ãæãã¾ãããè¯ããªãå½¢å¼ã¨èãããã¾ãã ãã¥ã¼ ãã¥ã¼ã¯ã¢ãã«ã®
1. ãªããã¯ã©ã¤ã¢ã³ã æ代ã®Webã¢ããªã±ã¼ã·ã§ã³ ã¢ã¼ããã¯ã㣠ãã¿ã¼ã³ã«ã¤ãã¦èãã Next Generation Web Application Architecture. 2012-02-21 Ruby Sapporo Night vol.14 ã¢ããã«ã¹ãã¢æå¹ æ¥æ¬Rubyã®ä¼ Rubyæå¹ ãã¾ã ããã SHIMADA Koji 2012å¹´2æ23æ¥æ¨ææ¥ 2. ...ã¯ãããªå½¼æ¹ã®æãããå ´æã§ãä½ããªãç¡èç¶æ ã®ç©ºé ãæ¼ã£ã¦ãããã§ãããã«éã¾ã£ãååã®å°ããªéåã«ãã ãã¯æ·±å»ãªå¤å·ãä¸ãããããã¦ãç°å¸¸ãªãã¨ã¦ããããã ããªããã¿ã¼ã³ã§ååãã¡ãé¢ããªãããã«çµã³ã¤ãã¦ã ã¾ã£ãããã®ãããªãã¿ã¼ã³ã¯èªåèªèº«ãã³ãã¼ããã¨ãã ãã¨ãæ©ããã¡ã«è¦ãã¦ãã¾ã(ããã¯ãã¿ã¼ã³ãéå¡ãªãã® ã§ãããã¨ã®ä¸é¢ã示ãã¦ãã) ããã¿ã¼ã³ãæ¼ããã¹ã¦ã® ææã§ãå¡ç¶
Conrad Irwinããã®ãMVC is dead, it's time to MOVE on.ãã訳ãã¦ã¿ã¾ããã MVC is dead, it's time to MOVE on. ãã®è¨³æãåæã®ã©ã¤ã»ã³ã¹ãå¼ãç¶ãã§CC-BY-3.0ã©ã¤ã»ã³ã¹ã§å©ç¨å¯è½ã¨ãã¾ãã 追è¨13:58 ãã§ã«è¨³ãã¦ãæ¹ããã¾ãããMVCã®æ代ã¯çµãã£ããMOVEã使ãå§ãã¾ãããã - ãµããã®ããã°ã©ãã³ã°å¥®éè¨ MVCã¯æ»ãã ãMOVEããã¨ãããã MVCã¯ãã°ãããã¢ã¤ãã¢ã ãã¢ãã«ãæã¡ãã¢ãã«ã¯å é¨ã«å°ãã®ç¶æ ããã¤ããã¥ã¼ã¯å é¨ã«å°ãã®UIããã¤ãããã¦ãã³ã³ããã¼ã©ã¯å é¨ã«å°ãã®ã»ã»ã» ä½ãæã¤ï¼ ç§ã¯ç¢ºãã«ãã®ãã¨ã«æ°ã¥ããæåã®äººç©ã§ã¯ãªããããã示ããããããªMVCã®åé¡ã®ããã«ãããªãã¯æå¾ã«ã¯éå°ãªã³ã¼ããã³ã³ããã¼ã©ã«è©°ãè¾¼ããã¨ã«ãªãããªããªããä»ã«ã©ãã«å ¥ãã¦ããã
MVC is a phenomenal idea. You have models, which are nice self-contained bits of state, views which are nice self-contained bits of UI, and controllers which are nice self-contained bits of ⦠What? Iâm certainly not the first person to notice this, but the problem with MVC as given is that you end up stuffing too much code into your controllers, because you donât know where else to put it. To fix
å æ¥ã®è¨äºã詳細åãã¦ãããã¨æããSpring Rooã¯ãã¨ã³ãã£ãã£å±¤-Web層ã¨ããã·ã³ãã«ãª2層æ§é ã«ãªã£ã¦ããã ã¬ã¤ã¤ãå¤å±¤åãã責åãæ確åãããã¨ã§ãã³ã¼ãã®å¯èªæ§ãå¤æ´æ§ã¯åä¸ããããªããªããã©ãã«ä½ãæ¸ãã¦ãããæ¢ãããããªãããDRYååãå¾¹åºãããã¨ãã§ããããã ããããã¬ã¤ã¤ãå¤å±¤ã«ãªãã»ã©ãã¢ã¼ããã¯ãã£ã¯è¤éã«ãªããçç£æ§ã¯è½ã¡ããä¸ä¾ã¨ãã¦ã¯ããã¡ã¤ã³ã¢ãã«ã®åã¬ã¤ã¤ã¸ã®å°å½±ãå¿ è¦ã«ãªããã¨ãæãããããæ°¸ç¶åã®ã¬ã¤ã¤ã§ã¯ãJPAãHibernateã®æ°¸ç¶åãªãã¸ã§ã¯ãããã¬ã¼ã³ãã¼ã·ã§ã³å±¤ã§ã¯ãå ¥åã表示ããããå½¢å¼(ãã¬ã¼ã³ãã¼ã·ã§ã³ã¢ãã«ã¨å¼ã°ãããã¨ããã)ã§ã®è¡¨ç¾ããµã¼ãã¹å±¤ã§ã¯ãã®2ã¤ã仲ä»ããããã®DTOãã¬ã¤ã¤ãè¡ãæ¥ããããã«ã¯ãæ¬æ¥çã«ã¯åãã¨ã³ãã£ãã£ã§ãããªããã表ç¾å½¢å¼ã®ç°ãªããããã®ãªãã¸ã§ã¯ãã®ãè©°ãæ¿ããããã¡ãã¡å¿ è¦ã«ãªã
UIãã¿ã¼ã³ è¿½è¨ ãã®è¨äºã®ä¸é¨ãå çã»ä¿®æ£ãããã®ããéçºè ãç¥ã£ã¦ããã¹ãã6ã¤ã®UIã¢ã¼ããã¯ãã£ã»ãã¿ã¼ã³ãã¨ãã¦@ITã«è»¢è¼ãã¦ãã¾ãã MVVMã追å ããä¸ã§ãã¢ããªã±ã¼ã·ã§ã³ã¢ãã«ã¨MVVMããã¬ã¼ã³ãã¼ã·ã§ã³ã¢ãã«ã®ããªã¨ã¼ã·ã§ã³ã¨ãã¦ä½ç½®ã¥ãã¾ããã MVPã®2ã¤ã®ã¹ã¿ã¤ã«ã¨ãã¦ãç£è¦ã³ã³ããã¼ã©ã¨ããã·ãã»ãã¥ã¼ã説æãã¾ããã ã¾ããã Martin Fowlerã®"GUI Architectures"ã訳ããã®ã§å ¬éãããã¨æã£ãã®ã ããFAQãã¼ã¸ã«ãEAA developmentã¨ãDSLãªããã¯åæ¥åºçãããã§ä¾å¤ã£ã¦ãã¨ã§ãã¨æ¸ãã¦ãããé¢åã ã£ãã®ã§ç¿»è¨³ã®å ¬éã¯ããã¦ããèªåã®ç解ãæ¸ããã¨ããã¹ã¿ã¤ã«ã«ãããã¨æãã Fowleræ°ã説æãã¦ããã®ã¯ ããã©ã¼ã ã¨ã³ã³ããã¼ã«ãããã¢ãã«ãã¥ã¼ã³ã³ããã¼ã©ã¼ (MVC)ããããã¬ã¼ã³ãã¼ã·ã§ã³ã¢ãã«ãã
jQueryããã¼ãªã¢ããªã±ã¼ã·ã§ã³ã®åé¡ç¹ã¨ãMVCã«ããæ§é åã®å¿ è¦æ§ jQueryã¯ããã©ã¦ã¶ä¸ã§åãJSã¢ããªã±ã¼ã·ã§ã³ã®éçºçç£æ§ãåçã«åä¸ããã¾ãããDOMæä½ã«ããåçãªãã¼ã¸æ¸ãæãå¦çãªã©ã¯ãã»ã¬ã¯ã¿ã使ã£ã¦ã¡ããã£ã¨ã³ã¼ããæ¸ãã ãã§ãã»ãã®æ°è¡ã§è¨è¿°ã§ãã¦ãã¾ãã¾ãã ãããããã®æ¹æ³ã®å»¶é·ã§ã大è¦æ¨¡ãªJSã¢ããªã±ã¼ã·ã§ã³ãæ§ç¯ãããã¨ã¯æããã¦ç¾å®çã§ãããããä¾ãã°ãGMailãããNew Twitterãç¨åº¦ã®è¦æ¨¡ã®JSã¢ããªã±ã¼ã·ã§ã³ãæ¸ããªããã°ãªããªãã¨ããããã©ãã§ãããï¼ å¤§è¦æ¨¡ãªJSã¢ããªã±ã¼ã·ã§ã³ãéçºããã«ã¯ããããã£ãææ³ã延é·ããã®ã§ã¯ãªããããæ´ç·´ããããã¶ã¤ã³ãã¿ã¼ã³ãå°å ¥ããå¿ è¦ãããã¾ãããã®ç®çã«ã´ã£ããã®ãã¶ã¤ã³ãã¿ã¼ã³ãããMVCããã¶ã¤ã³ãã¿ã¼ã³ã§ãã MVCãã¿ã¼ã³ã¯ãWebã®ä¸çã§ã¯ãµã¼ããµã¤ãããã°ã©ãã³ã°ã§åºãç¥ãã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}