The goal of design patterns is to encapsulate change.
设计模式的目标是把变化封装起来。
Modularity helps encapsulate change, which will make it easier to extend and modify the application over time.
模块化将帮助封装更改,这样可以随着时间的推移更轻松地扩展和修改应用程序。
Loosely coupling your modules is a good thing; it's one of the properties that allows you to encapsulate change.
将模块松散耦合在一起是件好事情;它是允许您封装更改的属性之一。
Modularity of function helps encapsulate change so that a minimal number of components are impacted when a change is needed.
功能的模块化有助于封装变更,这样在需要修改时只有最少数的组件会受到影响。
Remember that the reason for adopting OO habits is to carefully encapsulate change so your code is more extensible and maintainable.
记住采用OO习惯的原因是要谨慎封装更改,这样代码将更具有可扩展性并且更容易维护。
In my design, I decided to encapsulate each state change in an object.
在我的设计,我决定封装中的每个对象的状态变化。
We want to encapsulate all that, so that we can keep supporting an interface and still have the flexibility to change the way we've implemented behind the scenes.
我们希望将上述这些资料全部封装起来,以便可以持续维持介面,且仍然保有可以改变旧有实作细节的弹性。
We want to encapsulate all that, so that we can keep supporting an interface and still have the flexibility to change the way we've implemented behind the scenes.
我们希望将上述这些资料全部封装起来,以便可以持续维持介面,且仍然保有可以改变旧有实作细节的弹性。
应用推荐