老实说我一直怀疑我是不是适合做一个架构师,看着现在这些所谓的架构师无穷的创造力,我真的只有望洋兴叹的份儿。面向接口编程就是把所有的类都抽个interface出来,SOA就是整一大堆Service,然后用配置文件具体类型绑定。不过真正被雷到的还是我今天搜索IoC的时候看到的“经典”定义:

“控制反转即IoC (Inversion of Control),它把传统上由程序代码直接操控的对象的调用权交给容器,通过容器来实现对象组件的装配和Hollywood Principle. Inversion of Control as a design guideline serves the following purposes:
  • There is a decoupling of the execution of a certain task from implementation.
  • Every system can focus on what it is designed for.
  • Every system does not make assumptions about what other systems do or should do.
  • Replacing systems will have no side effect on other systems.

相关文章:

  • 2021-07-16
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-06-15
  • 2021-09-20
  • 2021-09-03
猜你喜欢
  • 2021-11-15
  • 2022-01-02
  • 2021-10-29
  • 2021-12-18
  • 2021-06-10
相关资源
相似解决方案