如果我想以白盒方式验证这段代码,就必须将特定于用户界面的代码与业务代码分开,这就需要进行重构。
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.
在这种情况下,例外应该是完全透明的业务代码。
In that case the exceptions should be fully transparent for your business code.
正如你看到的,我只是使例子更加健壮,但是对于实际业务代码影响最小。
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.
为您的业务流程创建部署代码。
因此,本文有一个启动器应用程序,为您提供了业务逻辑代码。
Therefore, we include a starter application that has the business logic coded for you.
有时候同时具有这两种接口,并将UI、代码和业务逻辑分离开了。
Sometimes they have both and separate the UI, code from the business logic.
对于那些业务项目属性,代码确定这些属性充当哪些流程或组件的输入或输出,并制作这些相关流程的列表。
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.
已确认的缺陷可能需要在模型中解决,在人工开发的业务逻辑代码中,要在模型转换,或它们的组合中解决。
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.
因此,在不同的组件之间可以保持一定程度的松散耦合,这让他们可以专注于自己的业务逻辑代码。
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.
但是如果业务模型改变,这些代码需要重新生成。
But if the business model changes, the code has to be re-generated.
通过将规则置于应用程序代码之外,业务专家能够定义和管理决策逻辑。
By externalizing rules from the application code, business experts can define and manage decision logic.
在本文中,我们会集中讨论五个主要问题,即:特性团队、团队自主管理、业务价值、代码所有权以及稳定性。
In this article, we focus on five main issues, namely: feature teams, team autonomy, business value, code ownership, and stability.
以下代码示例使用业务对象类。
您可以用很多的方式创建数据库设计、数据库访问和基于数据库的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.
它是透明的,因为业务逻辑代码不包含对契约检查的引用,前者绝对不知道后者。
It is transparent because the business-logic code contains no reference to contract checking; it is absolutely unaware of it.
因此代码块与业务操作之间存在多对多的关系。
So there is a many-to-many relationship between code blocks and business operations.
就处理服务出错而言,标准的业务错误代码有助于应用程序更得心应手地使用这些服务。
Having standard business error codes helps applications consume these services easily in terms of handling the service errors.
业务规则位于代码外部,保存在一个中央规则存储库中。
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.
业务逻辑代码不需要知道适配器内部发生的详细情况。
Your business logic code does not need to know the details of what happens behind the adapter curtain.
应用推荐