To sum up from the article,
PROS:
- Shortens dev. time
- more secured
- pretty coding
- widely supported
- trend (?!) - many people talk about it
CONS:
- Not for complex issue
- Not always necessary
- Not really a "native PHP" training
Rule of thumb: Tabs should be used at the beginning of the line for indentation, while spaces can be used mid-line for alignment.Comma of Array
Note the comma after the last array itemRegex
It’s most convenient to use single-quoted strings for regular expressionsEnd of Line / End of File
Remove trailing whitespace at the end of each line of code. Omitting the closing PHP tag at the end of a file is preferred.SQL Formatting
$wpdb->prepare() is a method that handles escaping, quoting, and int-casting for SQL queries.
- “Fixes bug described in #20″
- “XYZ_Class test() method visibility to public to fix errors in #20″
因著不同事務要處理,最近的晚上已經實行不到九時半入睡的習慣;結果身體一直處於亞健康狀態,早上超級眼瞓(!!!!!),幾乎睜不開眼T.T 這種掙扎中的狀態真痛苦…… 結果星期中真的不行了,放下一切要處理的事務,吃完飯八時半就去睡了,而終於……終於!第二天早上找回了靈魂,工作不用再因...