编写测试要比编写模型代码简单得多。
目前模型代码中的持久化部分是非常重要的。
The persistence piece of the current model code is very much just a stake in the ground.
Portlet和模型代码是紧密耦合的。
The servlet, portlet, and the model code are tightly coupled.
迁移模型代码。
如何:编译和运行自动化对象模型代码示例。
How to: Compile and Run the Automation Object Model Code Examples.
单元测试针对的是Rails模型代码,有时还包括帮助器。
其中并没有反向项目或模型代码同步,在这个方法中的源通常是模型。
There would be no reverse engineering or model-code synchronization, as the source in this approach is always the model.
模型代码需要能够从一个已知的位置装载数据,并提供一个公共方法用于提供那些数据。
The model code needs to be able to load data from a known location and offer a public method to provide that data.
使用二级ajax控制器(如servlet或Web服务)可以进行更强大的模型代码分离。
Having a secondary Ajax controller (such as a servlet or Web service) forces a stronger separation of your model code.
约定优于配置也会使新的Rails开发人员能够立即上手,因为控制器和模型代码特别简洁。
Convention over configuration also leads to "aha!" moments for new Rails developers because the controller and model code is so concise.
意味着,例如,您的模型代码——世界内部的表示,具体不知道它如何会显示在视图中。
The means, for example, that your model code - the representation of the world internally, doesn't specifically know how it'll be displayed by the view.
控制器代码也是相当彻底分开的模型代码,并可以用不同的控制设备,而不需要改变模型。
The controller code is also pretty thoroughly separated from the model code, and could be swapped out for different control devices without needing to change the model.
模型代码则不是这样;Monkeybars并不假定您如何管理应用程序逻辑和数据;那完全由您决定。
The model code does not; Monkeybars makes no assumptions about how you manage your application logic and data; that is entirely up to you.
我并不是说TDD原则是错误的,但当两百万行的遗留模型代码已经存在时,它的确不能成为一个有用的选择。
I'm not saying that the TDD doctrine is wrong, but it's not really an option when two million lines of legacy model code already exist.
与典型的test - first编程不同,我在此处编写了很多测试代码却没有必要编写任何模型代码。
Unlike classic test-first programming, I'm writing a lot of tests here without necessarily writing any model code.
接着您希望执行使用这个对象模型的代码文件。
You then want to execute files of code that consume that object model.
下面显示的就是这个线性模型的代码。
默认情况下,在为模型生成代码时,EMF不会使用动态模板。
By default, EMF does not use dynamic templates when generating code for models.
没有人喜欢编写或维护样本gui至域模型同步代码。
No one likes writing or maintaining boilerplate GUI to domain model synchronization code.
这使整个图片集中到一点:跟踪性,从请求到模型,到代码(参见图31)。
This makes the whole picture comes into focus: Traceability, from requirement through model to code (Figure 31).
这些特性提高了模型元素、代码引用,以及管理变更过程之间的稳定性。
These features improve the consistency between the model element, the code references, and the process to manage changes.
好在每个事件模型的代码都十分紧凑。
Fortunately, the code for each event model is quite compact.
您的开发人员是否用到模型和代码?
可以将其映射到特定的域,并能用于进行模型转换、代码生成等工作。
They can be mapped to a specific domain and used for model transformation, code generation, and so on.
因此,许多组织只是部分地将由模型的代码生成自动化。
Therefore, many organizations are doing only partial automated code generation from models.
模型较之代码支持一个更加丰富的关系类型的集合。
Models support a richer set of relationship types than those found in code.
最近的改进还提高了同步化的模型以及代码信息。
The latest refinements improve synchronizing model and code information when roundtripping capabilities, too.
但是如果业务模型改变,这些代码需要重新生成。
But if the business model changes, the code has to be re-generated.
它的声明性处理模型使代码很容易维护和重用。
Its declarative processing model allows for very maintainable and reusable code.
为模型编写测试代码。
应用推荐