Kaigi on Railsåã®ãªãã©ã¤ã³éå¬ã§ããKaigi on Rails 2023ã§ç»å£ããæ©ä¼ãããã ãã¾ããã
è³æã¨åç»ã¯ ãã¡ã ãã辿ãã¾ãã
ã¡ãã£ã¨éã空ãã¦ãã¾ãã¾ãããã以ä¸ç»å£ã«é¢é£ãã¦ã¤ãã¤ãæãã¤ãããã¨ãæ¸ãã¦ãã¾ãã
ãªãã§ãã®é¡æã§è©±ããããã§ãã
ããã¾ã§ã®Kaigi on Railsã®çºè¡¨å 容ãã
- ææ¥ã®æ¥åãã使ããRailsã®ç¥è¦
- Railsã¢ããªã±ã¼ã·ã§ã³éçºã®å®ä¾
ã«é¢é£ãããã£ããã¼ãªãã¼ããæ¡æãããããã ãããªããã¨ããããã¤ãã¦ãã¾ãããåã¯åè ã®ãã¿ã¯ããããã¹ããã¯ããã*1ã®ã§ããã®ä¸ã§
- ã¿ããªèå³ããããã
- æ¢åã®æ¸ç±ãè¨äºã§ã¯ãã¾ãåãä¸ãããã¦ããªãé¡æ
ã¨ãã¦ãä¾å¤ãããããã ã¨ãªã£ãã®ã§ãããçºè¡¨ã§ãè¨åãã
destroy
ãããªãã¦destroy!
ã使ãã¾ãããrescue_from
ã ãã§ã¨ã©ã¼ãã³ããªã³ã°ããã®ã¯ä¸ååãªãã§ãã- ãªãã¹ãéçãªã¨ã©ã¼ãã¼ã¸ã«ãã¦ãããã»ãã楽ã§ãã
ã¨ãã£ãå 容ã¯ãæä¼ãå ã§å¹¾åº¦ã¨ãªãææãã¦ããã®ã§ããã®æ©ä¼ã«ããã®è³æãè¦ã¦ãã ãããã§ããããã«DRYã«ããã¨ããçããããã¾ããã
ããã«ããã¤ã©ã®ããã«ä¾å¤ãæ±ãã¨è¯ãã®ããã®æéãè¨èªåããããæ©ä¼ã ãªã¨æãã¦ãã¾ãããClean Test Code Revisedã®ã¨ããããã ã£ãã®ã§ãããããã¾ã§ã®çµé¨ã®èç©ã§ããªãã¨ãªãããããæ¹ãããã¨æããã§å¤æããç¶æ ãããã¡ããã¨è¨èªåãã¦äººã«èª¬æã§ããç¶æ ã«æã£ã¦ãããã£ããã¨ãã¦ç»å£ã¯ããªãæå¹ãªæ段ã§ããåã¯æè¡é¡§åã¨ããä»äºæããããªãã¨ãè¨èªåãã¦äººã«èª¬æããå¿ è¦ãããã®ã§ããã®ãããªç»å£ã¯ä»å¾ãç¶ç¶ãã¦è¡ãããã¨ããã§ãã
ã¾ã æ¹åãã¤ã³ããããã
çºè¡¨ãè¦ã¦ãããè²ããªäººãããããããããã£ããã¨ãã£ã¼ãããã¯ããããã¦å¬ããã®ã§ãããããã¤ã©ã®ããã«ä¾å¤ãæ±ãã¨è¯ãã®ããã®é¨åã¯(大çã¯ããã¨ãã¦ã)æ¹åã®ä½å°ãã¾ã ãããªãã¨æãã¦ãã¾ãããããClean Test Codeã¨åãããã«ã2, 3å¹´å¾ãããã«ã¾ãæ¹åãããçºè¡¨ãã§ããã¨ãããªã
çºè¡¨ã«é¢ãã¦ããªã«ãããæè¦ãææãªã©ãã£ãããã¡ãã«æ¸ãã¦ãããã¨ã¨ã¦ãå¬ããã§ãï¼
ãªãã©ã¤ã³ã ã¨ç´æ¥ã礼ãè¨ããã
åã¯å¤§å¤æ°ã®Rubyistã¨åæ§ã«ã·ã£ã¤ãã¤è©±ãã®ããã¾ããªãã®ã§èªåãã話ãããããã¨ãããã¨ã¯ãã¾ããã¾ããããããæ®æ®µã®æ´»åãè¤ããããã¨å¬ããã®ã§ãèªåãããã礼è¨ããã¿ã¤ãã³ã°ããã£ããè¨ã£ã¦ããããã¨æãä»åå®è·µãã¦ãã¾ããã
ãã¨ãã°pockeããã¯ruby-jpã§æ¯é±RubyKaigiã®åç»ã観ãä¼ããã£ã¦ããã¦ãã¦ãã£ã¡ãå©ãã£ã¦ãã*2ã®ã§ããã£ã¡ãå©ãã£ã¦ãã¾ãï¼ãã¨ç´æ¥ä¼ãã¾ãããã礼ã§ããå 容ãããã¨ããªã«ã話ããããã©è©±é¡ãæãã¤ããªããåé¡ã解決ããã®ã§ã¹ããã§ããã
ã¢ã«ã³ã¼ã«ãªãã®æ親ä¼ãããã§ãã
1æ¥ç®ã®æ親ä¼ã¯STORES CAFEãKaigi on Rails 2023åºå¼µçã«åå ãã¾ãããçºè¡¨æºåãã®ãªã®ãªã§å¯ä¸è¶³ã ã£ããã2æ¥ãæã«ã¸ã§ã®ã³ã°ã§ããããããªãã¨æã£ã¦ããã®ã§ãã³ã¢ã«ã³ã¼ã«ã®æ親ä¼ã¯å©ããã¾ãã*3ã
å®éåå ãã¦ã¿ãã¨ãã³ã¢ã«ã³ã¼ã«ã§ãæ®éã«æ¥½ããæ親ã§ããã®ã§ãæ¯æ¥é£²ã¾ãªãã¦ãåé¡ãªããªãã¨ããææ³ãæã¡ã¾ããããããã§æ¬¡ã®æ¥ã«ã¡ããã¨ã¸ã§ã®ã³ã°ãã§ãã¾ããã
馴æã¿ã®ãªãåå°ã§ã¸ã§ã®ã³ã°ããã®è¯ã pic.twitter.com/ViVycDd6Xb
— willnet (@netwillnet) October 27, 2023
éå¶ã®çãããããã¨ããããã¾ãã
éå¶ããã£ã¡ã大å¤ã ã¨æãã®ã§é ãä¸ããã¾ãããslackã®çºè¡¨è åããã£ã³ãã«ã§è³ªåã§ãã¦ãã¾ã¨ã¾ã£ãæ å ±ã¯esaã«ã¾ã¨ã¾ã£ã¦ãããã¨ããã®ã¯ãã£ã¡ãä½é¨ãè¯ãã£ãã§ãã
æ¥å¹´ãç»å£ãããã
ç»å£ã«ããã£ã¦ã¯ãè³æãæºåããæéã確ä¿ã§ãããããä¸çªã®å£*4ãªã®ã§ãããåºæ¥å¾ãéãä¸é£æãã¦æ¥å¹´ãç»å£ã§ããããã«é å¼µãã¾ã(\( â°ââ°)/)
*1:å¾è ã«é¢ãã¦ã¯åãæä¼ãå ã®ã¨ã³ã¸ãã¢åä½ã«ãã¾ããããã
*2:æè¡é¢é£ã®åç»ããªã«ãããã®ããã«ã±ããªãã¨è¦³ããªãã§ãããâ¦
*3:ã¢ã«ã³ã¼ã«ããã®æ親ä¼ã§ã飲ãã®ããææ ¢ããã°ããããããã¨ããæè¦ã¯ããã£ã¨ãã ãã©ææ ¢ã§ããã¯ãããªã
*4:åä¾ã®ç¸æãããã¨æéãç¡éã«æº¶ãã