Home
Posts
About Me
What you think is what you get
Home
Posts
About Me
Menu
Home
Coding Principle
撰寫變數的原則(Variable Principle)
分別從 Code Complete2 , Clean Code , The art of readable c......
by
zgh149
5 5 月, 2016
0
Refactoring
簡化巢狀條件式的技巧(How to fix nested condition)
巢狀條件式通常為為複雜度高的區域。 以下紀錄簡化巢狀條件式的技巧 1.巢狀 if 轉換成 if then el......
by
zgh149
15 4 月, 2016
0
Coding Principle
計算函式複雜度(by decision points – Tom McCabe)
使用 Tom McCabe 的 decision points(決策點)計算函式複雜度。 Step 1.從函式......
by
zgh149
15 4 月, 2016
0
Coding Principle
布林表達式(Boolean Expression)
布林表示式: 1.不要用數字(0,1)來表示布林邏輯,改用boolean。 2.使用隱式表達。e.g. if(......
by
zgh149
15 4 月, 2016
0
Coding Principle
撰寫迴圈的原則(loop principle)
Java 迴圈表達的方式共有 while,do-while,for,for-each。 以下列出撰寫迴圈需要注......
by
zgh149
15 4 月, 2016
0
32
33
34
35
36