代码整洁之道——童子军军规

美国童子军一条简单的军规:让营地比你来时更干净。

清理代码也许只是改好一个变量名,拆分一个有点过长的函数,消除一点点重复代码,清理一个嵌套if语句。

这是让项目代码随着时间流逝而越变越好的最专业的做法。

持续改进也是专业性的内在组成部分。

The boy scouts of America has a simple rule: make the camp cleaner than when you arrived.

Cleaning up the code might be as simple as changing a variable name, splitting a function that is a little too long, eliminating a little bit of duplicate code, and cleaning up a nested if statement.

This is the most professional way to make your project code better over time.

Continuous improvement is also an integral part of professionalism.

转载于:https://www.cnblogs.com/stephen-java/p/10533926.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值