They take time to read, and they spread out the actual code on the screen, so you can have less of it on your monitor to inspect at one time.
因为注释需要时间去研读,而且它们分布于屏幕上的实际代码中的不同位置,所以在显示器上一次只能看少许的注释。
Even if your team has a different methodology, most of the time you are the one in charge of the way you code, and this is where refactoring comes along.
即使你的团队采取的方法别出蹊径,但在大多数时候,总是由你来负责管理编码方式,这时就是运用重构的时机。
The code in this article is actually non-vector (also known as scalar) code, meaning that it only works with one value at a time.
本文中的代码实际上是非向量的(即标量)代码,这意味着一次只处理一个值。
By using lightweight code review techniques, developers can review code in one-fifth the time needed for full, formal code reviews.
通过使用轻量级代码评审技术,开发员只需要花费五分之一的时间就可以进行全面且规范的代码评审工作了。
During deployment code generation time (Step 7), you selected one or more inbound binding types for enabling clients to access the process.
在部署代码生成过程中(步骤7)为启用访问流程的客户端,选择一个或多个内置绑定类型。
This one-time code delivery to the browser is done when the bank teller visits the URL for this application.
这个一次性的代码传递过程发生在银行出纳员访问这个应用程序的url时。
One of the benefits of this approach is the ability to tune queries at deployment time without making code changes.
该方法的优点之一是能够在部署时优化查询,而无需更改代码。
It is better to take small steps every day-like writing one paragraph of your book or crafting a handful of code-rather than waiting for a huge block of time to open up because this will never happen.
每天小步前进更好——像每天写你的书的一小段,或者编一段编码,而不是等着一大块时间才开始,因为可能永远没这样的机会。
The synchronized statement enbales only one thread to enter a code block at a time.
同步语句一次仅允许一个线程进入代码块。
One option is to refuse to write any more code until you've taken the time to add tests to the entire project.
一个办法就是不要编写任何代码,直到您将测试添加到整个项目中。
A critical code path is one that takes a long time to process or is very frequently executed.
关键代码路径是处理时间长或频繁执行的代码路径。
So really, the rule of thumb if you think back to Scratch is — that any time you write a statement — — something that does something in one line of code — you generally need the semicolon there.
实际上,根据经验,你们回忆一下在Scratch中,任何时候你们写一条语句-,处理一些操作的一行代码-,你们通常需要在那里加个分号。
Try running this version of the Ajax code and you should only get the alert message one time, which is as it should be.
尝试运行新版本的Ajax代码,现在就会看到与预期的一样,只显示一次警告信息了。
This is great because it allows you to write the shell script code one time, but you get to leverage it over and over.
这一点很重要,因为它允许您编写一次shell脚本代码,却可以一次又一次地使用它。
If you've been following Groovy for any amount of time, whether you've been reading articles and blogs or writing code yourself, you may have gotten wind of one or two subtle issues with the language.
如果您一直在跟踪groovy,不管是阅读文章和blog,还是自己编写代码,您都可能已经遭遇过这门语言的一、两个微妙的问题。
In the end, when it came time to work on version two, one of the developers had come up with a clever way, using metaprogramming, to weave the internationalization code into the code base.
最后,当要使用版本2时,一个开发人员想出了一个聪明的办法,使用元编程设计将国际化代码植入代码库中。
XP demands that you write tests before you write code, so a simple design is one that grows over time in a test-first manner.
XP要求您在写代码之前先写测试,所以简单设计是以一种测试当先(test - first)的方式逐渐增长的。
The synchronized keyword lets only one thread enter a code block at a time.
synchronized关键字每次仅允许一个线程进入代码块。
This allows you to fix the problem one at a time (run test > failure > fix code > run test > failure > fix code > fix code > run test > success).
这允许您每次修复一个问题(运行测试 >故障 > 修复代码 > 运行测试 > 故障 > 修复代码 > 修复代码 > 运行测试 >成功)。
An iterator is a kind of code helper that lets you quickly access data in any collection or container, one at a time.
迭代器是某种代码助手,可以让您迅速地访问任何集合或容器中的数据,每次一个数据。
It is one of many coordinate points on your planet that contain within in it time code scripting.
它是地球上众多同类型节点之一,这些节点里面有着时间编码脚本。
One known drawback of static analysis tools is that they generate false alarms, so that you may spend more time than you would like checking code patterns that are not buggy.
静态分析工具的另一个常见的缺点是它们会产生错误的警告,这样您可能会浪费更多时间去检查本来不是缺陷的问题。
You can follow the exercise starting from the initial code and migrate the application one piece at a time.
您可以从初始代码开始遵循练习,一次迁移应用程序的一部分。
Later on, you'll write code to enable the disabled tabs one at a time when they're needed.
在本文后面,我们还将编写代码来在需要的时候逐个启用和禁用这些选项卡。
As you can see, writing an entity in HTML takes more characters than you might like to type each time you need one, but once you know the code you can simply cut and paste it where appropriate.
可以看到,每次编写html格式的实体时,它使用的字符比您预期输入的字符要多。但如果您知道了代码之后,只要在适当位置剪贴这段代码即可。
If these two elements were implemented as one monolithic piece of code, it might be a bit tricky to read, because there are several things going on at the same time.
如果这两个元素是在一个代码片段中实现的,那么代码可能不太容易读懂,因为同时发生的事情很多。
A far more accurate measure — one that can even gauge the time taken to run a single-source code statement — can be taken using a code profiler.
一种更精确的测量——甚至可以测量运行单个源代码语句的时间——可以采用代码分析器。
Smart tags can be built via two means, one that offers less power but is far simpler, the other involving much more code and development time but provides much more flexibility.
有两种实现智能标记的方法,前种实现的功能和实现方法都很简单,而另一个则需要编写代码,但提供的功能也更为灵活。
This is a similar refactoring to the one I did in the test-after version of the code (in Part 1), but the change happens in two different methods this time.
这与在后测试版本中做过的重构相似(见第1部分),但是这一次要修改两个不同的方法。
This is a similar refactoring to the one I did in the test-after version of the code (in Part 1), but the change happens in two different methods this time.
这与在后测试版本中做过的重构相似(见第1部分),但是这一次要修改两个不同的方法。
应用推荐