If two pieces of code perform two different functions, keep them separate, and only allow them to interact through a well-defined interface.

  • 如果代码执行两种不同的任务就将其分开,指通过定义良好的接口来交互。
目录 查词历史