回忆一下,我们编写了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.
清单2展示了这项任务的代码。
可以将任务解决代码设置为处理过的。
在本文中执行这些任务的代码可以按原样使用。
The code used to perform these tasks in this article can be used as-is.
清单3展示了完成这个任务的代码。
清单16给出执行此任务的代码。
开发人员为实现该任务添加必要的代码,换句话说,就是执行适当的规则。
The developer will add the necessary code to implement the task, in other words, execute the correct rules.
联系人列表和项目任务列表之间的代码差异非常小。
There is minimal code difference between a contacts list and a project task list.
清单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显示了执行此任务的代码片段。
您可以添加必要的代码来实现该任务。
You can later add the necessary code to actually implement the task.
一般情况下,我给出的代码对于类似任务是通用的。
In general form, code very much like what I present will be common for similar tasks.
随便说一句,所有这些任务需要的代码并不多,但是需要更多的解释,这是比较优雅的编程方式。
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.
你的任务应用程序代码就将在这里面执行。
任务标记允许团队定义与标记相关的特定类型的任务,这些任务会被其他开发人员看到,即使不查看包含任务的具体代码。
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.
清单3中的代码就完成了这个任务。
但是使用解释后的代码执行任务和使用编译后的代码执行任务在时间上有巨大的差异。
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.
清单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.
应用推荐