Answer the question
In order to leave comments, you need to log in
Design patterns - how to get started?
Hello.
For a long time I wrote in procedural PHP and didn’t think about anything like that, but then I needed to make friends with Laravel and various questions began to arise: - how best to do that? ... - how to do it correctly? ..
I know that there are some designing" - I want to get acquainted in practice - where exactly to start?
What should be learned first?
What is really needed and relevant in the context of Laravel?
Thank you.
UPD1 .: Thanks for the links, etc., but no one has said which template to start with. About MVC, this is already clear, if we are talking about Laravel)) I somehow didn’t even think that this was a template)))) And what else? I have come across such words: SOLID, DDD, etc. - which of these should be considered in more detail to begin with? Thank you.
Answer the question
In order to leave comments, you need to log in
I advise you to read the book PHP Objects, Patterns and Programming Techniques by Matt Zandstra. Both the OOP features inherent in PHP and the most common design patterns are described in detail.
I know that there are some "design patterns" - I want to get acquainted in practice - which one to start with?
For a long time I wrote in procedural PHP
Design patterns are about how convenient it is to bundle different classes in OOP.
No design pattern tutorials will teach you how to write classes themselves.
Therefore, you must first master OOP, and only then climb into templates.
Otherwise, there will be magic around, and you will have to save yourself from exceptions with holy water charged by the Toaster.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question