如果我想以白盒方式验证这段代码,就必须将特定于用户界面的代码与业务代码分开,这就需要进行重构。
If I want to validate this code in a white box manner, I have to separate UI-specific code from business code, which requires some refactoring.
正如你看到的,我只是使例子更加健壮,但是对于实际业务代码影响最小。
As you can see, I just made the example more robust with minimal impact on the actual business code.
Tivoli提供了一种解决方案,使得业务代码不必再实现那类授权扩展。
Tivoli provides a solution that relieves the business code from having to implement that kind of authorization extension.
虽然这种方法可以把接口的验证逻辑从它的核心业务代码去耦,但是它的可重用性和可配置性不是很强。
While this approach works to decouple the interface's validation logic from its core business code, it isn't very reusable or configurable.
在业务对象代码中,很难了解要操作的业务数据结构的格式(也就是,对业务代码隐藏了数据模型)。
In the business object code, it is very difficult to understand the format of the business data structure that is being manipulated (that is, the data model is hidden from the business code.).
业务组件代码必须能够将这个标识符映射到其后端数据中。
The business component code must be able to map this identifier to its back end data.
当然,如果无法认真管理从最初的业务问题,到代码编写,到最后进行部署的过程,一个应用程序是无法获得成功的。
Of course, the applications cannot be successful if they are not carefully managed from the initial business problem, through to the code being built, and finally to deployment.
对于那些业务项目属性,代码确定这些属性充当哪些流程或组件的输入或输出,并制作这些相关流程的列表。
For each of those business item attributes, the code determines which processes or components the attributes serve as inputs to or outputs of and makes a list of these dependent processes.
MVC开发人员通常直接在表示层中包含业务逻辑代码进行 “欺骗”(而不是包含到它所属的服务层中)。
MVC developers can frequently "cheat" by including business logic code directly in the presentation layer, instead of the service layer where it belongs.
组织是否拥有任何自动为部署而生成BPEL运行时代码的业务流程建模工具?
Whether the organization has any business process modeling tool which automatically generates BPEL run time code for deployment?
已确认的缺陷可能需要在模型中解决,在人工开发的业务逻辑代码中,要在模型转换,或它们的组合中解决。
Identified defects may potentially need to be resolved in the model, in the manually developed business logic code, the model transformations, or some combination of these.
这种思路需要把交互代码从业务逻辑中分离出来,正如您已经了解的,这是最佳的入门实践!
This sort of thinking requires a decoupling of interaction code from business logic, which (as you already know) is a best practice to begin with!
因此,在不同的组件之间可以保持一定程度的松散耦合,这让他们可以专注于自己的业务逻辑代码。
Therefore, they are able to keep a loose-coupled level among different components so that they can focus on their business logic code.
WAS CE展示了一个新的业务模型,提供免费代码用于开发、测试和部署。
WAS CE unveils a new business model, providing free code for use in development, testing, and deployment.
另外,映射文件能够很清晰的将业务逻辑和持久化代码分开。
In addition, mapping files make for a cleaner separation between business logic and persistence code.
在本文中,我们会集中讨论五个主要问题,即:特性团队、团队自主管理、业务价值、代码所有权以及稳定性。
In this article, we focus on five main issues, namely: feature teams, team autonomy, business value, code ownership, and stability.
目前,业务规则与主代码紧密耦合,使得在做出更改时必须小心谨慎,同时还增加了测试需求。
Currently, business rules are closely coupled with the main code, necessitating the need for care while making changes and also increasing testing requirements.
可能还有一些部门的或者业务单元特殊代码存在于应用软件中,比如可能是一个安全解决方案。
There may also be departmental or business unit-specific code that spans applications, such as maybe a security solution.
您可以用很多的方式创建数据库设计、数据库访问和基于数据库的PHP业务逻辑代码,但最终一般以错误告终。
You can create database design, database access, and the PHP business logic code that sits on top of it in any number of ways, and you often end up getting it wrong.
透明性:前置和后置条件代码不与业务逻辑混合。
Transparency: The pre - and post-condition code isn't mixed with business logic.
但是如果您这样做了,您将不得不自己在业务消息中编写代码,实现相互冲突的数据元素。
If you choose this path, though, you will have to write the code to enforce the mutually exclusive arrangements between data items in your business messages.
它是透明的,因为业务逻辑代码不包含对契约检查的引用,前者绝对不知道后者。
It is transparent because the business-logic code contains no reference to contract checking; it is absolutely unaware of it.
就处理服务出错而言,标准的业务错误代码有助于应用程序更得心应手地使用这些服务。
Having standard business error codes helps applications consume these services easily in terms of handling the service errors.
通过将业务规则从代码中外部化并将其向用户提供,可以有效地构建能应对未来变化的应用程序。
Externalizing the business rules from the code and making them user accessible is an effective means of building an application that is anticipating the future.
业务规则位于代码外部,保存在一个中央规则存储库中。
Business rules are externalized from the code and kept in a centralized rules repository.
公司在技术方面拥有几名非常了解业务方面、代码结构和数据库的团队成员。
The company has several team members on the technical side that are very knowledgeable about the business aspects, code structures, and databases.
因为在php中对XML应用xslt样式表的方法通常是相同的,因此,可以将特定于业务的代码提取出来,从而实现更易重用的过程。
Since the mechanics of applying XSLT stylesheets to XML in PHP are generally the same, the process can be refactored out of the business-specific code into something more reusable.
在这种情况下,事务界定代码与实现业务逻辑的代码混杂在一起。
In this case, your transaction demarcation code is intermixed with code that implements the business logic.
全生命周期覆盖,从查看业务企业到执行代码嵌入式软件。
Full lifecycle coverage, from envisioning the business enterprise to implementing hand-coded embedded software.
既然已经仔细检查了实现业务规则逻辑的代码,现在应该检查它是否能工作。
Now that you've gone over the code that implements the business-rules logic, it's time to see if it works.
应用推荐