ããã«ã¡ã¯ããã¾ãã§ãã
å æ¥ 2024/01/12~13 ã«è¡ããã PHP ã«ã³ãã¡ã¬ã³ã¹åæµ·é 2024 ã«ãã¹ãã¼ã«ã¼ã»ã¹ã¿ããã»ã¹ãã³ãµã¼åè³ï¼ï¼ãã¼ã¹ï¼ã»ä¸è¬åå æ ã¨ãã¦ãã¤ã³ãã£ãããã«ã¼ãã§åå ãã¾ããï¼
å人çã«å®èµ°ããææ³ã§ãããæ¬å½ã«åå è ã»ã¹ã¿ããå ±ã«ã¢ããçãä¸ãã£ãã«ã³ãã¡ã¬ã³ã¹ã§ããã
äºååç¥ã®è¨äºã¯ãã¡ãã§ãã
æå¹ã»ä»å°ã主ã¨ããæ´»åãè¡ã£ã¦ããå¼ç¤¾ã¤ã³ãã£ãããã«ã¼ãã¨ãã¦ãåæµ·éï¼æå¹ï¼ã§è¡ããã大è¦æ¨¡ãªã«ã³ãã¡ã¬ã³ã¹ã¯é常ã«éè¦ãªãã¸ã·ã§ã³ãå ãã¦ãã¾ãããã®ãããä»åã¯ã¹ãã¼ã«ã¼ã»ã¹ã¿ããã»åè³çåºæ¥ãéãã®çãä¸ããæ å½ãããã¾ããï¼ãããã ã£ãã§ããããï¼
çµæã¨ãã¦ãæ¥å ´ãããæ¹ã ï¼éç£åããæ²ç¸ã¾ã§ï¼ï¼çããã¨ã¦ãå å®ããé¡ããã¦ããªã¼ã¨çµããéã«è¦ã¦ãã¾ããã®ã§ãä»åã¯å¤§æåã ã£ãã®ã§ã¯ãªããã¨æãã¾ãï¼
ç°¡åã«ã§ã¯ããã¾ãããåæ ã¨ãã¦ã®ã¾ã¨ããæ¯ãè¿ã£ã¦ã¿ããã¨æãã¾ãã
ã¹ãã¼ã«ã¼ã¨ãã¦
ä»åã¯é ä¿¡ãããåçãªç §æããã1ãã©ãã¯(=åå è å ¨å¡ãè´ãã¦ãã)ã¨ãã¹ãã¼ã«ã¼ã¨ãã¦ã¯æ¯è¼çç·å¼µãããããªç»å£ã§ãããããããã¹ã¿ããã®çãããåå è ã®çããã温ããè¿ãã¦ãã ãã£ãã®ã§ãè¯ãçºè¡¨ã«ãªã£ãã®ã§ã¯ãªããã¨æãã¾ãã
é ä¿¡ã®ã¢ã¼ã«ã¤ãã¯ãã¡ããããã¤ã§ã確èªåºæ¥ã¾ãã®ã§ãè¦éããæ¹ã¯æ¯éã©ããã
ããããã¯åç»å£ãã¨ã®ææ³ã§ãã
sji: PHP ã§ä½ãããã²ãã¢ããè²ã ç´¹ä»ããï¼èªä½ä»ä½å«ãã¦ï¼
家åºäºæ ã«ããä»åãæ¥é½ããå¾ãã«4æ³å ããã¦ã¿ãã¬ããã§åä¾åãåç»ãè¦ã¦ããç¶æ³ã§ç»å£ãããã¨ã¨ãªã£ãã®ã§ããã2 åãããé³éãä¸ãã¦ããã®ããããã¡ãã£ã¨é³å°ããã§ãã¾ãï¼ãã¨æ¯ãè¿ã£ã¦ãããããã§æ¸ã¿ã¾ãããé ä¿¡ãè¦ã¦ããæ¹ãä¼å ´ã®å¾ãã®ã»ãã®å¸ã®æ¹ã¯ããªãã§ããã¤æ¥ã«ç¬ããªãããã¼ã¯ãä¸æãã¦å¾ããåãå§ãããã ï¼ãã¨ä¸æè°ã«æãããããããã¾ãããé ä¿¡ãè¦è¿ãã¨å®éã¯ãã»ã©å¤§ããªé³ã§ããªãã£ãããã§ãããåå ããã ããçæ§ãæ¥ãªåé£ãåå ã«ãæè»ã«ã対å¿ãã ãã£ãã¹ã¿ãããã³ãã¥ããã£ã®çæ§ããããã¨ããããã¾ããã
è¦è´ãã¦é ããæ¹ã ã¯ããã²ãã²ãã£ã¼ãããã¯ããããããé¡ããã¾ãï¼
ãã¾ã: ãDIãã¨ä»²è¯ããªã
ä»å㯠Dependency Inversion(çºé³ã«æ°ãä»ãã) ã«ããã¦çµãè¾¼ãã§ã話ãã¾ãããããããã¨ãããã®è¾ºãã¡ããã¡ããã¦ã¦(SOLIDå ¨ä½ã¨æ··ãã£ãã)ããããã£ã¦ãªãã£ãã®ãä»åå°ãèªã¿ã¨ããããï¼ããã·ã³ãã«ã§ããããããè³æã§ãé ã®æ´çãåºæ¥ã¾ããï¼ããªã©ãçºè¡¨å¾è²ã ã¨ã声ããããã ãã¦ã¨ã¦ãåé¿ãè¯ãã£ãããã«æãã¦ãã¾ãããæ¸ è´ãããã¨ããããã¾ããã
è¦è´ãã¦é ããæ¹ã ã¯ããã²ãã²ãã£ã¼ãããã¯ããããããé¡ããã¾ãï¼
kerokero: æ°ç±³PHPerã§ãããphp-srcãã¡ãã£ã¨ã ãèªãã¡ãã£ã件ã«ã¤ãã¦
ä»åã®çºè¡¨ã§ã¯PHPã®å¦çç³»ã§ãããphp-srcãã®ä¸èº«ã調ã¹ã¦ã¿ãã¨ãããã¼ãã§ã話ããã¦ããã ãã¾ãããå®éã«èª¿ã¹ã¦ã¿ãã¨ãã¯ãé£ãããphp-srcã«é¢ããç解度ã0ãã1ã«ãããã¨ã®é£ãããæ¹ãã¦å®æãã¾ããã
ã¾ã ã¾ã åãããªããã¨ã ãããªã®ã§ããããããå¼ç¤¾ã®ãã¡ãã¡ã«åºæ²¡ãã¦ããã¤ãã¤ãPHPerã®çããã«æããã¤ã¤é å¼µã£ã¦ããã¾ãðª
ãæ¸ è´ãããã¨ããããã¾ããï¼
è¦è´ãã¦é ããæ¹ã ã¯ããã²ãã²ãã£ã¼ãããã¯ããããããé¡ããã¾ãï¼
ã¹ã¿ããã¨ãã¦
miio
ä»åã¯ã©ã¤ããã¹ã¢ã¼ã¯ãå¶å¾¡ãããããã¼ãã¸ã¥ã¢ã«ãä½ã£ãããå®è¡å§å¡é·ãããããã¨èãã¦ä¼å ´ãçéã§æããããã¾ãã
ã©ã¤ãã¯GrandMA2ã¨ããããåãã®ãã¼ã«ãå³ãå·¦ããããã触ãã¾ãããããªãã¨ãå½¢ã«ãªã£ã¦ããã£ãã§ã
å¤ãã®PHPerããã«æ¥½ããã§ããã ããããã§ãå人çã«ã¯1ã¤ã®ä¼èª¬ã®ã«ã³ãã¡ã¬ã³ã¹ãããªãããªã¨ã¾ã§æã£ã¦ãã¾ãï¼2åç®ã§ããèªä¿¡ããªãï¼ï¼
ãããã¨ããããã¾ããï¼
ãã ããã
åæ¹ã®ã¡ã¤ã³/ãµãããã¸ã§ã¯ã¿ã¼ã¸ã®æ ååºãã¨ãé
ä¿¡ãããã°ãã¾ãã
ãããªã«æ¬æ ¼çã§å¤§è¦æ¨¡ãªãã®ã¯åãã¦ã§ããããæ¬å½ã«ãããã¨ãå¤ãã¦é ãã±ãããããã¨ãããã¾ãããããããã¨ãã§ãã¦è¯ãã£ããªã¼ã¨æãã¾ãã
ã¨ã³ã¸ãã¢A
å¤ãã®æ¹ãæ¥å ´ããã大ããã«ã³ãã¡ã¬ã³ã¹ã§ã«ã¡ã©ãã³ãæ å½ãããã¨ã¨ãªãç·å¼µãã¦ãã¾ãããç´ äººãªããé å¼µããã¦ããã ãã¾ãããã«ã¡ã©ï¼å°æã¡ã§ä¼å ´ä¸ãèµ°ãåã£ã¦ãããæ¥é ã®ãã¹ã¯ã¯ã¼ã¯ã«ããéåä¸è¶³ãç¥ãå ¨èº«ãã ãã ãã«çèçã§ãï¼
ã¨ã³ã¸ãã¢B
ã«ã¡ã©ãã³ã¨ãã¦åå ããã¦ããã ãã¾ããã
ç»å£è
ã¨ã¹ã¿ããããæ¥å®¢ã®çæ§ã®ç±æã¨æ¢ç©¶å¿ã«å§åããã£ã±ãªãã®äºæ¥éã§ããã
PHPã¨ã¯20年以ä¸ã®ä»ãåãã§ãããã¾ã ã¾ã åå¼·ããªãã¦ã¯ãããªããªã¨ãããããã®ã¢ããã¼ã·ã§ã³ãé ãã¾ããã
決ãã¦å
è¦ãããªããæ°è»½ã«åå ã§ãã¦æ¥½ãããã¤ãã³ãã§ãã®ã§ãã¾ã åå ããããã¨ã®ãªãæ¹ã次åã¯æ¯éãåå ãã ãã!
ã¹ãã³ãµã¼ã»ãã¼ã¹ã¨ãã¦
æ¡ç¨æ
å½ã®hagiã§ããå½æ¥ã¯ãã¼ã¹ã«å¤§å¢ãè¶ãããã ããããã¨ããããã¾ããï¼
ã¤ã³ãã£ãããã«ã¼ãã¯ãé»ææããå°åã®æè¡ã³ãã¥ããã£ã«æ¯ãããã¦ããä¼ç¤¾ã§ãã
ç§ãã2013å¹´ã«ã«ã³ãã¡ã¬ã³ã¹ã®ã¹ãã³ãµã¼ãã¼ã¹ã«ããç¾æ¾äºä¼é·ã¨ã話ãããã¨ãå
¥ç¤¾ã®æ±ºãæã«ãªãã¾ããã
ã¹ãã³ãµã¼ã»ãã·ã§ã³ã§ã¯æ¥é½ç¤¾é·ã®ä»£æã§ã話ãã¾ããã
ä»å¹´ã® #phpcondo ã¯æ®µåããé°å²æ°ãç´ æ´ãããã£ãã§ããï¼
ä»å¾ã¯ç§ããã³ãã¥ããã£ã次ä¸ä»£ã«ä¼ãã¦ããã¹ããã¹ãã¼ã«ã¼ã¨ãã¦ãå¿åãããã¨æãã¾ãï¼
ãããã«
ãã®ãããªæ©ä¼ãä½ã£ã¦ãã ãã£ãå®è¡å§å¡é·ã®ãã¾ã¨ãããããã¦å ¨é¢ä¿è ã®æ¹ã ã«å¤å¤§ãªæè¬ããããã¾ãï¼ãããã¨ããããã¾ããï¼
ã¾ããä»åã®ã«ã³ãã¡ã¬ã³ã¹ã§å¼ç¤¾å¡ã¨è§¦ãåã£ã¦ãã ãã£ãçæ§æ¹ãããã§åãã¦å¼ç¤¾ãç¥ã£ãæ¹ãããã£ãããã¨æãã¾ããå¼ç¤¾ã§ã¯ããã¤ã§ãæ¡ç¨ãè¡ã£ã¦ãã¾ãã®ã§ãã¨ã³ã¸ãã¢ã§èªç±ã«åãããã¨ããæ¹ã¯ã¬ããæ¡ç¨æ å ±ãã¼ã¸ã¸ï¼