èªåãPHPã使ãã¨ãã®æ³¨æç¹
- ãªãã¹ãZend Framework PHPæ¨æºã³ã¼ãã£ã³ã°è¦ç´ã使ã
- ã¢ã¯ã·ã§ã³ã¯ã©ã¹ã¨ã使ãæ¨ã¦ãªå ´åã¯é©å½ãªãã¨ããã
- å
é¨ã³ã¼ãã¯UTF-8ã使ã
- ãã¼ãã«ã®è¡¨ç¤ºãjavascriptã¨ã®é£æºããªã©ãç°¡åã«ãªãã®ã§
- type hintingãç©æ¥µçã«ä½¿ã
- è¤éãªé
åã¯ãªãã¹ããªãã¸ã§ã¯ãã§
- newã®ããã©ãããã¨é åã®ãããããã®ãã¬ã¼ããªã
- SQLã¯å
¨ã¦O/Rãããã¼ã§
- è¤éãªSQLãç´æ¥å®è¡ããã¨ãããO/Rãããã¼ã®bindæ©æ§ã使ã
- HTML_Template_Flexyã使ã
- æè¿ã¯æµè¡ã£ã¦ãªãï¼çµæ§åªç§ã ã¨æããã ãã©
- é¢æ°ãé·ããªã£ã¦ãåå²ããªã
- DRYã®ååã«å¾ãéããé·ããªã£ã¦ããã¾ããªã
- ãã®ä»£ããDRYã«éåããå¦çãå«ã¾ããæç¹ã§ãªãã¡ã¯ã¿ãªã³ã°ãè¡ã
- æ®æ®µä½¿ã£ã¦ãããã£ã¹ãã¬ã¤ã大ãããããã¾ã¨ã¾ã£ã¦ããæ¹ãè¦ãããã®ãã
- DRYã®ååã«å¾ãéããé·ããªã£ã¦ããã¾ããªã
- ã°ãã¼ãã«å¤æ°ã¯ä½¿ããªã
- å¦çã¯ã°ãã¼ãã«ãªå ´æã§ãã¾ã«è¡ããã¨ããã
- å®æ°ã¯ãªãã¹ãconstã«
- ãã¼ã¸ã§ã³ç®¡çã®ç°å¢ãæ´ãã
- ã¡ãã£ã¨ããä¿®æ£ãèªåçã«åæ
- åãã·ã¹ãã ãè¤æ°ããå ´åã¨ã楽ã¡ã
- ç¶æ¿ã¯ä½¿ããªã
- ããã¯ä½¿ãã¹ãããªã¨æã£ã¦ãã¦ã度éãªãä¿®æ£ã§ããããã¨ã«ãªã
- ããã¯èªåã®åä¸è¶³ãªã®ã ã
- ããã¯ä½¿ãã¹ãããªã¨æã£ã¦ãã¦ã度éãªãä¿®æ£ã§ããããã¨ã«ãªã
- ãã¬ã¼ã ã¯ã¼ã¯ãã©ã¤ãã©ãªã使ãããããªãä½ã
- ããã使ãæ¹ãä¸æããªã£ã¦ãå ¨ãèªåã®åã«ãªããªã
- ä½ãã使ãã ããªã®ã¯æ¥½ãããªã
- ãããããã¨ãã®ããä¼ç¤¾ã«ããã®ãçæ³ã ã¨æã
- ä½ã£ãå¾ã«ããããã£ã±ãæ¢åã®ãã®ã¯åããªããã¨æã£ã¦ä½¿ãã®ã¯è¯ã
å ã¯ããã
* ã³ã¼ãã£ã³ã°è¦ç´ãå®ããçµç¹ã«ã³ã¼ãã£ã³ã°è¦ç´ããªããªããZend Framework PHPæ¨æºã³ã¼ãã£ã³ã°è¦ç´ [zend.com]ã使ãããªã¬æµã³ã¼ãã£ã³ã°ã¹ã¿ã¤ã«ã¯ç¦æ¢ã
http://slashdot.jp/askslashdot/comments.pl?sid=389009&cid=1290697
* å é¨ã³ã¼ãã«ã¯EUC-JPãUTF-8ã使ããå ¥åºåãã§ããã ãShift JISãé¿ãããShift JISã使ãå ´åã«ã¯2byteç®ã«0x5Cãå«ãæåã®åä½ãå¿ããã«ç¢ºèªããã
* éçºç°å¢ã®è¦åã¬ãã«ãE_STRICTã«ãããæ¬çªç°å¢ã§ã¯display_errorsããªãã«ããã
* register_globalsãmagic_quotesã¯ãªãã«ããã
* type hintingãç©æ¥µçã«ä½¿ãã
* ã¹ã³ã¼ãã®é·ãé åãã¯ã©ã¹ã§ã©ããããã
* ãã¬ã¼ã³ãã¼ã·ã§ã³ã¨ãã¸ãã¯ãåå²ãããã¨ããã¬ã¼ã³ãã¼ã·ã§ã³ã«ã¯å¤æ°ã¾ãã¯é¢æ°ã®åºåã¨ã«ã¼ã以å¤ã®ãã¸ãã¯ãæ®ããªããã¨ããã¸ãã¯ã®ä¸ã§ç´æ¥åºåãããªããã¨ããã¸ãã¯ã¯SimpleTestã使ã£ã¦åä½ãã¹ããããã¨ã
* SQLæã«å¤æ°ãåãè¾¼ãã¨ãã«ã¯ãã¬ã¼ã¹ãã«ãã使ãï¼PDOã®prepareã¨bindParamsï¼ã
* ãªã¯ã¨ã¹ãããåå¾ãããã©ã¡ã¼ã¿ãåºåããã¨ãã¯htmlspecialcharsã使ãã
* é¢æ°ãé·ããªã£ããåå²ããï¼composite methodãã¿ã¼ã³ã使ããï¼ã
* ã°ãã¼ãã«å¤æ°ã使ãã®ã¯é¿ããã
* å¤æ°ãå®æ°ã¨ãã¦ä½¿ããªããå®æ°ã¯defineã§å®ç¾©ããããconst宣è¨ããã
* 常ã«ææ°ãã¼ã¸ã§ã³ã§ãã¹ãã§ããç°å¢ãä½ãããµã¼ãã¹ã¤ã³å¾ããã¼ã¸ã§ã³ã¢ããã«å¯¾å¿ããããã®äºç®ãã¨ã£ã¦ããï¼ãµã¼ãã¹ã¤ã³å¾ã«ãéããããããªããªããPHPã¯é¿ããã¹ãï¼ã
* ç¶æ¿ã使ããªããã¯ã©ã¹å³ãããã¯æ¸ãã¦ããï¼åã«ã³ã¼ããåå©ç¨ãããã ããªãã移è²ãæ¤è¨ãããã¨ï¼ã
* åURLã«ããããã©ã¡ã¼ã¿ã¨ãã®é¾å¤ãææ¸åãããã¨ããã©ã¡ã¼ã¿ã®é¾å¤ã®å¢çç·ã«ã¤ãã¦ã½ã¼ã¹ã¬ãã¥ã¼ãããã¹ããããã¨ã
* æ¢åã®ãã¬ã¼ã ã¯ã¼ã¯ãå¦ç¿ãããã¨ã«æè³ãããã¨ï¼å¦ç¿ã³ã¹ããå«ã£ã¦èªå·±æµã®ãã¬ã¼ã ã¯ã¼ã¯ãä½ããã¨ã¯ããã°ãä½ããããã¨ã«ãªãã®ã§ããã£ã¦ã³ã¹ãé«ã«ãªãï¼ã
* PHPãã使ããªãä½æ¥è ã®ææç©ã¯ãã¾ãã«ã¬ãã¥ã¼ãããã¨ã
* è¨è¨ãéè¦ãããã¨ã
* ã³ãã¼ï¼ãã¼ã¹ãããã°ã©ãã³ã°ã®åããçºè¦ãããããã®ã³ã¼ããæ¸ãã人ã«ããã°ã©ãã³ã°ã®åºç¤ãæãããã¨ã
* ãªãã¡ã¯ã¿ãªã³ã°ã®æéãã¹ã±ã¸ã¥ã¼ã«ã«å ¥ãããã¨ã
* require/includeãæ¡ä»¶æãé¢æ°å®£è¨ã®ä¸ã«è¨è¿°ããªããã¨ã
- åURLã«ããããã©ã¡ã¼ã¿ã¨ãã®é¾å¤ãææ¸åãããã¨ããã©ã¡ã¼ã¿ã®é¾å¤ã®å¢çç·ã«ã¤ãã¦ã½ã¼ã¹ã¬ãã¥ã¼ãããã¹ããããã¨ã
- ãã¬ã¼ã³ãã¼ã·ã§ã³ã¨ãã¸ãã¯ãåå²ãããã¨ããã¬ã¼ã³ãã¼ã·ã§ã³ã«ã¯å¤æ°ã¾ãã¯é¢æ°ã®åºåã¨ã«ã¼ã以å¤ã®ãã¸ãã¯ãæ®ããªããã¨ããã¸ãã¯ã®ä¸ã§ç´æ¥åºåãããªããã¨ããã¸ãã¯ã¯SimpleTestã使ã£ã¦åä½ãã¹ããããã¨ã
ããã¯éè¦ã ã
ãã¨ã§èããã