This article illustrates five common problems in database design, in the PHP code that accesses databases, and how to fix these problems when you see them.
本文说明了数据库设计和访问数据库的PHP代码中出现的五个常见问题,以及在遇到这些问题时如何修复它们。
So once again you get a clash, an unresolved clash, but a clash that arises from and participates in the semiotic structure of a common code, right?
所以我们再次看到了冲突,没有被解决的解决的冲突,但这个冲突产生于并参与了,共同编码的语言结构,对吧?
In any case, the service consumer and service provider need to agree on a common format that they both understand, and they both need to develop code that builds and interprets that format properly.
无论何种情况,服务使用者和服务提供者需要就双方都能理解的共同格式达成一致,而且双方都需要开发代码以正确地构建和解释该格式。
This makes the code harder to maintain and can also lead to the common mistake mentioned above.
这就使得代码很难维护并且还可能会导致上面提到的常见错误。
The most common internal metrics for code review are inspection rate, defect rate, and defect density.
代码评审的最常见内部性制度是检查率 ,缺陷率,以及缺陷密度。
Compared with most other languages and frameworks, it takes less code to accomplish most common tasks.
与其他语言和框架比较起来,它使用了更少程序去达到更多常见的任务。
That requirement is reasonable for programmers and code, but users expect to enter and view Numbers in the common format for their local culture.
该需求对程序员和代码来说都是合理的,但用户期待以符合其当地文化的通用格式来输入及查看数字。
I'd rather write new code, but I enjoy taking some existing code and reducing complexity in a method or extracting duplicate code into a common class.
我喜欢编写新的代码,但也喜欢采用一些现有的代码,以某种方法将其简化或将重复的代码提取到一个公共类中。
It enables one common form of data access across many different data sources, making it easier to develop code (and tooling!) that works with data.
它支持一种跨许多不同的数据源访问数据的通用方式,这使得开发与数据有关的代码(和工具)更加容易。
The problem with custom models is that you find yourself writing common code to support your model, like serialization and the ability to listen to model changes.
您会发现自定义模型带来的问题是需要自己编写通用代码来支持模型,如序列化及侦听模型更改的功能。
To reduce the time needed to familiarize yourself with your own or others' code, maintain a common naming and coding convention throughout a project.
为了减少您熟悉自己或其他人的代码所需的时间,请在工程内一直使用公共命名和编码约定。
For example, wouldn't it be nice to have an easier way to deploy and maintain common code that is used by multiple EARs?
例如,如果有一种更简单的方法来部署和维护多个EAR使用的公共代码,难道这不是很好吗?
Design reviews in early iterations allow architects to spot potential opportunities for reuse, and then develop and mature common code for these opportunities in subsequent iterations.
在早期开发中的设计评审允许架构师们发现潜在的可重用的机会,并且利用这个机会为接下来的迭代开发成熟的公用代码。
This column closes with an explanation of Expect's limits, a peek at working Expect code that solves common problems, and references that can lead you deeper into Expect programming.
本专栏的最后部分包括对Expect局限的说明、对解决常见问题的Expect工作代码的概述以及可以引导您更深入了解Expect编程的参考。
A huge issue in designing and writing a test suite is how to handle common setup and teardown code.
在设计和编写测试套件时,一个大问题是如何处理共同的setup和teardown代码。
This is a common misconception, and indeed a misnomer: spuriously commented code is documented, but by a developer, not by the code itself.
这是一个普遍的误解,而且这确实是一个错误:伪造的评论代码是文件ed,但是是由开发员写成,而不是代码本身。
Although there are many talented Perl programmers who write well-documented and readable code, these folks aren't as common as they could be.
尽管有许多天才perl程序员,他们编写可靠和可读的代码,但他们并不常见。
Custom code does not only refer to portlets (although they are the most common programming model for portals), but also includes code for WebSphere portal themes and skins.
自定义代码不仅指Portlet(虽然它们是最常见的门户编程模型),也包括WebSpherePortal的主题和外观代码。
The similarities are limited and mostly revolve around the common requirements of developing code using Web services.
两者的相似点比较有限,主要围绕于使用Web服务开发代码的常见需求。
Axis2 is completely rewritten based on the new architecture and has no common code with Axis 1.x.
Axis2基于新的体系结构进行了全新编写,而且没有采用Axis 1 . x的常用代码。
All derived entity classes and the session class inherit the common code of the create and find methods from the BOBase class.
所有派生实体类和会话类都继承了bobase类中create和find方法的公共代码。
Seven-bit ASCII characters are common to all the code pages supported by DB2 Universal Database and will not cause a problem.
位ascii字符通用于DB 2Universal Databas所支持的所有代码页,并且不会产生问题。
The worker process is a small Win32 shell of code that hosts the common language runtime (CLR) and runs managed code.
工作进程是一个小的win32shell代码,集成CLR并运行托管代码。
You can reduce code duplication by abstracting the common behavior and including it in the generic DAO, where all users of the class will have access to the functionality.
提取通用行为并把它们包含在泛型DAO 中,让类的所有用户通过泛型 DAO访问这些功能,这样就可以减少代码重复。
You do this by copying the impacted code units into a common framework and placing all of the data objects they refer to into a common data interface.
此工作是通过以下方式实现的:将受影响的代码单元复制到公用框架中,并将其引用的所有数据对象放置到公共数据接口中。
A more elegant solution might be to split package structure across two source directories for client-side and server-side code and to duplicate common classes into both directories.
更好的解决方案是将包结构分解成两个源目录,一个负责客户端代码,一个负责服务器端代码,然后将公共类复制到两个目录中。
Both editions benefit from greater levels and wider ranges of tests being run against the same common code, leading to improved stability and reliability characteristics.
由于对相同的通用代码进行了广泛深入的测试,各个版本都由此受益了,因此改进了可靠性和稳定性。
It is common in object-oriented development to abstract out a common interface that may have multiple implementations and write code that works with the interface, making it more reusable.
在面向对象的开发中,有一种实践很常见:抽象出一个可能拥有多个实现的接口并编写代码以使用该接口,从而使其可以重复利用。
Several large software modules from previous projects were introduced into the system during development, and a common approach to cross cutting concerns was required for both existing and new code.
在开发期间,有几个来自先前项目的大型软件模块被引入系统中,对于现有代码和新代码而言,一种用来横切关注点的通用方法是必不可少的。
This is a little cleaner, as it keeps the common code common, and it makes development easier as the JET compiler doesn't always give the nicest error messages.
这样可能会更加整洁,因为它保留了代码的通用性,并可以简化开发过程,因为JET编译器并不能总是给出最正确的错误消息。
应用推荐