I want to do little piece of code that's going to do planar geometry.
我想写一小段代码来做平面几何。
Why is this piece of code there?
这段代码是做什么用的?
这个代码稍微有点多。
So what does this line of code do?
这一行代码是干什么的啊?
And what line of code am I on now?
那我现在在伪代码的哪一行呢?
One line of code?! Yes, that's it.
只有一行代码?!是的,就是只有一行代码。
It's also many fewer lines of code.
同时也会减少代码量。
一个很长的代码块…… */
注意那三个代码块。
But it's a lot of code to write.
但是,有许多代码要编写。
What's happening in that line of code?
那行代码中发生了什么?
Well, just this line of code here.
看到这一行代码。
I'm looking at that piece of code.
我正在看这段代码。
The next slice of code handles the DSL.
下一个代码片段将处理DSL。
That's the kind of code I want to write.
这就是我想编写的那种代码。
Type in the following two lines of code.
输入如下的两行代码。
Look closely at the second line of code.
仔细看看第二行代码。
It's just a series of lines of code.
那只不过是一系列一行行的代码。
They also touch the least amount of code.
这些测试占用的代码量也是最少的。
The complete block of code is shown below.
完整的代码块如下所示。
The last bit of code renders the total row.
代码的最后一位呈现总行数。
That piece of code is the boot firmware.
这段代码就是引导固件。
TDD is about design and verification of code.
TDD是为了设计并验证代码。
Every single piece of code must be tested.
每段代码都必须经过测试。
Take the following snippet of code, for instance.
例如,采用以下代码片段。
Let the critical section of code complete its job.
使代码的关键部分完成其工作。
Listing 5 shows an application of code replacement.
清单5显示了一个代码替换的应用程序。
The key is consistency not so much quantity of code.
关键之所在与其说是代码质量,还不如说是一致性。
Again, imagine if I'm a writing a piece of code.
请再次想象一下我正在编写一段代码。
Again, imagine if I'm a writing a piece of code.
请再次想象一下我正在编写一段代码。
应用推荐