if (a > b)
return true
else
return false
true if a > b else false
依啲咪算好囉...宜家路人甲乙丙都可以做IT我有個例子,做code review 見到以下既java code
20k 入行無難度
int cost;
if (cost1 > cost2){
Cost = cost1;
} else if (cost1 < cost2){
Cost = cost 2;
} else {
Cost = cost1;
}
見到呢啲code 寫code review comment 話都無用,無得救,簡單複雜化到...
我成日做code review 見到依啲code
if (a > b) return true else return false
心入面諗WTF ????True if a > b else False