ã ãããç§ã¯å瀺ãåããŸããïŒãããã³ãŒãã§æ©èœããã®ãªãããªãããã³ããã¯ãªé¢ä¿ã§æ©èœããªãã®ã§ããïŒ ãã®ãããããã°ã©ããŒãšæ人ãšã®é¢ä¿ãæ¯æŽããæ°ããé»åæžç±ãã芧ãã ããïŒå·Šã®å³ãã芧ãã ããïŒã
ç§ã®é©æ°çãªæ¬ã¯ãããŒãããŒã®æ¬ é¥ã®æ倧æ°ãç¹å®ããããã®å®èšŒæžã¿ã®ãã¯ããã¯ãæããŸãã æ¬ã¯ ã次ã®é åãã«ããŒããŠããŸãã ã
â¢å ±æãšç解ã䌎ãåé¡ã®è°è«ã
â¢æ¬ é¥ãä¿®æ£ããããã®ããŒãããŒã®æ¯æŽã
ã³ãŒãã¬ãã¥ãŒã«é¢ããæç®ãèªãã§ç解ã§ããéããé¢ä¿ã®ãããã®éšåã¯éåžžã«æçœã§ãããããè°è«ã¯ãŸã£ãããããŸãã ã
ãã®ãããªæ¬ã¯ã©ãã§ããïŒ ããªãã¯æ¬åœã«å¥œãã§ã¯ãªããšæããŸãã
ã§ã¯ããªããã®ããã«ã³ãŒãã¬ãã¥ãŒãè¡ãã®ã§ããïŒ
ç§ãèªãã èšäºã¯ããã¹ãŠã®éçºè ãããããã§ããæªæ¥ããã®ãã®ã§ãããšä»®å®ããããšãã§ããŸãã ãã®äžçã§ã¯ãããªãã®ååã¯ã³ãŒãã®äžæ³šæãªæ¹å€ãæè¿ããŸãããã®ãããªæ å ±ã®åŠçã¯å·ããå¿ãæž©ããããã§ãã
ããããã§ã¯ãªã人ãšäœæ¥ããçŸåšã®ã³ãŒãã¬ãã¥ãŒãæ¹åããããšãã倧èãªåæãç«ãŠãŸãã ååãšã®è¯å¥œãªé¢ä¿ãäž»ãªç®æšã§ããããšã©ãŒä¿®æ£ãé«éåããããã®å€æ°ïŒæ¬ é¥ãããã®ã³ã¹ããã©ã¡ãŒã¿ãŒãæå°åããïŒã ãã§ãªããããã«å€§èãªä»®å®ã§ãã ãããã®ç¶æ³ã«ç §ãããŠãã¬ãã¥ãŒæ¹æ³ã¯ã©ã®ããã«å€ãããŸããïŒ
ãã®èšäºã§ã¯ãã³ãŒãã¬ãã¥ãŒãæè¡çãªã ãã§ãªãã瀟äŒçãªããã»ã¹ã§ããããšã瀺åããææ³ã«ã€ããŠèª¬æããŸãã
ã³ãŒãã¬ãã¥ãŒãšã¯äœã§ããïŒ
ãã³ãŒãã¬ãã¥ãŒããšããçšèªã¯ãéçºè ã®èåŸããã³ãŒããèªãããšãã20人ã®äŒè°ãŸã§ãããŸããŸãªã¢ã¯ã·ã§ã³ãæå³ããããã§ã³ãŒãã1è¡ãã€è§£æããŸãã ããã§ã¯ãæ£åŒãªææžåãããæé ã«èšåããŠããŸãããã³ãŒãæ€æ»ã®ããã®äžé£ã®äŒè°ã«è² æ ã¯ããããŸããã
ã¬ãã¥ãŒã³ãŒãã«ã¯ãã³ãŒããäœæããŠã¬ãã¥ãŒã«éä¿¡ããäœæè ãšãã³ãŒããåæããŠãããžã§ã¯ãã®äžè¬çãªã³ãŒãããŒã¹ã«è¿œå ããæºåãã§ãããšãã«æ±ºå®ãè¡ãã¬ãã¥ãŒæ åœè ãåå ããŸãã äœäººãã®ã¬ãã¥ãŒã¢ãããã»ã¹ã«åå ãããããããŸããããç°¡åã«ããããã«ãããã1人ã§ãããšä»®å®ããŸãã
ã¬ãã¥ãŒãéå§ããåã«ãäœæè ã¯å€æŽã®ãªã¹ããäœæããå¿ èŠããããŸããããã§ãå ±éã®ã³ãŒãããŒã¹ã«å ããããã¹ãŠã®å€æŽããªã¹ãããŸãã
ã¬ãã¥ãŒã¯ãäœæè ãã¬ãã¥ãŒæ åœè ã«å€æŽã®ãªã¹ããéä¿¡ãããšéå§ãããŸãã ããã¯æ°ã©ãŠã³ãã§èµ·ãããŸãã åã©ãŠã³ãã¯ãäœæè ãšã¬ãã¥ã¢ãŒã®éã®1åã®å®å šãªåŸåŸ©ã§ããäœæè ã¯å€æŽãéä¿¡ããã¬ãã¥ã¢ãŒã¯ãããã®å€æŽã«å¯Ÿããå¿çãè¿ããŸãã åã³ãŒãã¬ãã¥ãŒã¯ã1ã€ä»¥äžã®ã©ãŠã³ãã§æ§æãããŠããŸãã
ã¬ãã¥ãŒã¢ãå€æŽãæ¿èªãããšãã¬ãã¥ãŒã¯çµäºããŸãã ããã«ã¯éåžžãLGTMã¡ãã»ãŒãžã®éä¿¡ã䌎ããŸããããã¯ããç§ã«ã¯è¯ãããã§ãããšããççž®ãã¬ãŒãºã§ãã
ãªããããªã«é£ããã®ã§ããïŒ
ããã°ã©ããŒãé©ããšæãå€æŽã®ãªã¹ããéä¿¡ãã圌ãæ£ãããªãçç±ã®è©³çŽ°ãªãªã¹ãã§åœŒã«çããå Žåããã®ãããªã³ãã¥ãã±ãŒã·ã§ã³ã«ã¯ç¹å®ã®ç¹çŽ°ããå¿ èŠã§ãã
ãããã°ã©ããéåžžã«é åã®ãªã人ã ã§ããããããããç§ãITãèŠéããªãçç±ã®1ã€ã§ããããšãã°ãèªç©ºæ©ã§ã¯ãèœåãé倧è©äŸ¡ããŠãã人ã ã¯ãã§ã«æ»ãã§ããŸããã
Founders at Workã® ArsDigitaã®å ±åèšç«è ã§ããPhilip Greenspanæ°ã
èè ã¯ãèªåãç¡èœãªããã°ã©ããŒã§ãããšããæå³ã§èªåã®ã³ãŒããæ¹å€ããããšã¯éåžžã«ç°¡åã§ãã ã³ãŒãã¬ãã¥ãŒãšã¯ãç¥èãå ±æãããšã³ãžãã¢ãªã³ã°ã«é¢ããææ矩ãªæ±ºå®ãäžãèœåã§ãã ããããããã¯èè ãè°è«ãèªåã«å¯Ÿããå人çãªæ»æãšèŠãªãå Žåã¯äžå¯èœã§ãã
ããããªããšååãªå°é£ã¯ãªããã®ããã«ãããã§ããªãã¯èªåã®èããæžé¢ã§è¡šçŸããå¿ èŠããããããã¯ããã«èª€è§£ã®ãªã¹ã¯ãé«ããŸãã äœè ã¯ããªãã®å£°ã®èª¿åãèããªãããããã£ãŒã©ã³ã²ãŒãžãç¥èŠã§ããªãã®ã§ãèšèé£ãã泚ææ·±ãéžæããããšã¯ãšãŠãéèŠã§ãã å®åçãªç«å Žã«ããèè ã«ãšã£ãŠãããã¡ã€ã«èšè¿°åãéããã®ãå¿ããããªã©ã®ç¡å®³ãªã¡ã¢ã¯ããããã§ãã¡ã€ã«èšè¿°åãéããã®ãå¿ãããšã¯æããªãïŒã ããªãã¯ãã®ãããªã°ãã§ãïŒã
æè¡è
- ã³ã³ãã¥ãŒã¿ãŒã«éå±ãªä»äºãäžãã
- ã¹ã¿ã€ã«ã¬ã€ãã«ã¹ã¿ã€ã«åŒæ°ãå ¥åããŸã
- ããã«ã¬ãã¥ãŒãéå§
- é«ã¬ãã«ã§éå§ããäžã«è¡ã
- ã³ãŒããµã³ãã«ãgeneãã¿ãªã䜿çšãã
- 決ããŠèšããªã
- ããŒã ã§ã¯ãªããªã¯ãšã¹ããšããŠã¬ãã¥ãŒãè¡ã
- æèŠã§ã¯ãªãååã§æ£åœåãã
ã³ã³ãã¥ãŒã¿ãŒã«éå±ãªä»äºãäžãã
ããŒãã£ã³ã°ãã¡ãŒã«ã«åžžã«æ°ãåãããŠããå Žåãææ ®æ·±ãã³ãŒãåæã®æéãäœãã®ã¯å°é£ã§ãã 粟ç¥åã¯æéãããããã«å°ããã§ãã ååã®ã³ãŒããèªãããšã¯èªç¥çã«å°é£ãªäœæ¥ã§ãããé«åºŠãªéäžåãå¿ èŠã§ãã ç¹ã«ããã©ãŒãã³ã¹ãè¯ãå Žåã¯ãã³ã³ãã¥ãŒã¿ãŒãå®è¡ã§ããã¿ã¹ã¯ã«ãããã®ãªãœãŒã¹ã浪費ããªãã§ãã ããã
æãããªäŸã¯ãã¹ããŒã¹ã®åäžãã«ãããšã©ãŒã§ãã èªåãã©ãŒãããããŒã«ã䜿çšããå Žåãšæ¯èŒããŠã人ããã®ãã®ãããªãšã©ãŒãç¹å®ããã®ã«ã©ãã ãã®åŽåããããããæ¯èŒããŠãã ããã
æåç·šéã«å¿ èŠãªãã® | èªåãã©ãŒãããããŒã«ã䜿çšããå Žåã«å¿ èŠãªãã® |
---|---|
| ã
ã ã ã ã ã ã äœããªãïŒ |
äœæè ã¯ã[ä¿å]ãã¿ã³ãã¯ãªãã¯ãããã³ã«ã¹ããŒã¹ãèªåçã«ãã©ãŒãããããã³ãŒããšãã£ã¿ãŒã䜿çšãããããå³åŽã¯ç©ºã§ãã ãŸããææªã®éšåã¯ãäœæè ãæ€èšŒã®ããã«ã³ãŒããéä¿¡ãããšãç¶ç¶ççµ±åã·ã¹ãã ã誀ã£ãã¹ããŒã¹ãå ±åããããšã§ãã äœæè ã¯ãã¬ãã¥ãŒæ åœè ãæ°ä»ãåã«åé¡ãä¿®æ£ããŸãã
èªååã§ããä»ã®æ©æ¢°çã¢ã¯ã·ã§ã³ãèŠãŠãã ãããæãäžè¬çãªãã®ã¯æ¬¡ã®ãšããã§ãã
ææŠãã | èªååãœãªã¥ãŒã·ã§ã³ |
---|---|
ãã«ãã確èªãã | TravisãCircleCIãªã©ã®ç¶ç¶ççµ±åã·ã¹ãã ã |
èªåãã¹ãã確èªãã | TravisãCircleCIãªã©ã®ç¶ç¶ççµ±åã·ã¹ãã ã |
ã€ã³ãã³ããšã¹ããŒã¹ãäŒæ¥ã¹ã¿ã€ã«ã§ããããšã確èªããŸãã | ClangFormat ïŒC / C ++ã®å ŽåïŒãŸãã¯gofmt ïŒGoã®å ŽåïŒãªã©ã®ã³ãŒããã©ãŒãããããŒã«ã |
æªäœ¿çšã¢ãžã¥ãŒã«ãŸãã¯æªäœ¿çšå€æ°ã®èå¥ | pyflakes ïŒPythonã®linter ïŒãJSLint ïŒJavaScriptã®linter ïŒãªã©ã®éçã³ãŒãã¢ãã©ã€ã¶ãŒã |
ãªãŒãã¡ãŒã·ã§ã³ã¯ãã¬ãã¥ã¢ãŒãšããŠããã䟡å€ã®ããè²¢ç®ãããã®ã«åœ¹ç«ã¡ãŸãã ã¢ãžã¥ãŒã«ã®ã€ã³ããŒãé åºããœãŒã¹ãã¡ã€ã«ã®åœåèŠåãªã©ã®åé¡ã®ã¯ã©ã¹å šäœãç¡èŠãããšãæ©èœãšã©ãŒãã³ãŒãã®èªã¿ãããã®äœäžãªã©ãããèå³æ·±ãããšã«éäžã§ããŸãã
èªååã¯èè ã«ãšã£ãŠæçã§ãã ããã«ãããæ°æéã§ã¯ãªãæ°ç§ã§äžæ³šæãªãšã©ãŒãæ€åºã§ããŸãã äœæè ã®é¢é£ã³ã³ããã¹ãã¯ãŸã äœæ¥ã¡ã¢ãªã«ãããããã€ã³ã¹ã¿ã³ããã£ãŒãããã¯ã«ããåŠç¿ãé«éåããããšã©ãŒä¿®æ£ãç°¡çŽ åãããŸãã ããã«ãäœè ã¯ããªãããã§ã¯ãªããã³ã³ãã¥ãŒã¿ããã®æããªãšã©ãŒã«é¢ããã¡ãã»ãŒãžãã¯ããã«ç°¡åã«ç¥èŠããŸãã
ã³ãŒãã¬ãã¥ãŒã¯ãŒã¯ãããŒã§ãã®çš®ã®èªåãã§ãã¯ãå®è£ ããããã«ååããå¿ èŠããããŸãïŒããšãã°ãGitã§ã®ã³ãããåã®ããã¯ãGitHubã§ã®webhook ïŒã ã¬ãã¥ãŒããã»ã¹ã§äœæè ããã®ãããªãã§ãã¯ãæåã§å®è¡ããå¿ èŠãããå Žåãã»ãšãã©ã®å©ç¹ã倱ãããŸãã äœæè ã¯æ€èšŒãå¿ããããšãé¿ããããªããããèªåæ€èšŒã§ä¿®æ£ã§ããåçŽãªãšã©ãŒã«ç ©ããããå¿ èŠããããŸãã
ã¹ã¿ã€ã«ã¬ã€ãã«ã¹ã¿ã€ã«åŒæ°ãå ¥åããŸã
ã¹ã¿ã€ã«ãã£ã¹ã«ãã·ã§ã³ã¯ãã³ãŒãã¬ãã¥ãŒããã»ã¹ã®æéã®ç¡é§ã§ãã ãã¡ãããçµ±äžãããã¹ã¿ã€ã«ãéèŠã§ãããã³ãŒããè°è«ããããšã¯ããã¬ãŒã¹ãã©ãã«çœ®ãããè°è«ããã®ã«ãµããããæã§ã¯ãããŸããã ããã»ã¹å šäœããè«äºãšã¹ã¿ã€ã«ãæé€ããæåã®æ¹æ³ã¯ãã¹ã¿ã€ã«ã¬ã€ããå ¥æããããšã§ãã
åªããã¹ã¿ã€ã«ã¬ã€ãã¯ãåœåèŠåãã€ã³ãã³ãèŠåãªã©ã®å€éšã¹ã¿ã€ãªã³ã°èŠçŽ ã ãã§ãªããç¹å®ã®ããã°ã©ãã³ã°èšèªã®æ©èœã®äœ¿çšæ¹æ³ãå®çŸ©ããŸãã ããšãã°ãJavaScriptãšPerlã«ã¯æ©èœãæºèŒãããŠããŸã-åãããžãã¯ãå®è£ ããããã®å€ãã®ãªãã·ã§ã³ããããŸãã ã¹ã¿ã€ã«ã¬ã€ãã§ã¯1ã€ã®æ£ããããã°ã©ãã³ã°æ¹æ³ãå®çŸ©ãããŠãããããããŒã ã®ååã1ã€ã®èšèªé¢æ°ã»ããã䜿çšããæ®ãã®ååãå®å šã«ç°ãªãé¢æ°ã»ããã䜿çšããããšã¯ãªããªããŸãã
ã¹ã¿ã€ã«ã¬ã€ããããã°ããã«ããã¡ã€ã«ã«ååãä»ããæ¹ãè¯ããšããè«äºã§ãèè ãšã¡ãã»ãŒãžã亀æããããã«ã¬ãã¥ãŒãµã€ã¯ã«ãè²»ããå¿ èŠããªããªããŸãã ã¬ã€ãã«åŸã£ãŠãã ããã ããã¥ã¢ã«ã«ç¹å®ã®åé¡ã«é¢ããæ瀺ãå«ãŸããŠããªãå Žåãéåžžã¯è°è«ããã¹ãã§ã¯ãããŸããã ããã¥ã¢ã«ã«èšèŒãããŠããªããè°è«ã«å€ããã¹ã¿ã€ã«ã«ã€ããŠè³ªåãããå Žåã¯ãããŒã ãšäžç·ã«è§£æ±ºããŠãã ããã 次ã«ããã®è°è«ã«äºåºŠãšæ»ããªãããã«ãã¹ã¿ã€ã«ã¬ã€ãã«æ±ºå®ãæžããŸãã
ãªãã·ã§ã³1ïŒæ¢åã®ã¹ã¿ã€ã«ã¬ã€ãã®èª¿æŽ
ã€ã³ã¿ãŒããããæ€çŽ¢ãããšãå ¬éãããŠããã¹ã¿ã€ã«ã¬ã€ããèŠã€ããŠãèªåã§äœ¿çšããããã«åããããšãã§ããŸãã æãããç¥ãããŠããã®ã¯Googleã¹ã¿ã€ã«ã¬ã€ãã§ãããããããæ©èœããªãå Žåã¯ä»ã®ã¬ã€ããèŠã€ããããšãã§ããŸãã æ¢åã®ããã¥ã¡ã³ããé©åãããããšã«ãããã¹ã¿ã€ã«ã¬ã€ããäœæããããšã§ããã®ãããªããã¥ã¡ã³ããæåããäœæããæéãç¡é§ã«ããããšãªãããã¹ãŠã®å©ç¹ãåŸãããšãã§ããŸãã
æ¬ ç¹ã¯ããã¹ãŠã®çµç¹ããããã®ã«ãŒã«ãå éšã®ããŒãºã«é©åãããããšã§ãã ããšãã°ãGoogleã®ããã¥ã¢ã«ã¯ãæ°ããèšèªæ©èœã®äœ¿çšã«é¢ããŠã¯éåžžã«ä¿å®çã§ã ããªããªããããŒã ã«ãŒã¿ãŒããææ°ã®iPhoneãŸã§ããã¹ãŠã«æ©èœããã¯ãã®å·šå€§ãªã³ãŒãããŒã¹ãããããã§ãã åäžã®è£œåã§4人ã®ã¹ã¿ãŒãã¢ãããæ±ããŠããå Žåãææ°ã®æ©èœãèšèªæ¡åŒµæ©èœã䜿çšããéã«ããç©æ¥µçãªæŠç¥ãéžæããã®ãçã«ããªã£ãŠããŸãã
ãªãã·ã§ã³2ïŒç¬èªã®ã¹ã¿ã€ã«ã¬ã€ããåŸã ã«å®æããã
æ¢åã®ããã¥ã¡ã³ããå€æŽããããªãå Žåã¯ãç¬èªã®ããã¥ã¡ã³ããäœæã§ããŸãã ã³ãŒãã®ã¬ãã¥ãŒäžã«ã¹ã¿ã€ã«ã®è°è«ãçºçãããã³ã«ãæ£åŒãªåæãã©ãããã¹ãããããŒã å šäœã®åã«è³ªåããŸãã åæã«éãããããã®æ±ºå®ãã¹ã¿ã€ã«ã¬ã€ãã«å ¥ããŸãã
ããŒãžã§ã³ç®¡çã·ã¹ãã ïŒããšãã°ã GitHub Pages ïŒã§ããã¥ã¢ã«ãMarkdown圢åŒã§ä¿æããããšã奜ã¿ãŸãã ãã®ããããã¹ãŠã®å€æŽã¯æšæºã®ã¬ãã¥ãŒæé ãçµãŸãã誰ããæ瀺çã«å€æŽãæ¿èªããå¿ èŠããããããŒã ã®å šå¡ãåé¡ãæèµ·ã§ããŸãã Wikiããã³Googleããã¥ã¡ã³ããé©ããŠããŸãã
ãªãã·ã§ã³3ïŒãã€ããªããã¢ãããŒã
ãªãã·ã§ã³1ãš2ãçµã¿åãããŠãæ¢åã®ããã¥ã¢ã«ãé©åããããšåæã«ãããŒã«ã«ããã¥ã¡ã³ããç¶æããŠãããŒã¿ããŒã¹ãæ¡åŒµãŸãã¯æžãæããããšãã§ããŸãã è¯ãäŸã¯ãChromium C ++ã®ããã¥ã¢ã«ã§ãã ããã§ã圌ãã¯Googleã®C ++ããã¥ã¢ã«ãããŒã¹ãšããŠãç¬èªã®å€æŽãšè¿œå ãè¡ããŸããã
ããã«ã¬ãã¥ãŒãéå§
ã³ãŒãã¬ãã¥ãŒãåªå 床ã®é«ãã¿ã¹ã¯ãšããŠæ€èšããŠãã ããã ã³ãŒããå匷ãããšãããŸãã¯ã¬ãã¥ãŒãæžããšãã¯ãæéããããŸãããããã«ãããå§ããŸããã-çæ³çã«ã¯æ°å以å ã«ã
ååãå€æŽã®ãªã¹ããéä¿¡ããå Žåããã£ãŒãããã¯ãåä¿¡ãããŸã§åœŒã®äœæ¥ãäžæãããå¯èœæ§ããããŸãã çè«çã«ã¯ãããŒãžã§ã³ç®¡çã·ã¹ãã ã«ãããå¥ã®ãã©ã³ããäœæããŠäœæ¥ãç¶è¡ããæ°ãããã©ã³ãã§ã¬ãã¥ãŒã®å€æŽãæçš¿ã§ããŸãã å®éã«ã¯ããããå¹æçã«è¡ãããšãã§ããéçºè ã¯äžçäžã«çŽ4人ããŸãã ä»ã®ãã¹ãŠã®äººã«ãšã£ãŠãäžåœéã®å·®ã解ãã«ã¯éåžžã«æéãããããã¬ãã¥ãŒãèŠè¶ããŠè¡ãããšãã§ããé²æ©ãäžåããŸãã
ããã«ã¬ãã¥ãŒãéå§ããå Žåã奜ãŸãããµã€ã¯ã«ãäœæããŸãã ã¯ãŒã¯ãããŒå šäœã¯ãäœæè ã®å€æŽãªã¹ãã®ãµã€ãºãšè€éãã®é¢æ°ã®ã¿ã«ãªããŸãã ããã«ãããèè ã¯ãå°ããæ£ç¢ºãªèšèã®ãªã¹ããéä¿¡ããããšãã§ããŸãã ã¬ãã¥ãŒã¯ããç°¡åã§å¿«é©ã«æ€èšã§ãããããã¬ãã¥ãŒãå éããã奜埪ç°ãç¶ããŸãã
ååã1000è¡ã®ã³ãŒããå€æŽããå¿ èŠãããæ°ããé¢æ°ãå®è£ ãããšæ³åããŠãã ããã çŽ2æéã§200è¡ã®å€æŽãªã¹ãã確èªã§ããããšã圌ãç¥ã£ãŠããå Žåã圌ã¯ãã®æ©èœãçŽ200è¡ã®ãã©ã°ã¡ã³ãã«åå²ãã1ã2æ¥ã§æ©èœå šäœã®ç¢ºèªãçµäºããŸãã ãã ãããµã€ãºã«é¢ä¿ãªããã³ãŒãã®ã¬ãã¥ãŒã«1æ¥ãããå Žåãé¢æ°ã®æ¿èªã«ã¯1é±éããããŸãã ååã¯1é±éåŸ ã¡ãããªãã®ã§ããããã500ã600è¡ã®å€§ããªãªã¹ããéä¿¡ããŸãã 200è¡ããã600è¡ã®å€æŽã«å¯ŸããŠã³ã³ããã¹ããç¶æããã®ãé£ãããããæ€èšããã®ãé£ãããã¬ãã¥ãŒãæªããªããŸãã
1åã®ã¬ãã¥ãŒæéã®çµ¶å¯Ÿæ倧å€ã¯1å¶æ¥æ¥ã§ããå¿ èŠããããŸãã åªå 床ã®é«ãåé¡ã§å¿ããã1å¶æ¥æ¥ã«åãŸããªãå Žåã¯ãååã«ãã®ããšãç¥ãããã¬ãã¥ãŒã®ããã«ä»ã®äººãéžæããæ©äŒãäžããŸãã 1ãæã«1å以äžã¬ãã¥ãŒãäžæ¢ããªããã°ãªããªãå Žåãé©åãªéçºãã©ã¯ãã£ã¹ãç¶æããããã«ãããŒã ãã¬ãŒã¹ã®ããŒã¹ãäžããå¿ èŠãããå¯èœæ§ããããŸãã
é«ã¬ãã«ã§éå§ããäžã«è¡ã
ç¹å®ã®åã©ãŠã³ãã§æžãã¡ã¢ãå€ãã»ã©ãäœè ãèœã¡èŸŒãã§ãããšæãããªã¹ã¯ã倧ãããªããŸãã æ£ç¢ºãªå¶éã¯éçºè ã«ãã£ãŠç°ãªããŸãããå±éºãŸãŒã³ã¯éåžžã1ã©ãŠã³ãã®ã¬ãã¥ãŒããã20ã50é³ã§å§ãŸããŸãã
ã³ã¡ã³ãã®æµ·ã«èè ãauthorããããããªãå Žåã¯ãæåã®ã©ãŠã³ãã§é«ã¬ãã«ã®ç·šéã®ã¿ã«å¶éããŠãã ããã ã¯ã©ã¹ã€ã³ã¿ãŒãã§ã€ã¹ã®åèšèšãè€éãªæ©èœã®åå²ãªã©ã®åé¡ã«éäžããŸãã ãããã®åé¡ãä¿®æ£ãããã®ãåŸ ã£ãŠãããå€æ°ã®åœåãã³ãŒãå ã®ã³ã¡ã³ãã®ãããããããªã©ã®äœã¬ãã«ã®åé¡ã«ç§»ããŸãã
äœæè ãé«ã¬ãã«ã®ç·šéãè¡ããšãäœã¬ãã«ã®ã¡ã¢ã¯ç¡é¢ä¿ã«ãªãå¯èœæ§ããããŸãã ããããåŸã®ã©ãŠã³ãã«ç§»åãããšããããã®ç©è°ãéžããããã¯ã«é¢ããã³ã¡ã³ãã®åèªãæ éã«éžæãããšããéèŠãªäœæ¥ãã身ãå®ãããšãã§ããäœæè ã¯ãªãã·ã§ã³ã®ã³ã¡ã³ããåŠçããå¿ èŠããªããªããŸãã ãŸãããã®ææ³ã¯ãã¬ãã¥ãŒããã»ã¹ã«éäžããæœè±¡åã®ã¬ãã«ãã»ã°ã¡ã³ãåããããªããšèè ãå€æŽã®ãªã¹ããæ確ãã€äœç³»çã«ç¢ºèªã§ããããã«ããŸãã
ã³ãŒããµã³ãã«ãgeneãã¿ãªã䜿çšãã
çæ³çãªäžçã§ã¯ãã³ãŒãã®äœæè ã¯ã¬ãã¥ãŒã«æè¬ããŸãã 圌ã«ãšã£ãŠãããã¯åŠã¶æ©äŒã§ãããééãããã®ä¿è·ã§ãã å®éã«ã¯ãèè ãã¬ãã¥ãŒãåŠå®çã«èªèããã³ãŒãã«å¯ŸããŠã³ã¡ã³ããããŠããããšã«inããããšãã§ãããããå€ãã®å€éšèŠå ããããŸãã ç· ãåãã®ããã§æ¥ãã§ããã®ãããããªãã®ã§ãå³åº§ã®æ¿èªãé€ããŠãã©ããªããããé害ã®ããã«æããŸãã ãã¶ããããªãã¯ããã»ã©é·ãäžç·ã«ä»äºãããŠãããã圌ãã¯ããªãã®çºèšãåæã§äœãããŠãããšã¯ä¿¡ããŠããŸããã
ã¬ãã¥ãŒäœæè ã«ããã³ãŒãã®èªèãæ¹åããè¯ãæ¹æ³ã¯ã圌ã«ãã¬ãŒã³ããèŽãæ©äŒãèŠã€ããããšã§ãã ãããŠããã¹ãŠã®éçºè ã¯ã©ã®ãããªèŽãç©ãåãåãã®ã奜ãã§ããïŒ ãã¡ãããã³ãŒãäŸã
ããªããè¡ãããšãææ¡ããããã€ãã®å€æŽãæžãããšã«ãã£ãŠèè ã®ä»äºãä¿é²ãããªãã°ãããªãã¯ããªããã¬ãã¥ã¢ãŒãšããŠæéãgeneãã¿ãªãå ±æããããšã瀺ããŸãã
äœæè ãPythonã®ãªã¹ãé¢æ°ã«ããŸã粟éããŠããªããšããŸãã 圌ã¯ãã¬ãã¥ãŒã®ããã«æ¬¡ã®è¡ãå«ãã³ãŒããéä¿¡ããŸãã
urls = [] for path in paths: url = 'https://' url += domain url += path urls.append(url)
ãããã¯ãªã¹ããå«ããããšã§åçŽåã§ããŸããïŒããšããã¹ã¿ã€ã«ã®çãã¯ããããŸã§ã«äœ¿çšããããšã®ãªãé¢æ°ã20åãããŠåŠç¿ããå¿ èŠããããããè¿·æã§ãã
èè ã¯ããã®ãããªã¡ã¢ããšãããšãã¯ããã«å¹žãã§ãïŒ
ãã®çš®ã®ãªã¹ããå«ããããšãæ€èšããããšãææ¡ããŸãã
urls = ['https://' + domain + path for path in paths]
ãã®ææ³ã¯ãåäžè¡ã®å€æŽã«éå®ãããŸããã å€ãã®å Žåãç¬èªã®ã³ãŒããã©ã³ããäœæããŠã倧ããªé¢æ°ãåå²ããããè¿œå ã®å¢çç¶æ³ãã«ããŒããåäœãã¹ããè¿œå ãããªã©ãåªããæŠå¿µçãªã¢ã€ãã¢ãäœæè ã«ç€ºããŸãã
ãã®ææ³ã¯ãæ確ã§åŠå®ã§ããªãæ¹åã®ããã«ã®ã¿äœ¿çšããŠãã ããã äžèšã®ãªã¹ãã«å«ãŸããäŸã§ã¯ãã³ãŒãã®è¡æ°ã83ïŒ åæžããããšäž»åŒµããéçºè ã¯ã»ãšãã©ããŸããã éã«ãå人ã®å¥œã¿ã«åã£ããããè¯ããå€æŽïŒããšãã°ãã¹ã¿ã€ã«ã®å€æŽïŒã瀺ãããã«é·ãäŸãæžããšããã®ãµã³ãã«ã³ãŒãã¯ãå¯å€§ãã瀺ãã®ã§ã¯ãªããèšå®ãæ°žç¶çã«ããã·ã¥ããŠãããããªå°è±¡ãäžããŸãã
ã©ãŠã³ãããšã«2ã€ãŸãã¯3ã€ã®ã³ãŒãäŸã«å¶éããŠãã ããã èè ã®å€æŽãªã¹ãå šäœã®ã³ãŒããæžãå§ãããšãèè èªèº«ããã®ã³ãŒããæžãããšãã§ãããšã¯æããªãå°è±¡ãäžããŸãã
決ããŠèšããªã
å°ãå¥åŠã«èãããŸãããè³ãåŸããŠãã ãããã³ãŒãã¬ãã¥ãŒããã»ã¹ã§å人çã«èè ã«é£çµ¡ããªãã§ãã ããã
ããªãã®æ±ºå®ã¯ã誰ããããã®ã¢ã€ãã¢ãæãã€ããã®ã§ã¯ãªããã³ãŒããæ¹åããããã®ã¢ã€ãã¢ã«åºã¥ããŠããã¹ãã§ãã ããªãã®ååã¯åœŒã®å€æŽãªã¹ããšã³ãŒãã«å€å€§ãªåªåãè²»ãããŠããããããããã®ä»äºã«èªããæã£ãŠããŸãã 圌ã®äœåã«å¯Ÿããæ¹å€ã«å¯Ÿããèªç¶ãªåå¿ã¯ãå®åçãªç«å Žã«ãªãããšã§ãã
é²åŸ¡çãªå§¿å¢ã®ãªã¹ã¯ãæå°éã«æããããã«ãã¬ãã¥ãŒã®èšèãéžæããŠãã ããã éçºè èªèº«ã§ã¯ãªããã³ãŒããæ¹å€ããŠããããšãæ確ã«ããŠãã ããã äœè ã解説ã§åœŒã«å人çãªé åãèŠããšãããã¯ã³ãŒããã泚æããããããã®äººã«æ³šæãåããŸãã ãã®ããã圌ã¯å人çã«æ¹å€ãåãããªã¹ã¯ãé«ãŸããŸãã
ããšãã°ãç¡å®³ãªã³ã¡ã³ãã次ã«ç€ºããŸãã
ãå®å šã«ããšããèšèãééããŸããã
èè ã¯ããã®ãããªçºèšã2ã€ã®ãŸã£ããç°ãªãæ¹æ³ã§è§£éã§ããŸãã
- 解é1 ïŒã¡ãã£ãšããã£ïŒ ãå®å šã«ããšããåèªãã€ã¥ããŸããã ããããããªãã¯ãŸã è³¢ããšæããŸãïŒ ããã¯ããããåãªãã¿ã€ããã¹ã§ãã
- 解é2 ïŒãå®å šã«ããšããèšèãééããŸããããã«ã
ãããããªãã察åŠãããŠããªãçºèšãšæ¯èŒããŠãã ããã
æå->æå
2çªç®ã®æ³šèšã¯åãªãä¿®æ£ã§ãããèè ã«ããè©äŸ¡ã§ã¯ãããŸããã
幞ããªããšã«ããããªãããšããèšèãé¿ããããšã§ãã³ã¡ã³ããç°¡åã«æžãæããããšãã§ããŸãã
ãªãã·ã§ã³1ïŒãããªããããç§ãã¡ãã«çœ®ãæããŸã
ãã®å€æ°ã«ãã«ãªããŸãïŒseconds_remaining
ãããªãããseconds_remaining
ååãä»ããããšãã§ããŸããïŒ
ãã®å€æ°ã«ãseconds_remaining
ãããªããããããããååãä»ããããšãã§ããŸããïŒ
ãç§ãã¡ãã¯ãã³ãŒãã«å¯ŸããããŒã å šäœã®å ±å責任ã匷åããŸãã èè ã¯ããªããšåãããã«å¥ã®äŒç€Ÿã«è¡ãããšãã§ããŸãããäœããã®åœ¢ã§ãã®ã³ãŒããæ åœããããŒã ãååšããŸãã èè ãåç¬ã§æããã«ããªããã°ãªããªãå€æŽã«é¢ããŠã¯ããç§ãã¡ããšèšãã®ã¯éŠ¬é¹¿ããŠããããã«æãããããããŸããããåçºè ãããæãã«èŠããæ¹ãè¯ãã§ãã
ãªãã·ã§ã³2ïŒæãã件åãåé€ãã
å人çãªæ±ããé¿ããããã®å¥ã®ãªãã·ã§ã³ã¯ãæããäž»é¡ãé€å€ããç¥èªã䜿çšããããšã§ãïŒ
seconds_remaining
ãããªãããseconds_remaining
ååã«å€æ°ã®ååãå€æŽããããšãæ€èšããå¿ èŠããããŸãã
åãå¹æã¯ãååé³å£°ã䜿çšããŠãå®çŸã§ããŸãã ç§ã¯éåžžããã¹ãã®ãããªæè¡ææžã§ã¯ååæ ãé¿ããŸãããããã¯å人çãªåãæ±ãã®åé¡ãåé¿ããããã®äŸ¿å©ãªæ¹æ³ã§ãã
ãã®å€æ°ã¯ ãseconds_remaining
ãããªãããseconds_remaining
ååã«å€æŽããå¿ èŠããããŸã ã
å¥ã®ãªãã·ã§ã³ã¯ããWhat about ...ããŸãã¯ãHow about ...ããšããåèªã§å§ãŸã質åã®åœ¢åŒã§æãèšãæããããšã§ãã
seconds_remaining
ãããªãããseconds_remaining
ååã«ãã®å€æ°ã®ååãå€æŽããã®ã¯ã©ãã§ããã
ããŒã ã§ã¯ãªããªã¯ãšã¹ããšããŠã¬ãã¥ãŒãè¡ã
ã¬ãã¥ãŒã³ãŒãã¯ãè°è«ãå人çãªè°è«ã«æ»ã蟌ããªã¹ã¯ãé«ããããéåžžã®ã³ãã¥ãã±ãŒã·ã§ã³ãããå€ãã®ã¿ã¯ããšæ³šæãå¿ èŠã§ãã ã¬ãã¥ãŒæ åœè ã¯ãå人çãªã³ãã¥ãã±ãŒã·ã§ã³ãšæ¯èŒããŠãã¬ãã¥ãŒã³ãŒããããäžå¯§ãã€äžå¯§ã«ãã¹ãã§ãããšæãããŸãã ããããç§ã¯å¥åŠãªæ¹æ³ã§æ£å察ã®ç¶æ³ãçºèŠããŸããã å€ãã®äººãååã«ããã®ããããã¹ããããŠããœãŒããæã£ãŠããŠããããšã¯æ±ºããŠèšããªãã§ãããã ããããããã®ã¯ã©ã¹ãå¥ã®ãã¡ã€ã«ã«è»¢éããããªã©ãã¬ãã¥ã¢ãŒããã®ãããªããŒã ã¹ã¿ã€ã«ã§ã¬ãã¥ãŒãçºè¡ããã±ãŒã¹ãå€ãèŠãŸããã
ããããããªãã®ã³ã¡ã³ãã§è¿·æãªã»ã©ç€Œåæ£ããããªãã§ãã ããã ããŒã ãšããŠã§ã¯ãªãããªã¯ãšã¹ããŸãã¯ææ¡ãšããŠäœæããŠãã ããã
åãã³ã¡ã³ãã2ã€ã®ç°ãªãæ¹æ³ã§æ¯èŒããŸãã
ã³ãã³ããšããŠçºè¡ãããã¡ã¢ | ãªã¯ãšã¹ããšããŠçºè¡ãããçºèš |
---|---|
Foo
ã¯ã©ã¹ãå¥ã®ãã¡ã€ã«ã«è»¢éããŸãã | Foo
ã¯ã©ã¹ãå¥ã®ãã¡ã€ã«ã«è»¢éã§ããŸããïŒ |
人ã ã¯èªåã®ä»äºã管çãããã ãã®ãããªèŠæ±ã¯ãèè ã«ç¬ç«æãäžããŸãã
ãã®ãããªèŠæ±ã¯ãèè ãäžå¯§ã«å¯Ÿå¿ããå¯èœæ§ãé«ããŸãã ãã¶ãã圌ã¯ãã®ãããªéžæããã圌èªèº«ã®çç±ãæã£ãŠããŸãã ã³ãã³ãã®åœ¢ã§çºèšããå Žåãèè ã®æèŠã®äžäžèŽã¯äžæåŸã®åœ¢ããšããŸãã ãªã¯ãšã¹ããŸãã¯è³ªåãšããŠã³ã¡ã³ããäœæããå Žåãäœæè ã¯åã«çããããšãã§ããŸãã
æåã®çºèšã®ãã¶ã€ã³ã«å¿ããŠãäŒè©±ã®å¥œæŠçãªæ§åãæ¯èŒããŸãã
ããŒã ãšããŠçºè¡ããããã£ãŒãããã¯ïŒæ»æïŒ | ãªã¯ãšã¹ããšããŠçºè¡ããããã£ãŒãããã¯ïŒååïŒ |
---|---|
ã¬ãã¥ã¢ãŒ ïŒ Foo
ã¯ã©ã¹ãå¥ã®ãã¡ã€ã«ã«è»¢éããŸãã äœæè ïŒããã¯ã Bar
ã¯ã©ã¹ããé¢ããããŠããŸããããè¡ããããããŸããã 顧客ã¯ã»ãšãã©ã®å Žåããããäžç·ã«äœ¿çšããŸãã | ã¬ãã¥ã¢ãŒ ïŒ Foo
ã¯ã©ã¹ãå¥ã®ãã¡ã€ã«ã«è»¢éã§ããŸããïŒ äœæè ïŒããã¯ã§ããŸãããããã§ã¯ Bar
ã¯ã©ã¹ããé¢ããããŠããŸããã¯ã©ã€ã¢ã³ãã¯éåžžããã2ã€ã®ã¯ã©ã¹ãäžç·ã«äœ¿çšããŸãã ã©ãæããŸããïŒ |
ããªãã®
æèŠã§ã¯ãªãååã§æ£åœåãã
èè ã«ã³ã¡ã³ããããšãã¯ãææ¡ãããå€æŽãšãã®çç±ã®äž¡æ¹ã説æããŠãã ããã ããã®ã¯ã©ã¹ã2ã€ã«åå²ããå¿ èŠããããŸãããšãããã¬ãŒãºã®ä»£ããã«ãããã®ã¯ã©ã¹ããã¡ã€ã«ã®ããŠã³ããŒããšè§£æã®äž¡æ¹ãæ åœããããã«ãªã£ãããšèšãæ¹ãè¯ãã§ãããã ããã¯ãå ±æ責任ã®ååã«åŸã£ãŠãããŠã³ããŒãçšã®ã¯ã©ã¹ãšè§£æçšã®ã¯ã©ã¹ã«åå²ããå¿ èŠããããŸãã
ååã§çºèšãæ£åœåããå Žåãè°è«ã¯å»ºèšçãªåœ¢ãåããŸãã ãã¯ã©ã¹ã®ãªãŒãã³ã€ã³ã¿ãŒãã§ãŒã¹ãæå°åããã«ã¯ããã®é¢æ°ããã©ã€ããŒãã«ããå¿ èŠãããããªã©ã®ç¹å®ã®çç±ãæããå Žåãèè ã¯åã«ãããããèªåã®ããæ¹ã§ããããããšçããããšã¯ã§ããŸããã ãããŠããã圌ãããã«çãããªããããã¯éŠ¬é¹¿ãããã®ã«èŠããã§ãããããªããªããå€åãã©ã®ããã«ç®æšãéæããããšãå¯èœã«ãããã瀺ããããã§ãã
ãœãããŠã§ã¢éçºã¯èžè¡ã§ãããç§åŠã§ããããŸãã 確ç«ãããååã®èŠ³ç¹ãããç¹å®ã®ã³ãŒããã©ã°ã¡ã³ãã®äœãééã£ãŠããã®ããæ£ç¢ºã«å®åŒåããããšã¯åžžã«å¯èœãšã¯éããŸããã ã³ãŒããåçŽã«ãããŸãã¯é床ã«è€éãªå Žåããããæ£ç¢ºãªçç±ãæ確ã«ããããšã¯å°é£ã§ãã ãã®ãããªå Žåã¯ãã§ããéã説æããŸããã客芳æ§ãä¿ã¡ãŸãã ã ããã¯ç解ããã®ãé£ããããã«æããŸãããšèšããšãããã¯å°ãªããšã客芳çãªå£°æã§ãããã ããã¯æ··ä¹±ãæãã³ãŒãã§ãããšãããã¬ãŒãºãšã¯å¯Ÿç §çã§ãã
å¯èœãªå Žåã¯ããªã³ã¯ã®åœ¢ã§è£ä»ããšãªã蚌æ ãæäŸããŠãã ããã ããŒã ã®ã¹ã¿ã€ã«ã¬ã€ãã®é©åãªã»ã¯ã·ã§ã³ã¯ãæäŸã§ããæè¯ã®ãªã³ã¯ã§ãã èšèªãŸãã¯ã©ã€ãã©ãªã®ããã¥ã¡ã³ããåç §ã§ããŸãã é«ãè©äŸ¡ã®StackOverflowåçãé©ããŠããŸãããä¿¡é Œã§ããããã¥ã¡ã³ãããé¢ããã»ã©ã蚌æ ã¯äžå®å®ã«ãªããŸãã
ããŒã2ïŒè¿æ¥å ¬é
æ°é±éã®ãã¡ã«ãèšäºã®ç¬¬2éšãå ¬éããŸãã é£çµ¡ãåãåãã次ã®ãããªè¿œå ã®ãã³ããæ€èšããŸãã
- 倧ããããã³ãŒãã¬ãã¥ãŒã§äœæ¥ããŸãã
- é«ãè©äŸ¡ãäžããèœåãèªèããã
- ã¬ãã¥ãŒãã¬ãŒã ã¯ãŒã¯ãžã®æºæ ã
- 絶æçãªç¶æ³ã§ã®è¡åã
UPDã èšäºã®2çªç®ã®éšåãå ¬éãããŠããŸãã