What designs do you write most/the most?

It is interesting to find some common approaches/designs in the largest possible number of routine/complex things are done every day.
In General, no matter what framework or CMS using which you are writing the application. As if the things already implemented it better (in the sense of optimal) — would be glad to hear.
I hope the comments will give you enough information to make any concrete conclusions about the General development approaches, and how to optimize it, more interested in real hands-on experience, and there are certainly some things that are a little lacking.
October 3rd 19 at 03:43
3 answers
October 3rd 19 at 03:45
After remaining thoughtful and read through a code has found one such design:
if (!isset($this->data)) {
 $this->data = ...
}

return $this->data;
Filling the $this->data on demand? - aurelio_Willms commented on October 3rd 19 at 03:48
October 3rd 19 at 03:47
Patterns of routinely not done.
They are used in proektirovanii architecture.

Usually it for you for a long time made by the creators of the framework, and you are only strategy and sometimes factories.
You misunderstood the question, I on design patterns are saying, slightly paraphrased, apparently, the word pattern here is to write only in a single context design patterns.

The question is, what kind of code often written in real life, what structures are used. The framework by itself is not a fully functional app, because I wonder what is most commonly done to make it so. - aurelio_Willms commented on October 3rd 19 at 03:50
I on design patterns are saying
I did not understand you. It is about design patterns and I answered... - ulises24 commented on October 3rd 19 at 03:53
Sorry, had to be
I'm not on the design patterns say
Typo - toni commented on October 3rd 19 at 03:56
October 3rd 19 at 03:49
I'm not asking you to teach me how to properly, I am aware of the existence of these sites.
I wonder what this one's specifically you that you do not like/bored in the application development process.
For example, write some kind of controller/model which is substantially different from time to time or wrap/block of code to something that could be simplified. It could be anything like that, preferably with a code example. - aurelio_Willms commented on October 3rd 19 at 03:52
Then I really don't understand the question.
What is not to like? How can like or dislike a language construct?
For example, write some kind of controller/model which is substantially different from time to time

So, use inheritance, decorators, services is a good choice. We and programmers to get rid of code duplication. - ulises24 commented on October 3rd 19 at 03:55

Find more questions by tags PHPSearch engine optimization