这会减少多次编写同样代码的开销,因为只需在一个位置更新代码。
You'll reduce the overhead of writing the same piece of code multiple times because you update the code in only one place.
真正程序员从来不写代码的注释,如果代码非常难写,那么同样代码的注释也会非常难懂—匿名。
Real programmers don't comment their code. If it was hard to write, it should be hard to understand. - unknown.
上述代码同样展示了开始定义DSL所需的一些步骤。
The above code also shows the first few steps towards defining a DSL.
无论检入何种类型的代码(或文档之类),同样的模型也是可用的。
The same model applies no matter what type of code you are checking in (or documents for that matter).
评估工具同样可以帮助决定代码复杂性。
Assessment tools can also help by determining code complexity.
更小、更简洁的构建文件维护和理解起来要容易得多。实际上,这种模式对于代码而言同样适用。
Smaller, more concise build files are much easier to maintain and understand; in fact, this pattern happens to hold true for code as well.
他们会发现每次他们要创建一个不同的单例类的时候,都不得不写同样得代码。
Those who use it will find that they often have to write the same code each time they want to create a different Singleton class.
本地代码库同样可以动态加载。
从这里,您的代码同样使用JNDI访问JMS连接代理和jms队列,并且使用它们来发送和接收消息。
From there, your code works the same. It USES JNDI to access the JMS connection factory and JMS queue, and USES them to send and receive messages.
这种类型的设计的好处是很明显的。同样,遵循角色分离、代码重用等也是非常有益的。
The benefits to this type of design should be obvious, and follow along the lines of separation of roles, reuse of code, and so on.
同样,如果使用数据访问层,代码将整合到其中,对于使用的应用程序是不可见的。
Again, if a data access layer is used, the code can be consolidated there and hidden from the using application.
大部分是常识,而且是和用在其它语言中美化代码同样的常识。
Most of this is common sense, and most of it is the same common sense that applies when making your code in other programming languages look nice.
清单2中的代码创建清单1 中的代码创建的同样HTML文档。
The code in Listing 2 creates the same HTML document that the code in Listing 1 creates.
同样,由于使用本机代码,所以其可移植性受到限制。
Again, because of the native code, their portability is limited.
64位CPU拥有更宽的数据总线,但是同样是这个64位CPU可以运行32位的代码,而且拥有同样宽的数据总线。
A 64bit CPU will have a wide data bus, but recall that this same 64bit CPU can run 32bit code as well and it still has the big wide data bus to move things around with.
理想情况下,您应该可以使用同样的代码外加一些附加标记进行创建,如下所示。
Ideally, you should be able to use the same code with some additional markup, as in this example.
虽然ActionListener只有接口中的一个方法,但是以这种方式创建接口的一个实现意味着这个接口实现的所有方法都将执行同样的代码。
While ActionListener only has one method in the interface, creating an implementation of an interface in this manner means all methods of that interface implementation will execute the same code.
然而,你还可以在一个calculator类的上下文中执行同样的代码来获得结果。
However, you could also execute the same code in the context of a calculator class to receive a result.
这里的主要优势在于,可以在支持抽象机器(interpreter)的任何硬件平台上执行同样的对象代码。
The key advantage here is that the same object code can be executed on any hardware platform that supports the abstract machine (the interpreter).
某个bug修复后,开发人员就可使用“查找匹配克隆”功能来看看其他遵循同样模式的代码。
Once a bug is fixed developers can use the "find matching clones" to see other code that follows the same pattern.
现在,尝试在JBoss5下运行同样的代码。在这两个环境之间移动很简单。
Now, try to run the same code under JBoss 5. It's easy enough to move between the two environments.
如果在2ghz(或更快的)Pentium4上运行同样的代码,那么可以产生800x600的运动视频。
Running the same code on a 2-ghz (or faster) Pentium 4 produces full-motion video at 800x600.
Rampart配置使用此前Axis 2例子中同样的代码,除了在粗体行中添加了通过启用addressing模块激活WS - addressing。
The Rampart configuration USES the same code as in earlier Axis2 examples, except that the added line shown in bold activates WS-Addressing by engaging the addressing module.
奇怪的是同样的代码能在版本3.5上运行,也能在WebSphereStudioApplication DeveloperVersion 5.1jvm下用“main”方法进行单元测试时运行。
This was puzzling because the same code had worked on Version 3.5, and also worked when unit tested by running the "main" method under the WebSphere Studio Application Developer Version 5.1 JVM.
领域工作台允许代码完成,同样允许相同领域代码的多重投影。
Domain workbench allows code completion and also multiple projections of the same domain code.
同样,清单10中的代码允许验证以下实例。
Again, the code in Listing 10 allows the following instance to validate.
同样,Ori Pekelman也认为代码是债务而不是资产。
Likewise, Ori Pekelman suggested that code is a liability than an asset.
大多数例子同样链接到代码的完整范例,让您可以在portlet里面合适的方法上下文中查看代码。
Most of the examples are also linked to fuller examples of the code, allowing you to see the code in the context of the appropriate method within the portlet.
同样,Google的代码在幕后处理各种事情。
But, again, behind the scenes, Google's code is doing all sorts of things.
同样,Google的代码在幕后处理各种事情。
But, again, behind the scenes, Google's code is doing all sorts of things.
应用推荐