ä»æ´ãªããKaigi on Rails 2023ã®æ°ã«ãªã£ããã®ãããã¯ã¢ãããã¦ææ³ãæ¸ãã¦ãããããªã¨æãã¾ãã
è¦ããéæ追è¨ãã¦ããã¾ãã
èªåã®PCã®ä¸ã«2022å¹´ã®ã¡ã¢ãåå¨ããã®ã§ããã«ã触ãã¦ããã¾ãã
2022å¹´
before_actionã¨ã®ã¤ãããªããªãä»ãåãæ¹
ããã¯å人çã«æåãã¾ããã
before_actionã¨ããããã³ã¼ã«ããã¯ç³»ã¯ãªãã¹ã使ããããªããªã¨æãã¦ãããã®ã®ããããã£ã¦èªåã ãï¼ç人ã¯ãããªãã¨ãªãã®ããªãã¨æã£ã¦ãã®ã§ã
ã¨ãã«Railsã®ã³ã¼ã«ããã¯ã¯ã¯ã©ã¹ã®ä¸ã«ã¾ã¨ãã¦å®ç¾©ããããè¤æ°ã¢ã¯ã·ã§ã³ã«é©ç¨ã§ããã®ã§ãã©ã®ã¢ã¯ã·ã§ã³ã®ã¨ãã«ã©ã®ã³ã¼ã«ããã¯ãã¤ããããã³ã¼ã«ããã¯ã®åææ¡ä»¶ã¨ãã¦ã©ã®ã³ã¼ã«ããã¯ãå¿
è¦ããã¿ãããªé åºã管çããªããã°ãããªãã§ãããã
ã¨ã¯ããããããã£ãææ³ã®æ¬è³ªã¯ã¡ãªãã¡ã®æ¯éã«ããæ°ããã¦ãã¾ãã
ä¾ãã°ããã©ãã§å¤åãã¦ãããæ¾ããããªããã¼ã¿ã®å¤æ´ãæ¤ç¥ãã¦ããå¦çãããå ´åããªã©ãbefore_actionã使ããªããã°ãã¡ãªããã大ããã±ã¼ã¹ãªã©ãå®ä½é¨ã¨ãã¦ãã£ãã®ã§ãï¼before_actionã«éããafter_commitãªã©ã§ãï¼
æ¬è³ªçé¢å¿äºã¨æ¨ªæçé¢å¿äºã®æ¦å¿µã¯åãã¦ç¥ãã¾ããããããã£ãã¢ã¤ã¢ã¤ãæ½è±¡åº¦ã®é«ãè¨èã§åé¡ã§ããã¨ã¹ãããªãã¾ããã
- æ¬è³ªçé¢å¿äºã¨ã¯ããã®ã¡ã½ããããããã¹ããã¨ã¯ãªã«ããã¨ãããã¨
- 横æçé¢å¿äºã¨ã¯ããã®ã¡ã½ãããå«ããããã¤ãã®å¦çãè¡ãã«ããã£ã¦å¿
è¦ãªå¦ç
ã¨ãããã¨ãããã§ããSlackéç¥ãªã©ã¯æ¨ªæçã§ããã決æ¸ãã°ã¨ããããããã¯ã³ã¼ã«ããã¯ã使ãã¡ãªãããä¸åãããããªãããªã¨æãã¾ãã
ä»å¹´ã§ãããã¼ã ã®çç£æ§ãåä¸ããããã©ã¯ãã£ã¹ã®ç´¹ä»
ããã¯å½æPMããã£ã¦ããã®ã§åèã«ããã¦ããã ãã¾ãããã¨ããããã¨ãããªãã§ãããåè¨éçºã¨ããæ§è³ªä¸ããã¹ã¦å½ã¦ã¯ã¾ãããã§ã¯ãªãã£ãã§ãã
ãã ãã²ã¨ãã¡ã«ããã¥ã¡ã³ãã¨ãã£ã¦ããAPIè¨è¨ã大äºãªã¨ããããã°ãå
±éè¨èªã¨ããããæ¦å¿µã表ãã¦ããã¿ã¹è¨èªã¿ãããªãã®ãã¾ã¨ã¾ã£ã¦ããã¨å¬ããã¨ããããã¾ãããã³ã¼ãã®å¤ã«åºã¦ãã½ããã¦ã§ã¢ã使ã人ã®æ¥åã®ãã¨ã詳ããæ¸ãã¦ãã£ãã»ããå¬ããã±ã¼ã¹ããããã¨æ¹ãã¦èãããã£ããã«ãªãã¾ããã
ãã¢ãããããã¢ããããã£ã¤ãããã®ãããã¨ããããã°ããã¢ãã風ã«Issueã¨ãã®Issueã®è§£æ±ºæ¹æ³ãã¢ãããçã«ããã®ãããã¨ããããã¾ããã
å½æã®ãã¼ã ã§ã¯å¾è
ãå¹ããããªã¨æãã¾ãã
speakerdeck.com
ã¨ããããæãã¦ãããã Railsã§ã®ããã¹ãã®å
容ãã®èãæ¹
ç¹çãã¹ããã¨ã¯ãªããã¨ããããããããã®ã§å¥ã®è¨äºã«ãããã§ãï¼åããããªãã¨ãèãã¦ããã®ã§ãå¦ã³ã®å確èªã«ãªãã¾ããã
speakerdeck.com
å人çãªææ³ã¯æ®ã£ã¦ããªãã®ããããå¦ã³ã«ãªã£ãçºè¡¨
ã¡ã¢ã«ã¯æ¬å½ã«çºè¡¨å
容ã®ã¾ã¨ããããã¦ãªãã®ã§ãã¿ã¤ãã«ã ãè¨ãã¦ããã¾ãã
- æ¢åRailsã¢ããªæ»ç¥æ³ - CTOãè¦ããã¨ã»ãããã¨ã»èãããã¨
- å¤é¨ãµã¼ãã¹é£æºã®è¨è¨
- ã¡ããªã¯ã¹å¯è¦åããå§ãã Rails ã¦ã§ããµã¼ãã¼ã®ãã¥ã¼ãã³ã°
2023å¹´
ã³ã¼ãã«ãã¬ãã¸è¨æ¸¬ãã¼ã«ãå°å
¥ããããã¹ããæ¸ãã®ã楽ãããªã£ã話
https://youtu.be/54sOl5qQMK0?si=D1mHxbTvQifV7KG7
ããã¯æ¬å½ã«ã¿ã¤ã ãªã¼ã ãªã¨æãã¾ããã
ã¡ããã©å¤åå
ã§é常ã¿ã¹ã¯ã®åéã«ãã¹ãã®æ¡å
ããã¦ããæ¥åããã£ã¦ãã¦ãæ¢åã®ãã¹ãã®ã¹ã¿ã¤ã«ãå
¨ç¶éãã®ã§ãããç¨åº¦ã«ã¼ã«åããã»ãããããªã¨æã£ã¦ãã¾ããã
ã«ã¼ã«ã®ææ¨ã®ä¸ã¤ã¨ãã¦ããã©ãã¾ã§ãã¹ããæ¸ãããã¿ãããªãã¨ã¯éè¦ã ã¨æãã¾ãã
ä¾ãã°èªåã®å ´åããªã¯ã¨ã¹ãã¹ããã¯ã§ã¤ã³ã¹ã¿ã³ã¹å¤æ°ã¾ã§è¦ãå¿
è¦ã¯ãªãããéã«ãªã¯ã¨ã¹ãã¹ããã¯ã§ã«ãã¼ã§ãã¦ãããµã¼ãã¹ã¯ã©ã¹ã®è©³ç´°ã¾ã§ãã¹ãããå¿
è¦ã¯ãªãã¨èãã¦ãã¾ãã
ã§ãããä¸æ¹ã§ãµã¼ãã¹ã¯ã©ã¹ã®ãã¹ããæ¸ããããªãã¨ããããã¾ããããããããã¹ããè¦ãããã¨ããããã¾ãã
ãã®è¾ºãè¨èªåããã®ã£ã¦é£ããã§ãã
ãã¡ãã®çºè¡¨ã§ããã«ãã¬ãã¸ã¨ããææ¨ã¯4種é¡ãããã¨ãããã¨ãåãã¦ç¥ã£ãã®ã§ããã®ã«ãã¬ãã¸ã«åºã¥ãã¦èããã¨ããã®ã1ã¤ã®æ¹éã¨ãã¦è¯ããªã¨æãã¾ããã
æ¥åã«è½ã¨ãããæã¯ããã°ãèµ·ãããããé¨åã ã£ããããã°ãã¯ãªãã£ã«ã«ãªé害ã«ç¹ããé¨åã ã£ããããããã£ãè¤åçãªè¦ç´ ãéã¿ãå¿
è¦ãããã¾ããã
å®æ°åç
§ã®ãã©ãããã¨ãããåé¿ããããã«è¡ã2ã¤ã®ãã¨
https://youtu.be/DprMyMethws?si=o89_tcQWCNmceH1h
æ¬çã¨ã¯éããã§ããããªãappé
ä¸ã®requireãä¸è¦ãªã®ãã¨ãã話ã¯ãããã«ã¨æãã¾ããã
config.autoload_pathsã«è¨å®ããããã®ã¯èªåèªã¿è¾¼ã¿ã«ãªãããã§ãã
ã¡ããã©ãã®è¾ºã¯æ¥åã§namespaceã®ä»åãç´ããè¡ã£ãæã«è»½ãããã£ãã®ã§ãä»å¾ãæèãããã¨ããã§ãã
以ä¸ã¯ç¹ã«ææ³ã¯ãªãã£ããã§ãããã¾ãæ©ä¼ãããã°è¦è¿ããã¨æãã¾ã
HTTPãæã§æ¸ãã¦å¦ã¶ ãã¡ã¤ã«ã¢ãããã¼ãã®ä»çµã¿
APMãã¡ããã¨ä½¿ããã¨ãããããã¤ã®ã¾ã«ãç¬èªgemãä½ã£ã¦ãã話