Home
Posts
About Me
What you think is what you get
Home
Posts
About Me
Menu
All posts by: zgh149
zgh149
eclipse plugins
使用 Command Line 執行 Eclipse Format
by
zgh149
30 6 月, 2016
0
避免違反 code standard,在 git push 之前,我一定小心翼翼的檢查每個要 push 的 j......
git 使用紀錄
git 建立自定義指令(git customize command)
by
zgh149
21 6 月, 2016
0
使用 git branch 指令建立 branch 有個小缺點,就是branch name 不可以摻雜空格。e......
Uncategorized
CheckStyle 下載 編譯 執行
by
zgh149
20 6 月, 2016
0
這裡紀錄測試後可以成功動作的部份。 使用Command Line執行 java -jar /path/of/c......
Thread
java static field synchronization in Multi-Thread
by
zgh149
24 5 月, 2016
0
這是對在 multi-thread 中 static field 同步化的紀錄。 以下是 TestThread......
Design Pattern
單例模式中資料的同步化
by
zgh149
10 5 月, 2016
0
單例模式的基本介紹 雖然單例模式中的 HungerSingleton 可以保證只產生一個實體,但其中的資料還是......
Coding Principle
撰寫變數的原則(Variable Principle)
by
zgh149
5 5 月, 2016
0
分別從 Code Complete2 , Clean Code , The art of readable c......
Refactoring
簡化巢狀條件式的技巧(How to fix nested condition)
by
zgh149
15 4 月, 2016
0
巢狀條件式通常為為複雜度高的區域。 以下紀錄簡化巢狀條件式的技巧 1.巢狀 if 轉換成 if then el......
Coding Principle
計算函式複雜度(by decision points – Tom McCabe)
by
zgh149
15 4 月, 2016
0
使用 Tom McCabe 的 decision points(決策點)計算函式複雜度。 Step 1.從函式......
Coding Principle
布林表達式(Boolean Expression)
by
zgh149
15 4 月, 2016
0
布林表示式: 1.不要用數字(0,1)來表示布林邏輯,改用boolean。 2.使用隱式表達。e.g. if(......
Coding Principle
撰寫迴圈的原則(loop principle)
by
zgh149
15 4 月, 2016
0
Java 迴圈表達的方式共有 while,do-while,for,for-each。 以下列出撰寫迴圈需要注......
15
16
17
18
19