Unit tests exercise Rails model code and sometimes helpers.
单元测试针对的是Rails模型代码,有时还包括帮助器。
The servlet, portlet, and the model code are tightly coupled.
Portlet和模型代码是紧密耦合的。
The persistence piece of the current model code is very much just a stake in the ground.
目前模型代码中的持久化部分是非常重要的。
All code must be tested, and ideally the tests should be written before the model code is.
所有代码都必须测试,而且理想情况下应该在编写代码之前编写测试。
Hence, the entire graphics engine could be swapped out without touching any of the core model code.
因此,整个图形引擎可以替换掉不碰任何核心模型的代码。
The model code needs to be able to load data from a known location and offer a public method to provide that data.
模型代码需要能够从一个已知的位置装载数据,并提供一个公共方法用于提供那些数据。
Unlike classic test-first programming, I'm writing a lot of tests here without necessarily writing any model code.
与典型的test - first编程不同,我在此处编写了很多测试代码却没有必要编写任何模型代码。
Having a secondary Ajax controller (such as a servlet or Web service) forces a stronger separation of your model code.
使用二级ajax控制器(如servlet或Web服务)可以进行更强大的模型代码分离。
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.
我并不是说TDD原则是错误的,但当两百万行的遗留模型代码已经存在时,它的确不能成为一个有用的选择。
Convention over configuration also leads to "aha!" moments for new Rails developers because the controller and model code is so concise.
约定优于配置也会使新的Rails开发人员能够立即上手,因为控制器和模型代码特别简洁。
The model code does not; Monkeybars makes no assumptions about how you manage your application logic and data; that is entirely up to you.
模型代码则不是这样;Monkeybars并不假定您如何管理应用程序逻辑和数据;那完全由您决定。
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.
控制器代码也是相当彻底分开的模型代码,并可以用不同的控制设备,而不需要改变模型。
In the genmodel editor, right click on the top node labeled "Mysql" and generate the model Code (see Figure 9), the edit Code (see Figure 10), and finally the Topology edit Code (see Figure 11).
在genmodel编辑器中,右击标为的顶部节点,并生成model代码(见于图9),Edit代码(见于图10),以及最终的Topology Edit代码(见于图11)。
The English Approval Unit crime, implements two punishes the system; US "Model Penal code" also approves the unit crime.
英国认可单位犯罪,实行两罚制;美国《模范刑法典》亦认可单位犯罪。
This means that going forward, you will have traceability from that requirement to the model or code (or better yet, both) that implements that requirement.
这意味着,您将拥有从需求到实现了该需求的模型或代码(更好的是,两者)的追溯能力。
Furthermore, there are a number of additional capabilities — ones you should consider when developing a language feature — that go beyond transformation from the model to code.
此外,还有很多附加的能力——您应该考虑什么时候需要开发一个语言特性——不仅限于从模型到代码的转换。
No one likes writing or maintaining boilerplate GUI to domain model synchronization code.
没有人喜欢编写或维护样本gui至域模型同步代码。
In this context, artifacts can be anything, such as a requirement, a design model, implementation code, or a test case.
在此上下文中,构件可以为任意内容,如需求、设计模型、实现代码或测试用例等。
This makes the whole picture comes into focus: Traceability, from requirement through model to code (Figure 31).
这使整个图片集中到一点:跟踪性,从请求到模型,到代码(参见图31)。
If you work primarily in code but want to modify the model, use code update mode.
如果您主要处理的是代码,但是又想修改模型,那么就使用代码更新模式。
They can be mapped to a specific domain and used for model transformation, code generation, and so on.
可以将其映射到特定的域,并能用于进行模型转换、代码生成等工作。
WAS CE unveils a new business model, providing free code for use in development, testing, and deployment.
WAS CE展示了一个新的业务模型,提供免费代码用于开发、测试和部署。
For the purposes of this example, we will create the model in code when the editor is opened, ignoring the actual contents of the file.
对于本示例而言,当编辑器打开时,我们将在代码中创建模型,从而忽略了文件的实际内容。
Early versions of the binding compiler did not go through this step of constructing a code generation model, instead generating code directly from the binding.
绑定编译器的早期版本不经历构造代码生成模型这一步,而是直接从绑定生成代码。
An example of a transform would be from an analysis model to a design model and then perhaps from the design model to code.
转换的一个例子就是从分析模型转换为设计模型,可能还随后从设计模型转换为代码。
The latest refinements improve synchronizing model and code information when roundtripping capabilities, too.
最近的改进还提高了同步化的模型以及代码信息。
Now that you know how to traverse the model, you can write code to modify the model.
现在,您知道了如何遍历模型。接下来,可以编写代码来修改模型。
Also during this phase the design model was synchronized with code so that changes in the model could be forward engineered to code.
同样是在这个阶段,设计模型同代码同步,以便模型中发生的变化能够被传送到代码中。
To generate the PHP, first build a model of the code you want to generate. Then, apply code templates to that new model.
要生成PHP首先要建立需要生成的代码的模型,然后将模板应用于这个新的模型。
应用推荐