About EragonJ | About this blog
leave a comment
這裡面的Coding Standards講到很多以前看到還蠻重要的東西,
像是下面這個做法可以避免”==”寫成”=”所產生的BUG,算是還蠻好用的。
if('abc' == $var) ...
另外還有一個也還重要的就是
Self-explanatory flag values for function arguments
這幾個點大家可以看一下,其他的就比較偏個人的習慣了。
Source
Written by EragonJ
December 9th, 2009 at 3:24 pm
Posted in Notes
Tagged with Coding Standards, Wordpress, WP
Your donation would motivate me to make more incredible programs and write articles.
Programmers who don’t code in their spare time for fun will never become as good as those that do. — Stack Overflow
Programmers who don’t code in their spare time for fun will never become as good as those that do.