Skip to Content
程序员的38堂成长课
book

程序员的38堂成长课

by Pete Goodliffe
January 2022
Beginner to intermediate
314 pages
6h 55m
Chinese
Posts & Telecom Press
Content preview from 程序员的38堂成长课
74
10
10.5
 结论
调试不容易,但这是我们的过错,因为是我们制造了
bug
。对所有程序员来说,高效调试
都是必不可少的技能。
思考题
1.
评估你在调试代码上花的时间。这里面应该包括所有没有编写新代码的活动。
2.
你是花更多的时间调试新编写的代码,还是对现有代码进行调整?
3.
单元测试的存在是否会改变你花在调试上的时间或调试方式?
4.
以编写不含
bug
的软件为目标现实吗?这是可以实现的吗?什么时候需要不包含
bug
软件?是什么决定了产品中可以接受的
bug
数量?
拓展阅读
5
章讨论了在旧代码中发现
bug
时,你应当重新评估之前的工作。
9
章说明了大多数
bug
是由于没有考虑到代码控制流中的所有可能条件而导致的。
11
章讲述了单元测试可以用来记录并帮助你修复
bug
,防止其将来反复出现。
立刻行动
下次遇到
bug
时,尝试用一种更有条理的方法来进行分析。如何使用捕获、二分法和
更强大的工具来更有效地跟踪错误?
(调)bug
如果调试程序是移
除bug的过程……
那么编写程序就是把
bug放进来的过程
bug
追踪
75
我不是在找bug
比那更糟
代码里的bug比螃蟹都大
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

管理Kubernetes

管理Kubernetes

Brendan Burns, Craig Tracey
Python应用开发指南

Python应用开发指南

Posts & Telecom Press, Ninad Sathaye
解密金融数据

解密金融数据

Justin Pauley

Publisher Resources

ISBN: 9787115577948