ã¯ããã«: Rubyæè¡è èªå®è©Šéšãšã¯
Rubyã¯ãã·ã³ãã«ã§èªã¿ãããã³ãŒããç¹åŸŽã®ããã°ã©ãã³ã°èšèªãšããŠãå€ãã®éçºè ããæãããŠããŸãããã®äžã§ããRubyæè¡è èªå®è©Šéšã¯ãRubyã®ç¥èãšæè¡ã蚌æããããã®å ¬åŒãªè©ŠéšãšããŠç¥ãããŠããŸãã
èªå®è©Šéšã®èæ¯
Rubyæè¡è èªå®è©Šéšã¯ãRubyã®éçºè ã§ãããŸã€ããšããã²ãæ°ãçäºé·ãåããRuby Associationã«ãã£ãŠå®æœãããŠããŸãããã®è©Šéšã¯ãRubyã®ç¥èãæã€æè¡è ãããã®èœåã蚌æããããé«ããã£ãªã¢ãç¯ãããã®æ段ãšããŠå°å ¥ãããŸããã
è©Šéšã®æŠèŠ
è©Šéšã¯ãåºæ¬çãªRubyã®ç¥èãããå®è·µçãªåé¡è§£æ±ºèœåãåãå 容ãŸã§å¹ åºãã«ããŒããŠããŸããå ·äœçã«ã¯ãRubyã®ææ³ããªããžã§ã¯ãæåãã©ã€ãã©ãªã®äœ¿çšæ¹æ³ãªã©ãå€å²ã«ããããããã¯ãåºé¡ãããŸãã
è©Šéšã®ã¡ãªãã
ãã®è©Šéšãåéšããåæ Œããããšã§ãRubyã®å°é家ãšããŠã®ä¿¡é Œæ§ãé«ãŸããŸãããŸããå€ãã®äŒæ¥ã§ã¯ãRubyæè¡è èªå®è©Šéšã®åæ Œè ã«å¯ŸããŠãåªéæªçœ®ãåãå ŽåããããŸããããã«ããããã£ãªã¢ã®å¹ ãåºããå¯èœæ§ãé«ãŸããŸãã
è©Šéšã®åéšæ¹æ³
è©Šéšã¯ãå šåœã®æå®ãããè©ŠéšäŒå Žã§å®æœãããŠããŸããåéšãåžæããå Žåã¯ãå ¬åŒãµã€ãããç³ã蟌ã¿ãè¡ããæå®ã®æ¥æã«è©ŠéšäŒå Žã蚪ããå¿ èŠããããŸãã
Rubyè³æ Œã®çš®é¡ãšãã®ç¹åŸŽ
ããã°ã©ãã³ã°èšèªRubyã®æ®åã«äŒŽããå€ãã®æè¡è ãRubyã®ç¥èã蚌æããããã®è³æ ŒãååŸããŠããŸãããã®ã»ã¯ã·ã§ã³ã§ã¯ãRubyã®è³æ Œã®çš®é¡ãšãã®ç¹åŸŽã«ã€ããŠè©³ãã解説ããŸãã
åºæ¬çãªRubyè³æ Œã®æŠèŠ
Rubyæè¡è èªå®è©Šéšã¯ãRubyã®åºæ¬çãªç¥èãåãè³æ ŒãšããŠåºãç¥ãããŠããŸãããã®è©Šéšã¯ãRubyã®åºæ¬çãªææ³ãæ§æãåºæ¬çãªã©ã€ãã©ãªã®äœ¿çšæ¹æ³ãªã©ãRubyã®åºæ¬ããã£ãããšç解ããŠãããã確èªããããã®ãã®ã§ãã
åå¿è ãRubyãåŠã³å§ããã°ããã®æ¹ã«ãšã£ãŠããã®è³æ Œã¯éåžžã«ååŸãããããã®ãšãªã£ãŠããŸãããŸãããã®è³æ ŒãååŸããããšã§ãRubyã®åºæ¬çãªç¥èãæã£ãŠããããšã蚌æããããšãã§ããŸãã
äžçŽè åãã®Rubyè³æ Œãšãã®é£æ床
äžæ¹ãäžçŽè åãã®Rubyè³æ ŒãšããŠã¯ãRubyæè¡è èªå®è©Šéš SilverãRubyæè¡è èªå®è©Šéš GoldãååšããŸãããããã®è³æ Œã¯ãRubyã®é«åºŠãªç¥èãå®è·µçãªã¹ãã«ãåããã®ãšãªã£ãŠãããRubyã®ãããã§ãã·ã§ãã«ãšããŠã®èœåã蚌æããããã®è³æ ŒãšããŠäœçœ®ã¥ããããŠããŸãã
Silverã®è©Šéšã§ã¯ãRubyã®äžçŽè åãã®å 容ãåºé¡ãããã®ã«å¯ŸããGoldã®è©Šéšã§ã¯ãRubyã®é«åºŠãªãããã¯ãå®è·µçãªåé¡è§£æ±ºèœåãæ±ããããŸããç¹ã«Goldã¯ãRubyã®æ·±ãç¥èãšçµéšããªããã°åæ Œããããšãé£ãããšãããŠããŸãã
ãããã®è³æ ŒãååŸããããšã§ãRubyã®å°é家ãšããŠã®ä¿¡é Œæ§ãåžå ŽäŸ¡å€ãé«ãŸããå€ãã®äŒæ¥ããããžã§ã¯ãã§ã®æŽ»èºã®å Žãåºããã§ãããã
Rubyè³æ ŒååŸã®ã¡ãªãã
è¿å¹Žãããã°ã©ãã³ã°èšèªRubyã®äººæ°ãé«ãŸãäžãRubyã®è³æ ŒãååŸããããšã®ã¡ãªããã«ã€ããŠãå€ãã®é¢å¿ãå¯ããããŠããŸãããã®ã»ã¯ã·ã§ã³ã§ã¯ãRubyã®è³æ ŒååŸã®å ·äœçãªã¡ãªããã«ã€ããŠæ·±ãæãäžããŠãããŸãã
æè¡åã®èšŒæãšããŠã®è³æ Œ
ãŸãæã倧ããªã¡ãªãããšããŠãæè¡åã®èšŒæãæããããŸããRubyã®è³æ Œãæã£ãŠããããšã¯ããã®æè¡è ãRubyã«é¢ããäžå®ã®ç¥èãã¹ãã«ãæã£ãŠããããšã®èšŒãšãªããŸããç¹ã«ãæ°ããè·å Žããããžã§ã¯ãã«åå ããéãè³æ Œãæã£ãŠããããšã§ä»ã®ã¡ã³ããŒãäžåžã«èªåã®æè¡åãã¢ããŒã«ããããšãã§ããŸãã
ãã£ãªã¢ã¢ãããç®æãããã®ã¹ããã
次ã«ããã£ãªã¢ã¢ããã®ããã®ã¹ããããšããŠã®è³æ ŒååŸã®ã¡ãªããããããŸããRubyã®è³æ ŒãååŸããããšã§ãããé«åºŠãªãããžã§ã¯ããããžã·ã§ã³ãžã®æé²ã®ãã£ã³ã¹ãå¢ããã§ãããããŸããè³æ Œãæã£ãŠããããšã§ãæ±äººæ å ±ãæ¢ãéã®éžæè¢ãåºãããããè¯ãæ¡ä»¶ã®è·å ŽãèŠã€ããããšãå¯èœãšãªããŸãã
åå ¥ã®åäžãšè³æ ŒååŸã®é¢é£
ããã«ãåå ¥ã®åäžãšè³æ ŒååŸã®é¢é£ã«ã€ããŠãèããããšãã§ããŸããäžè¬çã«ãè³æ Œãæã€æè¡è ã¯ãè³æ Œãæããªãæè¡è ãããé«ã絊äžãåãåãããšãå€ããšèšãããŠããŸããããã¯ãè³æ Œãæã€ããšã§ãã®æè¡è ã®å°éæ§ãçµéšãèªããããããã«èŠåã£ãå ±é ¬ãæ¯æãããããã§ãã
以äžã®ããã«ãRubyã®è³æ ŒååŸã«ã¯å€ãã®ã¡ãªããããããŸãããããã®ã¡ãªãããç解ããèªåã®ãã£ãªã¢ãæè¡åã®åäžã®ããã«è³æ ŒååŸãç®æãããšã¯ãéåžžã«ææ矩ãªéžæãšèšããã§ãããã
Rubyã®è³æ ŒååŸã¹ããããã€ã¹ãããã¬ã€ã
ããã°ã©ãã³ã°èšèªRubyã®è³æ Œã¯ãæè¡è ã®ã¹ãã«ãç¥èã蚌æããããã®éèŠãªæ段ãšãªã£ãŠããŸããããããè³æ ŒååŸã®éã®ãã¯åããŠã®æ¹ã«ã¯é£ããæãããããããŸããããã®ã»ã¯ã·ã§ã³ã§ã¯ãRubyã®è³æ ŒååŸã«åããã¹ããããã€ã¹ãããã®ã¬ã€ããæäŸããŸãã
ã©ã®è³æ Œããå§ããã¹ãã
ãŸããRubyã®è³æ Œã«ã¯ããã€ãã®ã¬ãã«ããããŸããåå¿è ã®æ¹ã¯Rubyæè¡è èªå®è©Šéš Bronzeããå§ããããšãããããããŸãããã®è©Šéšã¯Rubyã®åºæ¬çãªç¥èãåããã®ã§ãåããŠã®è³æ ŒååŸãç®æãæ¹ã«ã¯é©ããŠããŸãã
äžæ¹ãããçšåºŠã®çµéšãç¥èãæã€æ¹ã¯ãSilverãGoldãç®æãããšãã§ããŸãããããã®è³æ Œã¯ããé«åºŠãªç¥èãã¹ãã«ãæ±ãããããããèªèº«ã®ã¹ãã«ã¬ãã«ã«åãããŠéžæããããšã倧åã§ãã
å¹ççãªå匷æ¹æ³ãšè³æã®éžã³æ¹
Rubyã®è³æ ŒååŸãç®æãéãå¹ççãªå匷æ¹æ³ãç¥ãããšã¯éåžžã«éèŠã§ãããŸããå ¬åŒã®åŠç¿ã¬ã€ããåèæžã掻çšããããšã§ãè©Šéšç¯å²ã«æ²¿ã£ãåŠç¿ãå¯èœã§ãããŸãããªã³ã©ã€ã³ã®åŠç¿ãªãœãŒã¹ãã³ãã¥ããã£ã圹ç«ã€ã§ãããã
ç¹ã«ãéå»åé¡éãæš¡æ¬è©Šéšã掻çšããããšã§ãå®éã®è©Šéšã®é°å²æ°ãåºé¡åŸåãæŽãããšãã§ããŸããããã«ãããè©Šéšå¯Ÿçãããå ·äœçã«é²ããããšãã§ããã§ãããã
è©Šéšåœæ¥ã®å¯Ÿçãšæ³šæç¹
è©Šéšåœæ¥ã¯ãååãªç¡ç ããšãããªã©ãã¯ã¹ããç¶æ ã§èšãããšã倧åã§ãããŸããè©ŠéšäŒå Žãžã®ã¢ã¯ã»ã¹æ¹æ³ãæã¡ç©ãªã©ãäºåã«ç¢ºèªããŠããããšã§ãåœæ¥ã®æ··ä¹±ãé¿ããããšãã§ããŸãã
è©Šéšäžã¯ãæé管çãæèããªããé²ããããšãéèŠã§ããç¹ã«ãé£ããåé¡ã«æéãåãããããªãããã«æ³šæããå šãŠã®åé¡ã«çããããšãç®æããŸãããã
ãã®ã¬ã€ããåèã«ãRubyã®è³æ ŒååŸã«åããŠã®æºåãåŠç¿ãé²ããããšã§ããã確å®ã«ç®æšãéæããããšãã§ããã§ãããã
å®è·µçãªRubyã®è³æ Œå匷æ³
ããã°ã©ãã³ã°èšèªRubyã®è³æ ŒãååŸããããã«ã¯ãå¹æçãªå匷æ³ãç¥ãããšãéµãšãªããŸãããã®ã»ã¯ã·ã§ã³ã§ã¯ãå®éã«è³æ ŒãååŸãã人ã ã®çµéšãããšã«ãå®è·µçãªå匷æ³ã玹ä»ããŸãã
ãªã³ã©ã€ã³ãªãœãŒã¹ãšææã®æŽ»çš
çŸä»£ã®åŠç¿ç°å¢ã¯ããªã³ã©ã€ã³ãªãœãŒã¹ãè±å¯ã«ãããŸããç¹ã«Rubyã«é¢ããæ å ±ãææã¯ãã€ã³ã¿ãŒãããäžã§æ軜ã«ã¢ã¯ã»ã¹ã§ããŸããå ¬åŒããã¥ã¡ã³ãããã¥ãŒããªã¢ã«ããã©ãŒã©ã ãªã©ãããŸããŸãªæ å ±æºã掻çšããŠãå¹ççã«åŠç¿ãé²ããããšãã§ããŸãã
ãŸããæžç±ãææãéåžžã«æå¹ã§ããç¹ã«ãè³æ Œè©Šéšã«ç¹åããææã¯ãè©Šéšç¯å²ã«æ²¿ã£ãå 容ãåŠã¶ã®ã«åœ¹ç«ã¡ãŸãã
æš¡æ¬è©Šéšãšéå»åã®æŽ»çšæ³
è³æ Œè©Šéšã®å匷ã«ãããŠãæš¡æ¬è©Šéšãéå»åã®æŽ»çšã¯éåžžã«å¹æçã§ãããããã®è³æã䜿ãããšã§ãå®éã®è©Šéšã®é°å²æ°ãåºé¡åŸåãæŽãããšãã§ããŸããç¹ã«ãæéãèšæž¬ããªããæš¡æ¬è©Šéšãåããããšã§ãæé管çã®ç·Žç¿ãè¡ãããšãã§ããŸãã
éå»åã解ãéã«ã¯ãééããåé¡ãç解ãæµ ãéšåããã£ãããšèŠçŽãããšã§ã匱ç¹ãè£åŒ·ããããšãã§ããŸãã
åæ Œè ãèªãå匷ã®ã³ã
å€ãã®åæ Œè ãèªãå匷ã®ã³ããšããŠãç¶ç¶çãªåŠç¿ãæããããŸããæ¯æ¥äžå®ã®æéã確ä¿ããŠåŠç¿ããããšã§ãç¥èãå®çãããããšãã§ããŸãããŸããåŠç¿ã®éã«ã¯èªåã®ç解床ãåžžã«ç¢ºèªããªããé²ããããšã倧åã§ãã
ããã«ãè³æ ŒååŸãç®æã仲éãšã®æ å ±äº€æãå匷äŒã®åå ãæå¹ã§ããä»è ã®èŠç¹ãåŠç¿æ³ãç¥ãããšã§ãèªåã®å匷æ³ãèŠçŽããã£ãããšãªãã§ãããã
ãã®ã¬ã€ããåèã«ãRubyã®è³æ ŒååŸã«åããŠã®å匷ãé²ããããšã§ããã確å®ã«ç®æšãéæããããšãã§ããã§ãããã
Rubyè³æ ŒååŸåŸã®ãã£ãªã¢å±æ
Rubyã®è³æ ŒãååŸããåŸãå€ãã®æè¡è ãã©ã®ãããªãã£ãªã¢ãç¯ããŠããã®ããèå³ãæã£ãŠããæ¹ãå€ãã§ãããããã®ã»ã¯ã·ã§ã³ã§ã¯ãRubyè³æ ŒååŸåŸã®ãã£ãªã¢å±æã«ã€ããŠè©³ãã解説ããŸãã
è³æ Œã掻ãããè·çš®ãšã¯
Rubyã®è³æ Œãæã€ããšã§ãç¹ã«Webã¢ããªã±ãŒã·ã§ã³éçºãã·ã¹ãã éçºã®åéã§ã®æ±äººãå¢ããããšãæåŸ ãããŸããRuby on Railsãªã©ã®ãã¬ãŒã ã¯ãŒã¯ã䜿çšããéçºè·ããã·ã¹ãã èšèšããã¹ããšã³ãžãã¢ãªã©ãå€å²ã«ãããè·çš®ã§Rubyã®ç¥èãã¹ãã«ãæ±ããããŠããŸãã
ãŸããã¹ã¿ãŒãã¢ããäŒæ¥ãæ°ããæè¡ãåãå ¥ããäŒæ¥ã§ã¯ãRubyã®è³æ Œãæã€æè¡è ãé«ãè©äŸ¡ãããåŸåã«ãããŸãã
è³æ ŒååŸè ã®å¹³ååå ¥ãšãã£ãªã¢ã®é²ãæ¹
Rubyã®è³æ Œãæã€æè¡è ã®å¹³ååå ¥ã¯ãè³æ Œãæããªãæè¡è ãããäžè¬çã«é«ããšãããŠããŸããç¹ã«ãé«åºŠãªè³æ Œãæã€æè¡è ã¯ããã®å°éæ§ãè©äŸ¡ãããããé«ãå ±é ¬ãåŸãããšãæåŸ ãããŸãã
ãã£ãªã¢ã®é²ãæ¹ãšããŠã¯ããŸãã¯è³æ Œã掻ãããŠã®å®åçµéšãç©ãããšã倧åã§ãããã®åŸããããžã§ã¯ããªãŒããŒããããŒãžã£ãŒãšããŠã®åœ¹è·ã«å°±ãããšã§ããããªããã£ãªã¢ã¢ãããç®æãããšãã§ããŸãã
ä»åŸã®æè¡ãã¬ã³ããšRubyè³æ Œã®äœçœ®ã¥ã
æè¡ã®äžçã¯æ¥ã é²åããŠããŸãããRubyã¯ãã®äžã§ãå®å®ãã人æ°ãæã€èšèªãšããŠç¥ãããŠããŸããç¹ã«ãWebéçºã®åéã§ã¯ãRuby on Railsã®ãããªãã¬ãŒã ã¯ãŒã¯ã掻çšããç¶ããŠããŸãã
ä»åŸããRubyã®è³æ Œã¯æè¡è ã®ã¹ãã«ãç¥èã®èšŒæãšããŠãäŒæ¥ããããžã§ã¯ãã§ã®è©äŸ¡ãé«ãŸãããšãæåŸ ãããŸããæ°ããæè¡ãã¬ã³ãã«å¯Ÿå¿ããªãããRubyã®è³æ Œã掻ãããŠãã£ãªã¢ãç¯ããŠããããšããæè¡è ã«ãšã£ãŠã®å€§ããªé åãšãªãã§ãããã
ãã®ã¬ã€ããåèã«ãRubyè³æ ŒååŸåŸã®ãã£ãªã¢å±æã«ã€ããŠã®ç解ãæ·±ããèªèº«ã®ãã£ãªã¢ãã©ã³ãèããæå©ããšããŠãã ããã
ãŸãšã: Rubyè³æ ŒãååŸããããšã®çã®äŸ¡å€
ãã®èšäºãéããŠãRubyã®è³æ Œã«é¢ããå€ãã®æ å ±ãåŠã³ãŸãããæåŸã«ãRubyè³æ ŒãååŸããããšã®çã®äŸ¡å€ã«ã€ããŠãŸãšããŠã¿ãŸãããã
Rubyã¯ãWebã¢ããªã±ãŒã·ã§ã³éçºãäžå¿ã«ãå€ãã®äŒæ¥ããããžã§ã¯ãã§å©çšãããŠããããã°ã©ãã³ã°èšèªã§ãããã®ãããRubyã®ã¹ãã«ãç¥èãæã€ããšã¯ãæè¡è ãšããŠã®åžå ŽäŸ¡å€ãé«ããèŠçŽ ãšãªããŸãã
è³æ ŒãååŸããããšã§ãèªèº«ã®ã¹ãã«ãç¥èã第äžè æ©é¢ãèªå®ãã蚌ãšããŠç€ºãããšãã§ããŸããããã¯ãå°±è·æŽ»åã転è·æŽ»åãããªãŒã©ã³ã¹ãšããŠã®æŽ»åãªã©ãããŸããŸãªå Žé¢ã§ã®ã¢ããã³ããŒãžãšãªããŸãã
ãŸããè³æ ŒååŸãç®æãéçšã§ã®åŠç¿ã¯ãå®åçµéšãç©ãã ãã§ã¯åŸãããªãæ·±ãç¥èãæ°ããèŠç¹ããããããŠãããŸããããã¯ãæ¥ã ã®éçºæ¥åãããŒã ã§ã®ã³ãã¥ãã±ãŒã·ã§ã³ã«ã圹ç«ã€èŠçŽ ãšãªãã§ãããã
ããããè³æ ŒååŸã®çã®äŸ¡å€ã¯ããããã©ã®ããã«æŽ»çšãããã«ããã£ãŠããŸããè³æ Œãæã€ããšã ããç®çã§ã¯ãªãããããåºã«ãããã£ãªã¢ã®å±éããæ°ããæè¡ã®ç¿åŸããããªãã¹ãã«ã¢ãããç®æã姿å¢ã倧åã§ãã
æåŸã«ãRubyã®è³æ ŒãååŸããããšã¯ãæè¡è ãšããŠã®äžã€ã®ã¹ããããšèããããšãã§ããŸããããããã®æ代ãæè¡ã®é²åã¯ãŸããŸãå éããŠããã§ããããRubyã®è³æ Œãæã€ããšã§ããã®å€åã«æè»ã«å¯Ÿå¿ããèªèº«ã®ãã£ãªã¢ãããè±ãã«ããæå©ããšãªãããšãæåŸ ããŸãã
ãã®èšäºããRubyã®è³æ ŒååŸãæ€èšããŠããæ¹ã ã®åèãšãªããããæããæè¡è ãšããŠã®æªæ¥ãç¯ãæå©ããšãªãã°å¹žãã§ãã