Thoughts on design patterns

Design patterns are like a wheel

Reinventing the wheel

Just imagine. You are scientist, and you want to develope something special – something amazing, great. Whole world will remember you! The world will not be the same as it was before, because of your discovery. Imagine that feeling. You are the reason, your thought change it. Then you wake up and you realize that the wheel was already discovered. Too late. I am sorry 😉 Do not worry, because you can continue. You do not have to discover a wheel again and again.

Learn design patterns!

Patterns are great stuff to learn, because it will help you with your development. It will help you with problems and solutions, which you are struggling with. Yes, sometimes it can look like a boring theory without fun. But that is not really true! When you will start to use it in your developing, projects,… It will change a lot. Your development will be more effective, you will spend more time on writing a real application, than on reinventing the wheel. Do not try to invent, what somebody else discovered and an experience proved.

What is design pattern?

Patterns are about communicating problems and solutions. Mr. Christopher Alexander in A Pattern Language wrote on patterns this:

Each pattern is a three-part rule, which expresses a relation between a certain context, a problem, and a solution. ~ Christopher Alexander

There is context, problem and the most important part a SOLUTION. Patterns are practical experiences, which were useful for a lot of programmers. Pattern is an answer recognized by number of developers and proven that it is an effective approach.

I am still learning, and these thoughts on patterns were in my head, when I discovered this amazing part of development. I believe you will like it as well.

Please tell what you think