渐进地在目标平台上编写代码以取代对遗留模块的依赖。
Gradually write code on the target platform to replace dependence on legacy modules.
内聚原则是指一个模块内部的所有代码应该只完成一个目标。
Cohesion, refers to the principle that inside a given module, all the code should work to accomplish a single goal.
在清单7所示的代码中,控制器的回调方法首先使用XSLProcessor模块生成HTML片段,然后将其注入到目标节点中。
In the code in Listing 7, the callback method of the controller first generates the HTML fragment using the XSLProcessor module and then injects it into the targeted node.
应用推荐