Testing Is the Engineering Rigor of Software Development
来源:互联网 发布:pos机小票打印软件 编辑:程序博客网 时间:2024/06/05 09:51
Testing Is the Engineering Rigor of Software Development
Neal Ford
DEVELOPERS LOVE TO USE TORTURED METAPHORS when trying to explain what it is they do to family members, spouses, and other nontechies. We fre- quently resort to bridge building and other “hard” engineering disciplines. All these metaphors fall down quickly, though, when you start trying to push them too hard. It turns out that software development is not like many of the “hard” engineering disciplines in lots of important ways.
Compared to “hard” engineering, the software development world is at about the same place the bridge builders were when the common strategy was to build a bridge and then roll something heavy over it. If it stayed up, it was a good bridge. If not, well, time to go back to the drawing board. Over the past few thousand years, engineers have developed mathematics and physics they can use for a structural solution without having to build it to see what it does. We don’t have anything like that in software, and perhaps never will because software is in fact very different. For a deep-dive exploration of the comparison between software “engineering” and regular engineering, “What is Software Design?”, written by Jack Reeves in C++ Journal in 1992, is a clas- sic.* Even though it was written almost two decades ago, it is still remarkably accurate. Reeves painted a gloomy picture in this comparison, but the thing that was missing in 1992 was a strong testing ethos for software.
* http://www.developerdotstar.com/mag/articles/reeves_design.html
166 97 Things Every Programmer Should Know

Testing “hard” things is tough because you have to build them to test them, which discourages speculative building just to see what will happen. But the building process in software is ridiculously cheap. We’ve developed an entire ecosystem of tools that make it easy to do just that: unit testing, mock objects, test harnesses, and lots of other stuff. Other engineers would love to be able to build something and test it under realistic conditions. As software devel- opers, we should embrace testing as the primary (but not the only) verifica- tion mechanism for software. Rather than waiting for some sort of calculus for software, we already have the tools at our disposal to ensure good engineering practices. Viewed in this light, we now have ammunition against managers who tell us “we don’t have time to test.” A bridge builder would never hear from his boss, “Don’t bother doing structural analysis on that building—we have a tight deadline.” The recognition that testing is indeed the path to repro- ducibility and quality in software allows us as developers to push back on arguments against it as professionally irresponsible.
Testing takes time, just like structural analysis takes time. Both activities ensure the quality of the end product. It’s time for software developers to take up the mantle of responsibility for what they produce. Testing alone isn’t sufficient, but it is necessary. Testing is the engineering rigor of software development.
- Testing Is the Engineering Rigor of Software Development
- Testing Is the Engineering Rigor of Software Development
- The BOOkList of Software Engineering
- The scope of software engineering
- Software Testing: Testing Across the Entire Software Development Life Cycle
- The art of software testing
- The art of software testing
- Software Engineering and the Art of Design
- Chapter 3 The Realities of Software Testing
- Principles of Software Testing for Testers-Module 1:Software Engineering Practices
- Web Engineering: The Discipline of Systematic Development of Web Applications
- The Uniqueness of Software Engineering: The Dual Formalizations
- The Iron Laws of Software Development
- The Definitive List of Software Development Methodologies
- Software Engineering is NOT an Engineering
- Software Engineering is Dead …
- (Development)Software Engineering:Theory and Practice
- Types of software testing
- spring mvc +Mybatis3.1 整合的时候异常
- spring mvc 批量上传+文件上传
- java 短连接+MD5加密短链接
- java 图片 批量 压缩 +全部压缩
- Lucene用到的oscache,记录下来
- Testing Is the Engineering Rigor of Software Development
- 数字精确运算BigDecimal常用方法
- Thinking in States
- 数字精确运算BigDecimal常用方法
- solr 3.5 配置及服务器设置
- Two Heads Are Often Better Than One
- androidstudio/IDEA文件类型图标
- jdbc防止sql注入-PreparedStatement
- jsp上传下载+SmartUpload插件上传