程序开发七宗罪 - The 7 deadly sins of software development

http://www.infoworld.com/d/developer-world/the-7-deadly-sins-software-development-872?page=0,1

 

Lust (overengineering)

- 不要过度设计

- Shipping is a feature . A really important feature. Your product must have it.

 

Gluttony (failing to refactor )

- 持续重构代码

- Clients may see only the new features in each release, but over the long term, they'll thank you for keeping off the fat.

 

Greed (competing across teams)

- 避免重复开发

- Share and share alike should be your motto

 

Sloth (not validating inputs)

- 接口/服务 输入验证

- Remember, a Web form that uses JavaScript to validate its inputs can be easily sidestepped by disabling JavaScript in the browser or not using a browser to access it at all.

- 这个.... 是个问题,不过算到七宗罪里,是不是有点过?

 

Wrath (not commenting code)

- Code is its own best documentation of what it does ; comments should be there to explain the why

- 代码的可读性并不能解决业务的逻辑复杂性

 

Envy (not using version control)

- 持续版本控制,

- 不一定非要是代码。编程手册、技术文档、项目建议、人事安排为什么不可以版本控制呢?

 

Pride (not unit testing)

- 持续单元测试

- 测试先行

- Computational science: ...Erro r, 不知道相不相关


 

读后总结:

问题跟踪、结对编程、单元测试、重构代码、版本控制

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值