2012-07-01ãã1ã¶æéã®è¨äºä¸è¦§
æè¿ãMeta Object Protocol (MOP) ãæ±ããªãããã¨ãæã£ã¦ã¾ãã使ããããæ çµã¿ããªãããªï¼ ã¨ãããã¾ããã以åï¼å»å¹´ã®æ£æï¼ããããã°ã©ãã³ã°è¨èªã®å¦çç³»ã¨ããã«ã«ãåã®é¨åéæ§é ãã¨ããè¨äºãæ¸ããã®ã§ããããã®ãé¨åéæ§é ãã使ããâ¦
éåã¨ä»¥åã«æ¸ããJavaScriptã®ã©ã¤ãã©ãªãããã¾ãã¦ãããã大ååå空éãæ±ãã¾ãã£ã¦ããããã§ããå½æã¯ããã§ãä¸é½åã¯ãªãã£ããã罪æªæ(?)ãããã¾ããã§ãããã§ãããä»è¦ãã¨ãããã¯ãªãããªã¼ãã¨ãããã«æªããã¨ã«ãå®éã«ååã®è¡çªãâ¦
Cã¯ãã«ã«ãéåã ã¨ãã¾ãããããã«ã«ãç©ã¨ãã®åä½ï¼çµå¯¾è±¡ï¼ããããããÃã1 ã§è¡¨ãã¾ããææ°ã¯ BAãã¾ã㯠[A, B] ã¨æ¸ããã¨ã«ãã¾ãã次ã®ãããªææ°æ³åã¯ãå½¢ã®ä¸ã§èªç¶ã«è¦ãã¾ãï¼ã¤ã³ã¼ã«ã¯ååã¨è§£éãã¾ãï¼ã A1 = A CAÃB = (CA)B ä¾ãã°â¦
è¨ç®ç§å¦ã«ããã¦ãé決å®æ§ååã¯ç¢é±ã«å½¹ã«ç«ã¡ã¾ããåã¯ããé決å®æ§ååã«è¶³ãåãã¦å¯ãããªããã¨æã£ã¦ããã®ã§ãããå®éã®ã¨ãããé決å®æ§ååã»æ§ãã©ã£ã¡ã®æ¹è§ã«ããã£ããããåãããªãã®ã§ãå¯ãåãã«æ°ãã¤ãã¦ãããããããªãã§ããfãâ¦
winplusããããè²ã ã¨ææ義ãªèå¯ããªãã£ã¦ãã¾ããhttp://d.hatena.ne.jp/winplus/20120716/1342407196 ï¼ ãã¢ããªã±ã¼ã·ã§ã³ç¶æ ã¨ã³ã¸ã³ã¨ãã¦ã®ãã¤ãã¼ã¡ãã£ã¢ãã¨ããã®ã¯ãã¢ããªã±ã¼ã·ã§ã³ç¶æ ã¯ãã¹ã¦ãªã½ã¼ã¹(â )ã¨ãã¦åå¨ãã¦ããããããªã³â¦
ãã¤ãã¼ã¡ãã£ã¢ï¼ãã¤ãã¼ãªã³ã¯ã«é¢ãã¦ãåã®ç¨èªæ³ãã¡ã³ã¿ã«ã¢ãã«ãããªãããºã¬ã¦ããã¿ããã ãã¨æã£ã¦ãä»æ¥ãããå°ãããã¤ãã¼ã¡ãã£ã¢ã»ã¢ããªã±ã¼ã·ã§ã³ã«ã¤ãã¦ãã¨ããè¨äºãæ¸ãã¦ãããã¤ãã¼ãªã³ã¯ã¯ä½ãç¹ãã®ããã¨ããã¤ãã¼ãªã³ã¯â¦
ããã¤ãã¼ã¡ãã£ã¢ã»ã¢ããªã±ã¼ã·ã§ã³ãã©ãæããã°ããã®ããã«ããã¦æ¬¡ã®ããã«æ¸ãã¾ããã 以ä¸ã®ãããªæ çµã¿ã使ã£ã¦ç¶æ é·ç§»ç³»ãæ§æãã¦ããã½ããã¦ã§ã¢ãããã¤ãã¼ã¡ãã£ã¢ã»ã¢ããªã±ã¼ã·ã§ã³ã¨å¼ã³ããã¨æãã¾ãããã®æ çµã¿ã«ã¯ãç´æ¥ã«ã¯HTâ¦
ããã¤ãã¼ãªã³ã¯ã¯ä½ãç¹ãã®ããã¨ããã¤ãã¼ãªã³ã¯è¨è¨ããµã¼ãã¼ãµã¤ãè¨è¨ã«å¾å±ãããã¹ãã§ã¯ãªããã§ã¯ãæ¢åã®ç¨èªã使ããããç¨åº¦ã¯ç¾å®ã£ã½ãä¾ãåºããããã¦èª¬æããã¾ããããã®ãããªã¹ã¿ã¤ã«ã®èª¬æã¯è«¸åã®å£ã§ããå ·ä½çã§åãããããæâ¦
å é±ã¯ãURLãããã¤ãã¼ãªã³ã¯ããã®è©±ããã¦ã¾ãããåã®ç¨èªæ³ãã©ããææ°ãããããã§èª¤è§£ãæãããã©ã¤ãããã¾ããè¨èã®èª¬æãä»ã足ããªãããå°ãæ½è±¡çã«ãããã¤ãã¼ã¡ãã£ã¢ã»ã¢ããªã±ã¼ã·ã§ã³ããã©ãæããã°ããã®ãï¼ ããã«ã¤ãã¦è¿°ã¹ãâ¦
[追è¨] ãã®è¨äºå ã§ãæ¢åã®ç¨èªã®æå³ããºã©ã·ããæ¡å¤§è§£éãã¦è¨è¿°ããã¨ãããããã¾ãããæ¢åã®è§£éã«å¼·ãæããªããã¨ããã®ãã²ã¨ã¤ã®ï¼åãæ¨å¥¨ããï¼æ¹çã§ããããããå°ãããã¤ãã¼ã¡ãã£ã¢ã»ã¢ããªã±ã¼ã·ã§ã³ã«ã¤ãã¦ããä¸ç·ã«èªãã§ãã ããâ¦
[追è¨] ãã®è¨äºå ã§ãæ¢åã®ç¨èªã®æå³ããºã©ã·ããæ¡å¤§è§£éãã¦è¨è¿°ããã¨ãããããã¾ãããæ¢åã®è§£éã«å¼·ãæããªããã¨ããã®ãã²ã¨ã¤ã®ï¼åãæ¨å¥¨ããï¼æ¹çã§ããããããå°ãããã¤ãã¼ã¡ãã£ã¢ã»ã¢ããªã±ã¼ã·ã§ã³ã«ã¤ãã¦ããä¸ç·ã«èªãã§ãã ããâ¦
ãã¹ã¯ã¼ããå¿ããã¨ãã®å¯¾å¦ã®ããã ã¨æããã©ããç§å¯ã®è³ªåãã¨ãã®çããå ¥åãã¦ãã ãããã¨ãããã©ã¼ã ããã£ãããåãã¦é£¼ã£ããããã®ååã¯ï¼ãã¨ãã質åãããããã ã¨ããããé¸ãã§çããå ¥åã ç§å¯ã®è³ªåã®çãã¯ãå ¨è§ã§ 3 æå以ä¸ã¾â¦
æ¨æ¥ãURLã«é¢ããè°è« -- ãªãåã¯ã¯ã¨ãªãã©ã¡ã¼ã¿ãæè·ãã¨ãã«æ¨å¥¨ããã®ããã¨ããè¨äºãæ¸ãã¾ãããããã§åºããç°¡åãªäºä¾ã¯ã足ãç®ãè¦æ±ããã®ã«ã/calc/add/2/3 ã¿ãããªURLã使ãã®ã¯ãã㦠/calc/add?x=2&y=3 ã¨ã /calc/?op=add&arg1=2&arg2â¦
URLã«é¢ããè°è« -- ãªãåã¯ã¯ã¨ãªãã©ã¡ã¼ã¿ãæè·ãã¨ãã«æ¨å¥¨ããã®ã
ä¸ææï¼2010å¹´ã®1æé ï¼ãURLã®è°è«ããã¦ãã¦ãåã¯æ¡å¼µåãå«ãURLãã¯ã¨ãªãã©ã¡ã¼ã¿ãæè·ãã¦ãã¾ããã ãããã決çãHTTPã¡ã½ãããURLãããã¦æ¨æºåãããåè© RESTfulãªWebãµã¤ãã¨æ¡å¼µåãå«ãURLã«ã¤ã㦠æè¿ãã¾ãURLã®åé¡ãèãã¦ã¿ãã®ã§â¦