Most programmers are familiar with checking in and checking out their code, and know what versions go with which software release.
大多数程序员都熟悉对代码进行签入和签出操作,并知道什么版本与哪个软件发行版是对应的。
Then, I continue to add tests, each time modifying the code by adding new code, changing existing code, and refactoring as I go.
然后,我继续添加测试,每次通过添加新代码、变更现有代码及重新分解的方式来修改代码。
And yet when I think about working to keep code well-factored and writing tests, I find that makes me go faster.
但当我回顾我自己的经历时,却发现保持代码的良好构造以及编写测试反而使我的工作加快了。
NOTE: Since you probably copied and pasted that code, go back and make sure that each indent is two Spaces, and that no tabs were used.
注:由于您可能是复制并粘贴了这段代码,请返回查看并确保每个缩进都是两个空格,并且未使用任何制表符。
Generally, the workload balancing code will recognize this, and work will go to other cluster members.
一般情况下,工作负载平衡代码能够识别此命令,并且工作将转到其他集群成员。
This site also provides excellent reading into the different aspects that go into compressing code in general and how the ideal code obfuscates side effects.
这个站点还提供了有关压缩代码的不同方面以及理想的代码如何淡化负面效应的大量读物。
And even more recently, some people posted two new stores as patches, but they are unfortunately incomplete and lack unit tests, so the code can't go in the toolkit yet.
最近有人将两个新的库作为补丁发布,不过这两个库并不完整,缺乏单元测试,因此这些代码尚不能包括在工具包中。
The advantages of closures go beyond saving a few lines of code, and the usage patterns go beyond simple iteration.
闭包的好处远不止是节省几行代码,它的使用模式也远不止是简单的迭代。
This can go a long way, improving things algorithmically and fixing inefficient code.
这方面还有很长的路要走,优化算法、修正低效代码。
The last week of the project we literally did nothing but go back and add comments to the code, which worked well because the code base had settled down by that point.
在项目的最后一周我们的工作只是为代码填写注释,因为在那个时候代码已经确定,所以这种方法很好。
With weak code ownership, there's my code and your code, but it is accepted that I could go in and change your code.
弱代码所有权中,还是会区分代码的所有者,不同的是它允许开发者改动其他人的代码。
Go ahead, run the code from Listing 1 and you'll see the output shown in Listing 2.
继续,运行清单1中的代码,就会看到如清单2所示的输出。
As a first step, employ static code analyzers that will go through your code and search for anti-patterns to ensure that good coding practices have been followed.
第一步,利用静态代码分析器浏览代码并搜索反模式,以确保遵循良好的编码实践。
Over the preceding year or so, I had randomly found a few bugs in the code that made me shake my head and go “how did *this* happen?!”.
在差不多一年前,我偶然发现了代码里的一些错误,让我直摇头说“怎么会发生这种事?!”
If you plan to follow along, go to ananas.org and download the project code; you'll need it before you read much farther.
如果您计划按照示例操作,请造访ananas.org,然后下载项目代码;在继续阅读下去之前需要它。
I simply set coll to the "test_cases" key in the binding object and the code was good to go.
我简单地将coll设置为“test _ cases”绑定对象中的键值,现在代码就准备好运行了。
Go to the header, and add the HTML code in the Heading section.
在header部分,将HTML代码添加到Heading区段。
So double bar means if this condition or this one — and maybe even both — are true, go down this road and execute that code.
所以复纵线意思是,如果这两个条件之一-,或者两个都——是成立的,那就继续,执行后面的代码。
Before you go to the source code, you have to identify unreleased objects and find out what is holding them.
在您来到源代码之前,您必须确定未释放的对象并找出谁持有它们。
Without coding standards, it is harder to refactor code, harder to switch pairs as often as you should, and harder to go fast.
如果没有编码标准,重新划分代码会更加困难,按应当的频度交换对更困难,快速前进也更困难。
If you have modified the code, it makes sense to go back to step one and run the code Review tool again to ensure that you have not introduced a new issue, and then proceed through the workflow again.
如果你已经修改了代码,回到第一步并再次运行代码复查工具以保证你没有引入新的错误,然后再按工作流程再进行一遍是很有意义的。
Patterns and code go together, and we were still focusing on the code... we said: we are doing things differently.
模式和代码互相协调,我们仍然关注在代码上……我们说:我们正在用不同的方式做事。
But with Pro you can go even further and drill down into individual customer transactions at the code level.
但是使用专业版,你可以进一步深入,在代码层面上,钻入到单个客户的交易事务。
You walk through updating requirements and use cases, get introduced to scenarios (a path through a use case), then go to the code and make the necessary changes.
您更新需求和用例,进入场景(通过用例的路径),然后到达代码,并做出必要的变更。
Developers will appreciate the ease with which they can design their application and make changes without having to go back and forth between the model and code.
开发者会大大赞赏这种简单易行的操作,因为他们不需要在模型和代码之间来来回回的切换,就可以设计并修改他们的应用软件。
If you find that you are not exercising enough of the code, then go back and add additional tests to your test suite.
如果你发现测试没有覆盖足够的代码,那么回到以前的步骤进行更多的测试。
This is a particular problem if you change something the generated code relies on, as the generated code will go into error and users will generally delete the code and re-run the generator.
在你修改了生成代码所依赖的某些内容后这个问题就会变得尤为明显,因为此时生成的代码将会出错,而用户通常都会删掉代码并重新运行生成工具。
And you have to be able to go in and recreate those tests to reflect the new reality of the code.
人们不得不一头扎进去重新建立这些测试,以应对修改后的新代码。
Sometimes it means limited browser support for emerging standards, and other times it means having to go back and rewrite your code when draft standards change.
有时这意味着新兴标准只能得到有限的浏览器支持,而当那些标准的草案改变的时候,也意味着你必须回去把你的代码重写一次。
A geographical hierarchy for a customer record may start at the street address and go up through the town, state, zip code, and country.
客户记录中有关地理位置的层次结构可从街道开始,接下来是城镇、州、以及国家。
应用推荐