没有它代码也可以很好的工作,但是它阐明了我们的目的。
It is not needed for the code to work properly, but it illustrates our point.
尽可能地把代码、内容和显示分开,这很好。
Separating code, content, and presentation as much as possible is good.
使用同步代码能够很好地解决某些问题,但它的缺点在某些情况下也特别明显。
Using synchronized code is fine for certain problems, but the weaknesses are fairly obvious for our use case.
例如,以下代码就工作的很好。
我们可以阅读需求规约和代码,并能够很好地保证实现是正确的。
We can read the requirements specification and the code and do a very good job of ensuring that the implementation is correct.
由于文档对chat机制介绍不多,因此它是进一步了解代码的很好起点。
As the chat mechanism is only lightly covered in the documentation, it's a good starting point for further code exploration.
当然,虽然您在PythonIDE中编写的代码可以很好地移植到Linux桌面,但是环境本身是不可以移植。
And of course, even though code you write in PythonIDE ports transfers fine to Linux desktops, the environment itself does not.
Mary正在对这个应用程序做一些其他的修改 ——她在编写单元测试方面做得很好,但是这个代码也太差了点。
Mary is working on the other major changes to the application -- she's doing a good job of writing unit tests, but the code is by no means perfect.
Vim很好地支持编辑时自动代码布局(见:helpindent . txt和:helpfilter)。
Vim has good support for automatic edit-time code layout (see: help indent.txt and: help filter).
那么,你什么时候能说你在代码中很好的应用了OOD ?
Now, when can you claim that you have applied good ood in your code?
通过避免开发人员已经逐渐认可的设计权衡,这些解决方案表明,即使您认为代码已经被很好地模块化了,AOP仍然很有用。
By avoiding design trade-off's developers have grown to accept, these solutions show that AOP can be useful even when the code is already thought to be well-modularized.
闭包可以很好地与面向对象的代码以及面向过程的代码整合。
Closures can integrate just as well with object-oriented code, as well as with procedural code.
但是开发能更改页面的代码很简单,而且还可以对代码进行测试直到它能很好地工作为止。
But developing the line of code that changes the page is simple, and variations of the code can be tested until it works perfectly.
如果应用程序要使用大型XML语法,那么代码生成方式是个很好的方法。
The code generation approach is a good one if your application employs a large XML grammar.
读者应当阅读有关文档来获得关于这个模块的更多细节,但是这个代码片段很好地体现了它的整体风格。
Readers should read its documentation to find more on the module details, but the general feel is well represented in this snippet.
这样可以很好地把代码与生成的二进制文件分开。
This way, you have a nice separation between your code and the generated binaries.
事实是,你的代码已经写得很好并且很好地调整过,从那里获取性能增益会好比从石头中获取血液一样艰难。
Let's face it, your code is already well written and well tuned; getting any performance gains there is going to be like getting blood from a stone.
如果您愿意花时间修改源代码,这种方法当然很好,但并不一定要如此。
That works great if you're willing to mess around with the source code, but you don't have to.
那么如果我们要想成为很好的代码编写者,首先就必须成为很好的读者。
Then we must become good code readers if we are to become great code writers.
我认为给你看一段简单的代码,可以很好的说明这个问题。
And I think this is best illustrated by giving you a simple little piece of code.
真正重要的是本框架代码编写得很好,经过仔细调优和很好的测试。
What actually matters is that the framework code is well written and carefully tuned and well tested.
这个结构是极度简化的,没有被很好地实现;这是为了让代码更少,更容易读懂。
The structures are fairly minimalist and not very well generalized; this is to make the code smaller and easier to read.
在清单8中添加的激活和解除激活代码可以很好地工作。
The activation and deactivation code you added in Listing 8 works perfectly.
由于没有很好地将示例代码库划分成mvc代码,这导致它自身很容易地进行编程序测试,因此没有使用自动化单元测试或持续集成系统。
Because the example codebase was not well divided into MVC code that lends itself to easy programmatic testing, automated unit test or continuous integration system was not used.
如果系统被很好的设计与构建,代码只需要在很少的位置做修改。
If the system were well-designed and constructed, the code might require changes in only a few places.
好的,这段代码很好而且很简单,并且它可以完成工作。
许多人都可以进行很好的代码检查。
这个代码不需要任何AOP实现而可以很好的运行。
这个代码不需要任何AOP实现而可以很好的运行。
应用推荐