《clean code》第一章 有意義的命名

1.名副其實 //消逝的時間以日計 int d; int elapsedTimeInDays; 2.避免誤導 hp,aix,sco是UNIX平臺的專有名稱 o與0;1與l  相似 3.做有意義的區分 int  a1,a2,a3.... getActiveAccount(); getActiveAccounts(); getActiveAccountInfo(); 4.使用讀的出來的名稱 int 
相關文章
相關標籤/搜索