在下一节中,我们将会看到如何将此设计决策转化为真正工作的代码。
In the next section, we will see how to translate this design decision into real, working code.
将回调实现为真正的类,从而促进代码重用并允许在运行时与客户机数据关联。
Callbacks are implemented as real classes to help facilitate code reuse and associated with client data at run time.
为了表明她的这一说法,她通过让“阿维达人”进化出对光源的吸引力,并使用该进化代码控制真正的机器人向光源移动。
She demonstrated this by getting Avidians to evolve an attraction to light sources. She then used the evolved code to control a real-world robot - and it moved towards the light.
我们仍然没有真正检查我们的代码。
对于代码中真正关键的部分,可能需要在进行重构之前添加一些功能测试作为一种安全保障。
For really critical sections of your code, you might consider adding some functional tests as a safety net before you start refactoring.
此代码内实施真正控制的是PHP。
机器翻译,威廉·韦弗的父亲,选择视为“代码模糊了真正意义的文本”俄罗斯。
The father of machine translation, William Weaver, chose to regard Russian as a "code" obscuring the real meaning of the text.
与任何性能决策一样,分析应用程序是掌握代码中真正瓶颈的最佳方式。
As with any performance decision, profiling an application is the best way to get a handle on the real bottlenecks in the code.
因此,如果我们能在适当的事件中放入逻辑,将真正使你的代码干净。
So if we can put logic in proper events as per the nature of the logic, that would really make your code clean.
准确地识别哪些代码真正需要同步并尽可能少地进行同步,这非常重要。
It is crucial to accurately identify which code block truly needs to be synchronized and to synchronize as little as possible.
这暗示,用于真正的MDD的工具必须能够完成代码生成。
This implies that the tools used for real MDD must be capable of complete code generation.
现在您有一个即将失败的测试程序,它将告诉您真正需要编写那些代码。
Now you have a failing test that tells you exactly what code to write.
即使这样,我仍然不得不经常调试组件的代码才能真正发现问题所在。
Even then, I still often had to debug through the code of the component to actually find the problem.
真正的细节和代码将会在这个系列的后二篇文章中展示。
The actual details and code will be revealed in the next two articles in the series.
编写不多的几行代码,用于真正执行序列化过程。
Write the few lines of code that actually perform the serialization process.
我们大约需要编写50行代码来真正执行我们在模拟对象类中所需的行为。
We had to write approximately 50 lines of code that actually implemented the behavior we needed in our mock object classes.
根据前面简单的单元测试用例,这块代码是“干净,绿色”的——但只有在我真正彻底地测试这块代码的情况下这才有意义。
So the code is "clean and green," according to my simple unit test case — but that's meaningful only if I'm really testing the code thoroughly.
真正重要的是本框架代码编写得很好,经过仔细调优和很好的测试。
What actually matters is that the framework code is well written and carefully tuned and well tested.
覆盖测试使您可以清楚一个类或应用程序中哪一部分的代码真正得到执行。
Coverage tests let you see which code is actually being executed in a class or application.
没有几个真正的 “代码牛仔”足够幸运地能够不断地变换工作,而不必修改其他人的代码。
There are few true "code cowboys," lucky enough to travel from job to job, never having to maintain anyone else's code.
这些代码并不重要,真正有价值的是原理。
That code isn't important -- it's the principle that counts.
这已经不仅仅是惯用的流畅代码,而是真正的专业代码。
This has now moved beyond merely idiomatic fluent code into truly expert code.
当然开发人员肯定很熟悉这些所谓可怕的事情并且他们自己就可以做这方面的测试,但是这样做会使得他们真正写代码的时间 变得很少。
Developers of course are familiar with doing many horrible things and could provide such testing themselves, but this would leave very little time for actually writing code.
惟一真正属于Tapestry的代码就是一套简单的类,用来把应用程序的所有片段连接起来。
The only true Tapestry code is the set of simple classes that connect all the pieces of your application.
我没有构建端对端场景,而是提供了部分产品示例以涵盖更多方面,并使您认识真实的插件以及如何在真正的生产代码中使用它们。
I provide a partial production example rather than build a toy end-to-end scenario to cover more ground and give you the flavor of real plug-ins and how they're used in real production code.
但是,仅仅“能够工作”还不足矣,为了能够持续提供真正的价值,代码一定要简洁。
接下来,我们将定义真正的客户机代码,其代码将用于测试Web服务。
Next, you'll define the actual client code you'll use to test the Web service.
示例应用程序不包含真正保存注册信息的代码,不过有hook。
The sample application doesn't contain code to actually save the registration information, but the hooks are there.
realname是包含库的已编译代码的真正文件名。
The real name is the actual file name containing the compiled code for the library.
有多少代码是在处理真正的问题?
应用推荐