Friday, August 28, 2015

Object oriented principles - S.O.L.I.D.

August 28, 2015

做程序员第一次认识到自己对好多问题没有仔细学习过, 程序写好了, 就算了! 读了那么多年的博士, 没有养成学者的好习惯. 多动脑, 多动手, 多向大家学习, 才能有提高. 五年的程序员, 我的时间都到哪去了?

做了面向对象编程, 今天第一次开始读下面的文章. SOLID principles:

  • S – Single-responsiblity principle
  • O – Open-closed principle
  • L – Liskov substitution principle
  • I – Interface segregation principle
  • D – Dependency Inversion Principle
有空读一些这方面的文章:
https://scotch.io/bar-talk/s-o-l-i-d-the-first-five-principles-of-object-oriented-design
 


No comments:

Post a Comment