Class hierarchy showing violation of Open Closed principle.
违反开发闭合原则的类结构。
This is where the Open Closed Principle comes into play.
这就是开闭原则一展身手的地方了。
So, did this solution conform to the Open Closed Principle?
那么,这个解决方案遵守了开闭原则么?
This is why we have to make sure our modules follow Open Closed Principle.
这是为什么我们需要确保我们的模块遵从开发关闭原则。
There is another way to move closer to the Open Closed Principle ideal that might be cleaner in the end.
最后,还有一种更靠近开闭原则的方式需要说明。
I would recommend that you treat the Open Closed Principle as a design vector rather than an outright goal.
我建议你将开闭原则作为一个设计方向而非一个完全的目标。
If a class that uses an abstraction has to downcast to a specific subclass in one section, you're not following the Open Closed Principle.
如果在某一部分中,一个抽象了的类必须向下转换为特定的子类,那么你就没有遵循开闭原则。
You may not always manage to write code that satisfies the Open Closed Principle in every aspect, but even moving partway there can be beneficial.
你可能并非总是试图写一些在各个方面都满足开闭原则的代码,但是即使只进行到中途也是非常有益的。
By following the Open Closed Principle with the order processing rules, I've made it much easier to add new types of order handling logic to the system.
通过在订单处理规则上遵循开闭原则,我使得在系统中添加新类型的订单处理逻辑容易得多。
This article applies the closed principle in monitoring and evaluation work, and bring forward some "closed" proposals to make it normatively, orderly and efficiently.
本文通过将管理的封闭原理引入督导与评估工作,围绕如何使督导与评估工作规范、有序和高效来提出“封闭”建议。
As I said earlier, the most common manifestation of the Open Closed Principle is using polymorphism to substitute an existing part of the application with a brand new class.
如果我前面所说的,使用开闭原则最通常的做法就是使用多态去用一个全新的类替换程序中现存的一部分。
The design follows the Open Closed Principle if you can extend the system by swapping out implementations of IDataSource without making any change to the BusinessProcess class.
如果你可以通过实现IDataSource对这个系统进行扩展并且不对BusinessProcess类做任何的修改,那么这个设计就遵循了开闭原则。
In following the Open Closed Principle, I want to be able to write a class or a method and then turn my back on it, comfortable that it does its job and I won't have to go back and change it.
在遵循开闭原则的过程中,我期望能够写出一个类或者方法,在以后我回过头读它的时候,会很舒服地看到它能完成它的工作并且我也不需要再修改它。
I'd like to start with a discussion of the Open Closed Principle and other related ideas popularized by Robert C. Martin in his book, Agile Software Development, Principles, Patterns, and Practices.
我喜欢以讨论开闭原则和其他由robertC.M artin在其著作《敏捷软件开发,原则,模式和实践》中所倡导的相关主题作为开始。
The control scheme and operating principle of a double closed-loop AC/DC power converter system are discussed by using physics.
从物理角度讨论了双闭环交/直流功率变换器系统的控制方案和工作原理。
You'll never reach true Open Closed nirvana, but you can inch much closer by rigorously following the related Single Responsibility Principle: a class should have one, and only one, reason to change
你永远也达不到真正的开闭天堂,但是通过严格地遵循与之相关的单一责任原则:一个类应该有并且只有一个更改的理由,你可以非常靠近地接近它。
Through the principle analysis and the circuit com- parison, we have designed a better scheme of a closed electronic window trac- king system.
通过原理分析和电路比较,设计了性能较优的闭环波门跟踪系统方策应用于电视跟踪系统。
Measurement principle of three coordinate measuring machine based on half-closed loop control is introduced.
介绍了一种基于半闭环控制的三坐标测量机的测量原理。
A similar approach is necessary to explain the principle of the laser gyroscope, where open system attitude information is obtained from an apparently closed system device.
相近的原理方法有激光陀螺仪原理可以解释,激光陀螺仪从一个封闭的系统设备获取非密闭系统的信息。
For inspecting topological and geometrical unanimity of a solid model, principle of closed path topology and Euler′s formula are important tools.
闭路拓扑原理和欧拉公式是检验实体模型边界表示的拓扑与几何一致性的重要工具。
Firstly, the principle of the electrical control system of the electrical power closed mechanical drive tester is analyses.
本文首先系统地分析了电封闭机械传动试验台的电气控制系统各部分的工作原理。
The RV drive with new structure is proposed, and the speed ratio is calculated according to design principle of the closed planetary gear.
根据封闭行星齿轮传动原理,求出新结构高轮齿接触率RV传动装置的传动比;
Generalized DAlembert-Lagranges principle for non-holonomic mechanics, including its Newtons formulation and Lagrangian formulation, are given. This principle can lead to the closed motion equations.
提出非完整力学的广义达朗贝尔-拉格朗日原理,包括其牛顿表述和拉格朗日表述。此原理能导出态空间封闭的运动方程组。
By the principle of the theory guiding practice, the paper first expounds the closed theory of land assets disposition about land assets, land property rights, land rent, land price, stock system.
在理论为指导实践服务的这一原则下,本文首先对土地资产处置所密切相关的土地资产、土地产权、地租、土地价格、股份制等理论进行了阐述。
The paper researched for the seal principle of the closed component for the natural gas valve, analyzed the regulation of the seal eomponent's leaks.
通过对天然气阀门关闭件密封副密封原理的分析研究,分析密封副泄漏规律。
The principle of closed loop sidelobe canceling technology including traditional analog method and modern method using analog and digital knowledge is introduced in this paper.
文中介绍了一种早期闭环模拟旁瓣对消技术和现代闭环数-模结合旁瓣对消技术的原理。
By the use of the variational principle of complementary energy, the closed form of the stresses of double-layer composite bar is obtained.
运用最小余能原理,求得了双层复合材料杆温度应力的封闭解。
The paper introduces the configuration of system and the work principle of the closed and opened loop control in the pitching of collimation prism of the submarine periscope.
介绍潜艇潜望镜瞄准棱镜俯仰的闭环控制与开环控制的组成及其工作原理。
It was discussed the check principle structure, the codes' transmitting, closed loop check, reliability of the closed loop Telegraphic codes System with some reference circuit.
对闭环电码化系统检测原理结构、发码过程,闭环检测、可靠性等进行分析阐述,并给出部分参考电路。
The densification effects of upsetting and repressing are compared, and a technology design principle for closed die forging is suggested .
分析了粉末烧结材料镦粗和复压工艺的致密效果,提出了闭式模锻工艺设计原则。
应用推荐