[00:00.00]NARRATOR: Listen to part of a lecture in a computer science class.[00:04.72] The professor is discussing software engineering.[00:08.48]MALE PROFESSOR We've been talking about the software development cycle, and today I'd like to move on to the next stage of that cycle ?testing ?and why finding bugs during testing is actually a great thing. [00:22.94]Ah, uh, th-the quality of a software product often relies heavily on how well it's been tested. Liz?[00:30.82]FEMALE STUDENT Um, just a quick thing. [00:33.97]"Bugs" is the word for problems in the program code, correct?[00:37.30]MALE PROFESSOR Yeah, in code or in a computer itself. [00:40.20]There's-there;s a bit of a story behind that term. [00:42.99]Um, back in the 1940s, when the computer industry was just starting, a group of computer scientists was working late one night, and there was a problem in one of the computer's circuits.[00:53.98] When they examined it, they found a five-centimeter-long moth caught in there.[00:58.80] Once they "debugged" the computer, it worked just fine. [01:02.80]And ever since then, all kinds of computer problems have been known as "bugs"?[01:07.52]Anyway, you want to find bugs while the software's still in the development and testing phases. [01:13.23]Finding them when the software product has already been put on the market can be quite embarrassing.[01:28.27]Generally speaking, every software development project has a group of testers and a group of developers. Jake?[01:25.80]MALE STUDENT And they're different people?[01:29.35]MALE PROFESSOR They're generally completely different groups of people.[01:32.33] My personal opinion is that they have to be different groups of people because developers often have a bias toward their own work. And it blinds them to certain problems that might be obvious to somebody else. [01:44.59]So it's always good to have a different set of eyes go in there and make sure that everything's tested properly.[01:50.61]OK, now here's the key... [01:52.57]developers and testers have different mentalities.[01:57.19] The mentality of the software developer is constructive...creative. They're spending long hours working together to create and build something new.[02:06.55]A software tester, on the other hand, their entire goal is to look at this product and find problems with it, to improve it. [02:14.87]Now this difference between the testers and the developers can lead to an environment where there's a bit of friction. [02:21.65]And that friction sometimes makes it difficult for the two teams to work together.[02:25.77]Um, there were two projects that I worked on a couple of years ago. [02:31.54]One, which I'll call Project Split... where the testing and development teams did not work well together.[02:38.47] And the other I'll call Project Unity ?during which both teams worked very well together.[02:42.90]Now during Project Split, we had defect meetings where the developers and the testers met together, um, uh, to discuss various problems and how they should be fixed. [02:55.59]And you could sense the conflict just by walking into the room. [02:59.28]Literally—the testers and the developers sat on opposite sides of the table. [03:04.88]Um, an-and the developers were very defensive about the feedback.[03:09.20]MALE STUDENT Well, if bugs are being pointed out they wouldn't be too happy, since it's their work.[03:13.94]MALE PROFESSOR Exactly. Now 'cause the two teams weren't working well together, the fixes were coming very, very slowly. [03:21.28]And you know, a lot of times when you fix bugs you introduce new bugs?or you discover bugs in other areas that only come to light because something's been changed. So fixing all those new additional bugs was also being delayed. [03:34.89]Um, the test process went on much longer than expected and we ended up having to put the product on the market with known bugs in it, which was obviously not ideal.[03:44.83]FEMALE STUDENT OK, and what about Project Unity?[03:48.96] How was it different?[03:50.06]MALE PROFESSOR Um, this was different because the two teams worked closely together. During the defect meetings, instead of putting up walls, [03:58.55]um, we didn't even talk about, you know, who should fix this, who was at fault. [04:03.40]We all acknowledged what needed to be fixed.
[04:05.94]So, if we had ten bugs, we said, "Hey, you know what, let's do this one first because this will expose another whole bunch of defects that we haven't even seen yet." So we were being proactive and effective.[04:18.32]And because we were so much more effective with our time, we were actually able to do more than just fix bugs ?we even put in some improvements that we hadn't planned.
名师1对1,深度分析薄弱项,高效提分