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″
分數只是學習旅程中的一個階段性記號, 絕對不是人生的終點 。 [ 1 , 2 ] 為什麼分數不是終點? 分數是起點而不是結果 :考試與成績單是用來檢視學習盲點的工具,而不是用來定義一個人價值的最後審判。 能力比高分更持久 :高分或許能敲開某扇門,但真正能讓人走得長遠的,是面...