技术宅,fat-man

增加语言的了解程度可以避免写出愚蠢的代码

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

2015年6月13日 #

代码可读性的改良

摘要: 首先, 有这样的代码,逻辑是没错的,但是长而且可读性不好:message = subAction == "add" ? String.format(format, contentMap.get("owner"), contentMap.get("ownerHomeName")) :... 阅读全文

posted @ 2015-06-13 13:22 codestyle 阅读(556) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示