基本工具的使用 - Wangxiaoman/tech-note GitHub Wiki
纯文本的威力
Tip20 Keep Knowledge in Plain Text(使用wiki、github、evernote等)
Shell
Tip21 Use the Power of Command Shell
- 性能相关 - Top、Free、dh、Netstat
- 文本操作 - AWK、SED
- 常用命令 - Find、Cp、Grep
强力编辑器
Tip22 Use a Single Editor Well
- vm
- sublime - 列模式,替换
- wiki
- evernote
源代码的控制
Tip23 Always Use Source Code Control(github、gitlab、bitbucket)
调式
bug的起源:COBOL发明者在继电器里抓到的蛾子
Tip24 Fix the Problem, Not the Blame(发现问题,处理是第一位)
Tip25 Don't Panic(保持冷静,才能解决问题)
Tip26 "Select" Isn't Broken
Tip27 Don't Assume It,Prove It
分析Bug
- 提出的Bug是结果还是症状
- Bug怎样能描述出来
- 单元测试是否完整
- 系统中是否还有其他相似Bug
解决Bug
- 时刻关注变化
- 利用三方工具
- 平静情绪,使用debug工具、合理利用日志、项目模块化、二分法定位
代码生成器 - 利用代码来写代码
Tip29 Write Code That Writes Code
- 一次开发,一直使用
- 可以减少工作量
- 可以减少Bug量(代码生成器已经稳定的情况下)