这会减少多次编写同样代码的开销,因为只需在一个位置更新代码。
You'll reduce the overhead of writing the same piece of code multiple times because you update the code in only one place.
MDA思想的核心就是模型,同样代码自动生成技术也离不开模型。
MDA model is the core of the same model without Automatic Code Generation.
真正程序员从来不写代码的注释,如果代码非常难写,那么同样代码的注释也会非常难懂—匿名。
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.
当然,没有必要每次都把同样的PHP代码翻译一遍。
Certainly, there is no need to translate the same PHP code each time.
评估工具同样可以帮助决定代码复杂性。
Assessment tools can also help by determining code complexity.
同样,使用这种代码,可移植性问题也就不是什么问题了。
Once again, with code like this, "portability" was never on the table.
他们会发现每次他们要创建一个不同的单例类的时候,都不得不写同样得代码。
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.
同样,转化代码对库的依赖性是个潜在的问题。
Also, the translated code's dependence on a library is also a potential issue.
这种类型的设计的好处是很明显的。同样,遵循角色分离、代码重用等也是非常有益的。
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.
同样,这里的注释代码也很有趣。
大部分是常识,而且是和用在其它语言中美化代码同样的常识。
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.
同样,这些代码也进行了良好的注释。
理想情况下,您应该可以使用同样的代码外加一些附加标记进行创建,如下所示。
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).
现在,尝试在JBoss5下运行同样的代码。在这两个环境之间移动很简单。
Now, try to run the same code under JBoss 5. It's easy enough to move between the two environments.
所以这里的同样的代码——thankful被初始化为false值。
如果在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.
同样,清单10中的代码允许验证以下实例。
Again, the code in Listing 10 allows the following instance to validate.
应用推荐