这三个类基本上只需要一行代码。
只用1行代码……打包!解决!
所有这些都是在20行代码中完成的。
最初它只有大约36行代码。
这两行代码违反了SLAP原则。
These two lines of code illustrate a violation of the SLAP principle.
上面代码段的最后一行代码将保存会话。
清单8显示完成该任务所需的两行代码。
Listing 8 shows the two lines of code needed to do all this.
只有大约 150行代码,还不错吧?
如果你已经测试了每一行代码你会怎么做?
How could you if you have tested virtually every line of code?
发布事件只需一行代码。
这是仅用一些行代码所写的非常强大的脚本。
实际上,比较本身只用一行代码就能够做到。
In fact, the comparison itself can be made with just one line of code.
最后三行代码实际地调用该类,并启动线程。
The last three lines of code actually call the class and start the threads.
输入如下的两行代码。
仔细看看第二行代码。
该函数的最后一行代码刷新表。
下两行代码指定函数。
下一节将对最后三行代码进行解释。
那么,这一行代码是干什么的呢?
但是,没有一行代码是由所有这个活动产生的。
But not a single line of code has resulted from all this activity.
这样您可以节省一两行代码。
第二行代码从事件获取菜单数据对象。
The second line retrieves the menu data object from the event.
以下的第四行代码负责这些。
这一行代码是干什么的啊?
第一行代码装载这个扩展。
注意:前面的三行代码通常显示为一行。
Note: The three preceding short code examples normally appear as single lines.
您甚至可以添加一行代码来突出显示不正确的字段。
You could even add a line of code to highlight the incorrect field.
您是否曾仅为了处理浏览器差别而编写几百行代码?
Have you written hundreds of lines of code just to handle browser differences?
对于其他补丁,平均每个补丁只需编写17行代码。
Of the remaining patches, special programming amounted to an average of 17 lines of code per patch.
对于其他补丁,平均每个补丁只需编写17行代码。
Of the remaining patches, special programming amounted to an average of 17 lines of code per patch.
应用推荐