Please enable JavaScript.
Coggle requires JavaScript to display documents.
Clean Code (命名 (有意义的区分 (a1 a2 区分一般无意义, 不要单纯为了满足编译器,还要尽量满足读者, 废话:Product,…
Clean Code
命名
-
-
有意义的区分
-
-
废话:Product, ProductInfo, ProductData
-
-
-
-
统一概念(fetch, retrieve, get; controller, manager)
-
-
-
函数
-
-
-
-
-
-
-
-
HOW
-
-
打磨:extract method, change name, remove duplicates, 缩短、重新安置方法,extract class;且保持单元测试通过
-
-
-
-
-
-
-
-
-