Saturday, June 4, 2016

design pattern

I read an article Design Patterns Are Not Blueprints. I like author's opinion.

"A pattern is a way of thinking about something and a way of communicating about something. To follow the example implementation of a pattern without thinking is as silly as doing anything else without thinking."

We should not use a design pattern just because it is design pattern. We need understand what problem the design pattern solves or in which scenario we shall use the design pattern.

Design pattern is to make complicated things to simple ones.

To me, the principle of coding is

  • easy to read
  • easy to maintain
  • easy to extend

Technique? What I follow is Tao – beyond all techniques!

No comments:

Post a Comment