Answer the question
In order to leave comments, you need to log in
What design patterns have you used in your web applications
Good day to all!
Since I am actively studying patterns now, I was interested in the following question: what design patterns in your web applications did you most often use, except for MVC / MVVC and the listener, and to what extent it was justified.
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Abstract Factory, Singleton, Facade, Adapter, everything seems to be. The rest are much less common.
Singleton registry - for global storages
Singleton - very convenient as a starting access point
Factory - as a layer for initializing classes
Strategy - for filters
Active record (active record), factory, lazy initialization, adapter, facade, opportunist, iterator, intermediary, strategy, template method (by the way, I just now realized that I use it all the time).
And it still seems to me that many use this or that template without even knowing it.
It all depends on the size of the application. if the project is longer than 3-4 months, then a rather extensive list has to be used to one degree or another.
I have never used builders. And so from the main almost all
Ikhmo, they are needed for large libraries.
It is necessary that the code does not turn into a garbage dump ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question