ããã°ãã¼ã¿ã¨ããããã話ã§ã¯ãªãã§ãã
ããã³ã«ã¦ã³ã
â¦â¦ã£ã¦è¨èãããã¯ããªãã ãã©ãæ¤ç´¢ãã¦ãåºã¦ããªãã誰ã«èãããã ã£ãã ãé¶ã¯ä¸æ©æ©ãã¨å¿ãããã£ã¦ãã¨ããã«ç±æ¥ããã®ã ãã©ãããèªä½æ¥æ¬ã®ãã¨ããã£ã½ãããä½ãã®åéãâ¦â¦ï¼
ã¨ãããã3ãè¶ ããã¨æ°ããããªãã®ã§ãåã ã¨ãã¦æ±ãä¸éã2ã¨ãããã¿ãããªã
ä»ã«ä¼¼ãè¨èã ã¨ãä¸æ¯å¶ãã¨ã使ãã¾ããå ±éåãæ¤è¨ããã®ã¯ä¸åº¦åºã¦ãã¦ããã£ã¦è¨ããã©ã¡ããã¨è¨ãã¨æ©ãããå ±éåãæ¼ãçããè¨èã ãã©ãä¸åº¦åºã¦ãããã¢ã¦ããªãã§å ±éåããªãã¨ãã¼ã¨ã ãã¼ã¹ãã©ã¤ã¯ã¾ã§ã¯å¼·æ¯ãã¦ãããã¨è¨ãå±é¢ãããããã¼ã¹ãã©ã¤ã¯ã«è¿½ãè¾¼ã¾ããåã«ã£ã¦ã®ãããã®ã§ãã©ããç¶æ³æ¬¡ç¬¬ã§ä½¿ãåããªãã ãã©ã
åç¨åº¦ã®æ°ãæ±ããã®ã§DRYã¨ããããã¾ããDRYã¯äºåº¦åºã¦ããæç¹ã§ç¹°ãè¿ãã§ãããYourselfãã©ããã®èå¥ãçµæ§é£ããã®ã§ãã³ã¼ãã®ä¸ã£é¢ã ãã§èªããã®ã§ã¯ãªãã¨æã£ããã
éã¨ã®åã£çµã¿åã
ã·ã¹ãã éçºã¯éã¨åã£çµã¿åãã§ãã
å¤ãã®å¦ç対象ã«åæ§ã®å¦çãè¡ã£ã¦æå¾ ããçµæãåºããã®ãéçºããã®ãã·ã¹ãã éçºã ã¨è¨ã£ã¦ããã¨æãã åãæ¡ä»¶ã ã£ããåãçµæãåºãã®ãã·ã¹ãã ã¯å¾æãªããã ãããã使ãããæèæããä»ããã®è¾ºã®ã¯ãã éãæèã®ã·ã¹ãã ããããã©ãããã¯ä¸æ¦æ¨ªã«ç½®ãã¦ããã¦ã
éã«å¯¾ãã¦ä»çµã¿ã§å¯¾æããã®ãã·ã¹ãã éçºã§ãããããã¯åæã åæãªãã§ããããã¨èªèº«ã®ä»äºã«ãªã£ãæã«ããªããéã®ã¾ã¾å¯¾æãããã¨ããã®ãããè¦ã¾ãã
ãªãã§æåã«ããã³ã«ã¦ã³ãã«è§¦ãããã¨è¨ãã¨ããéãå¤ããã®åºæºã§ãã ãªãã10ã¨ã20ãããã¾ã§ææ ¢ãã¦ãã¾ã ï¼æä½æ¥ã§ï¼ãªãã¨ããªããã£ã¦è¨ãã®ã ããè¨ãä¸çããããã ãã©ãã·ã¹ãã éçºã®æèã§ã¯ããã§ã¯ãªãã¨æãã®ã§ãã éãå¤ãã£ã¦ã®ã¯äºæ¡ã¨ãä¸æ¡ã¨ãã§ãªãããã¸ã«ã«ãã³ãã¼ï¼7±2ï¼ã§ããªããããã³ã«ã¦ã³ãã§æ°ããããªããªã£ãããããã¤ã¾ã3以ä¸ãæãããã§ãã éãå¤ããã®ã§æº¢ãã¦ã¾ããã
éã«éã§å¯¾æããã®ãé¿ãã
éã®ã¾ã¾å¯¾æããã£ã¦è¡¨ç¾ã¯ãéãå¤ãã®ãä½æ¥éã«çµã³ã¤ãã¦ãã¾ããã¨ã§ãã ä½ãã¿ã¹ã¯ãããæã«ãæ°ãå¤ãã®ã§æéãããããã¨è¨ãã®ãå ¸åçãããããããæ°ãå¤ããã¨ãæéãããããã¯ç´æ¥ã¯çµã³ã¤ããªããï¼ã£ã¦æããã ãã©ãæ°ãå¤ããã¨ã¨æéãããããã¨ãçµã³ã¤ãããã¨ã«å½äººãå¨å²ãéåæãç¡ãããã§ã
ç°¡åãªä¾ã ã¨ãã³ã¼ãã®åºç¾ç®æãgrepãã¦æ¸ãç´ããããªãã®ããããä½ç®æãããã£ããã¨ããã¨æãã¾ãã1ç®æãã¤ä¸å¯§ã«ããã®ãéãéã®ã¾ã¾æ±ã£ã¦ããã®ã§ãéã§å¯¾æããã«ã¯ä»çµã¿ã§å¯¾æããã
ä¾ãã°äºåº¦ã¨åãä½æ¥ãããã«æ¸ãããã«ãããæ§é åã¨è¨ã£ã¦ãããããåä¸è²¬ä»»ååã ã¨ãè¨ã£ã¦ãããããªãã¡ã¯ã¿ãªã³ã°ã§ã®éè¤ã®æé¤ã ã¨è¨ã£ã¦ããããå¼ã³æ¹ã¯ããã§ã¯ãªãã§ãããã
ä¾ãã°æ©æ¢°çã«ç½®æããã使ããã¼ã«ã¯ãªãã§ããããåã«ã¨ãã£ã¿ã®ç½®æã§ããä½ãããã®ã³ãã³ãã§ããã¡ãã£ã¨ããã¹ã¯ãªãããæ¸ãã§ãã
åè ã¯å¦ç対象èªä½ãæ¸ããã¢ããã¼ããå¾è ã¯ä½æ¥ãæ¸ããã¢ããã¼ãããªãä½ãããã®æ½è±¡æ¦å¿µãæã¡è¾¼ãã§éãæ¸ããããã§ãã
ããè¨ãã®ã¯ããããã¾ããã¨æãã®ã ããã©ãæ¡å¤ããã§ããªãã¨è¨ãã®ãç§ã®è¦³æ¸¬ç¯å²ãé¡åãããããªããã©ã å ã«æãããããªç½®æã¯ãã£ã¦ãã¨ãã¦ããå°ãã§ãå¤ãããã¨ã¨ããã«éï¼ä½æ¥éãå´åæéï¼ã§å¯¾æããã¡ã«è¦ãããã§ãããã
å¦ç対象ã®éãå¤ããã®ã«ãæéããããä½æ¥éã§å¯¾æããæ¹æ³ã¯åºæ¬çã«ç²¾åº¦ãä½ãããã®æ¤è¨¼ãéã§ãã£ã¦ãã¾ããã¡ã§ãå¾ã ã«ãã¦æ¼ãããã®ã§ãã ã©ããã®ã¿ã¤ãã³ã°ã§éã®ã¾ã¾æ±ãã®ããããªãã¨å¤§å¤ãªãã¨ã«ãªãã¾ãã大å¤ã«ãªã£ã¦ãç´æãªã©ã®æéå¶ç´ã«æ¼ãã¤ã¶ããã¦ãå¾å·¥ç¨ãçç¥ããããããéã®ã¾ã¾æ±ã£ã¦ããå½ç¶ã§ãããâ¦â¦
ã·ã¹ãã éçºããã£ã¦ããã ãããèªåãã¡ã®æ¥å¸¸æ¥åã対象ã«ãã¦ããã¨æããã§ãã å»è ã®ä¸é¤çãç´ºå±ã®ç½è¢´ã«ä¸¦ã¶ãã¨ãããã§ããåã«ï¼ãããã£ãããã¦â¦â¦ï¼ãªãã¨ãããããã©ãããããããã ããã
èªåãã¡ã®æ¥åã®å¹çåãèããã®ã¯ããç·´ç¿ã«ãªãã¾ããè²»ç¨å¯¾å¹æã¨ãã測ããããã§ãããä½ããå®è·µã§ãããä½ãããã®ãé¡ãä¸ããããä¾é¡ããããããã£ã½ã©èº«ã«ãªãã ä¾é¡ã¨ãã ã¨ããããªã£ããæ£è§£ãã¿ãããªã®ããã£ã¦ããããããããã§ããã誰ãæ£è§£ãªãã¦ä¸ãã¦ãããªããã¨ãçæ¥ã«ãã¦ããã ããä¾é¡ã¯ã»ã©ã»ã©ã§ããã¨æããã§ããå ¨ããããªãã¨ã¯è¨ããªãã
ã¦ãã¨ã§ããããã£ã¦ãªããªããä»ããèªåãéã«æãã§ããã®ãå¥ã®æ¹æ³ã§å¯¾å¦ãã¦ã¿ããããã£ã¨ãã¾ããããªãã ãã¾ãããã¯ãããªãããã©ãFail CheapãFail Oftenãçµé¨ã§ãããã失æã糧ã«ããç·´ç¿ã«ããªãã¯ãã ä»äºã§ãèªèº«ã®è£éï¼æéå¶ç´ãªã©ï¼ããããªãã«è¦ã¦ããã°å¥ã«é£ãããã¨ãããªãã
ããä»çµã¿åãããæãããã¨ãã¯å¥ã®è©±ã§ãããã¯ã使ã£ãããã¡ã¨ããããè¨ãã®ã¯å¥ã®ã¢ããã¼ããå¿ è¦ã§ããããã«è¨ãã«ã¯ä½ç½ãçãããã
åèæç®
ãã®è¾ºã«ãã©ã¼ã«ã¹ããæ¬ã¨ãã¦æãããªãããããã¯ãã£ãã»ããã°ã©ãããªã
- ä½è :Neal Ford
- åºç社/ã¡ã¼ã«ã¼: ãªã©ã¤ãªã¼ã¸ã£ãã³
- çºå£²æ¥: 2009/04/27
- ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼
Amazonã ã¨ä¸å¤ãããªãã§ãããæ°å㯠O'Reillyã®ã¹ã㢠ãªãè²·ããã£ã½ãã
ä»çµã¿ã§éããã°ãã®ã«éè¦ãªã®ãã½ããã¦ã§ã¢ã®æ¢åãæå¹ã«æ´»ç¨ãããUNIXã¨ããèãæ¹ããã§ãã
UNIXã¨ããèãæ¹âãã®è¨è¨ææ³ã¨å²å¦
- ä½è :Mike Gancarz
- åºç社/ã¡ã¼ã«ã¼: ãªã¼ã 社
- çºå£²æ¥: 2001/02/01
- ã¡ãã£ã¢: åè¡æ¬
2020å¹´ã«ãªããã¨è¨ãã®ã«10å¹´åã¨20å¹´åã®æ¬ãç´¹ä»ããã®ããªãã¨è¨ãã¹ããâ¦â¦ä»æã ã¨å¥ã®æ¬ãã£ãããããã§ãããï¼ã§ãå¥ã«æ¸ãã¦ããã¨ã£ã¦ããã»ã©é³è åãã¦ãªãã¨æããã§ãããããããã«å ·ä½çãªãã¼ã«ã¨ãã¯ããã ãã©ã
è¨ããããã¨
- ãæ°ãå¤ããã¨ãæéãããããã¯ç´æ¥çµã³ã¤ããªã
- 2ãè¶ ããããå¤ããã¨è¨ãã
- æ°ãå¤ããã®ã«æéãããã人éã®ä½æ¥ã¯ç²¾åº¦ãè¦è¾¼ããªã
- ä»çµã¿ã§å¯¾æãããã¨ããçãã¤ãã
- ãã£ã¦ããªãã¨ã§ããããã«ãªããªã
- ãã£ã¨æã£ã¦ã以ä¸ã«ä»çµã¿ã§å¯¾æã§ãããã®ã¯å¤ã
ç§ã®ã«ã¦ã³ã
ããã³ã«ã¦ã³ãã¨ãè¨ã£ã¨ããªãããç§ã®ã«ã¦ã³ãã¯ãããããã¡ããã£ã±ããã ã£ãããã¾ãã äºã¤ä»¥ä¸ã¯éåã¨ãã¦æ±ããã©ããé¶ããè³å ã¡ã¢ãªã¯å°ãªãããã§ãã