回忆一下,我们编写了3块代码:任务代码、加载器和聚合器。
As you'll recall, there were 3 pieces of code to write: task code, a loader, and an aggregator.
这样做,你必须指定点的任务代码中的线程可以切换到另一个任务。
To do that, you have to specify the points in task code where the thread is allowed to cut over to another task.
接下来我甚至会进一步运行测试用例,尽管我知道它们将失败,因为我没有为该类编写任务代码。
Then I would even take it a step further and run the test cases, even though I know they will fail because I haven't actually written any of the code for it.
对于执行一个循环中的代码的任务,通常只需为每一个循环迭代检查一次中断。
For tasks that execute code in a loop, it is common to check for interruption only once per loop iteration.
任务标记允许您在代码注释中给您自己或其他人留下说明。
Task tags let you leave notes to yourself or to other developers in code comments.
当您的目标是一个较小的范围时,更简单的方法是通常会更好,比如在核查他们的特定任务的代码之前开发人员通常会执行它们。
This simpler approach is usually better when you are aiming at a smaller scope, such as those usually performed by developers before checking in their code for a specific task.
如果您需要更改代码时,任务的开发类型将会得到创建,并分配给一个开发员。
If a code change is required, a development type of task will be created and assigned to a developer.
他们还可以添加任务来表示实施策略的代码的占位符。
They can also add tasks to represent placeholders for code which will enforce policies.
开发人员添加所需的代码来实现这个任务,例如,执行正确的规则。
The developer adds the necessary code to implement the task, for example, execute the correct rules.
在本文中执行这些任务的代码可以按原样使用。
The code used to perform these tasks in this article can be used as-is.
这将使用户能够直接在不同系统间建立通信,甚至是紧急作战任务-而不需在代码层进行修改。
This will allow customers to establish communications among diverse systems, even the most mission-critical -- without having to make modifications at the code level.
清单3展示了完成这个任务的代码。
清单16给出执行此任务的代码。
开发人员为实现该任务添加必要的代码,换句话说,就是执行适当的规则。
The developer will add the necessary code to implement the task, in other words, execute the correct rules.
清单7展示了此任务的代码。
其工作空间只会显示与故事或是正在从事的任务相关的代码,同时对其所做的任何变更都会被自动组织起来。
Their workspace shows only the code related to the story or task they're working on and their outgoing changes are organized automatically.
清单4显示了执行此任务的代码片段。
一般情况下,我给出的代码对于类似任务是通用的。
In general form, code very much like what I present will be common for similar tasks.
(他反复赞赏这种机器简约的工程哲学,使用最少的部件,最少的代码完成任务)。
Again and again, he came back to praising engineering minimalism–accomplishing a task with the fewest possible parts and the simplest possible code.
随便说一句,所有这些任务需要的代码并不多,但是需要更多的解释,这是比较优雅的编程方式。
Incidentally, all of this takes longer to explain than to do in code, which indicates some fairly elegant programming.
在迭代周期的其他时间内,团队要实现他们所登记承担的任务,所有代码由编程对子一起完成。
During the rest of the iteration, the team will implement the features they signed up for, pair prog - ramming on all production code.
为了跟随示例,您应该使用代码下载完成相同的任务。
In order to keep working through the examples, you should do the same using the code download.
任务标记允许团队定义与标记相关的特定类型的任务,这些任务会被其他开发人员看到,即使不查看包含任务的具体代码。
Task tags allow the team to define specific types of tag-related tasks that they know will be seen by other developers, even if they do not look at the specific code that contains the task.
但是使用解释后的代码执行任务和使用编译后的代码执行任务在时间上有巨大的差异。
But performing a task with interpreted code and performing it with compiled code can take significantly different amounts of time.
通过使用框架编写任务,您将在代码中应用一致的方法并利用已有结构。
By writing your tasks using your framework, you apply a consistent approach throughout your code and take advantage of the existing structure you already have in place.
参加学生的主要任务包括写代码,文档,培训其他人,调试代码,UI研发和社会拓展。
Tasks for participating students can include writing code, creating documentation, training others, testing code, UI research and design, and community outreach.
每个周期内的典型任务包括写测试、让代码通过测试、重构代码、提交修改。
Typical tasks in his cycles are writing a test, code to pass the test, refactor the code, commit the changes.
清单8显示完成该任务所需的两行代码。
Listing 8 shows the two lines of code needed to do all this.
完成这个任务的实际代码非常简单,如清单5所示。
The actual code for this turned out to be embarrassingly simple. See for yourself in Listing 5.
开发员对充分理解需求负责,以设计,编码,单元测试,并以一种准时的方式来交付分配任务的代码。
Developer Responsible for understanding the requirements described enough to design, write, unit test, and deliver code on assigned tasks in a timely manner. Commenter.
应用推荐