R
R
Roman2019-02-17 18:16:52
Design patterns
Roman, 2019-02-17 18:16:52

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

6 answer(s)
A
artem78, 2019-02-17
@procode

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.

V
Vitsliputsli, 2019-02-17
@Vitsliputsli

I know that there are some "design patterns" - I want to get acquainted in practice - which one to start with?

No need, just read about them. Most likely you have already used some of them without knowing it, because. these are just good solutions for typical problems. If you have studied the framework, then you will find many solutions corresponding to the patterns in it.
Here, on the contrary, it is necessary to take the task and think over its solution, keep in mind that there are design patterns.

D
Dmitry, 2019-02-17
@Compolomus

https://refactoring.guru/en/design-patterns

M
morricone85, 2019-02-17
@morricone85

For a long time I wrote in procedural PHP

Read more about classes and objects. Well, without MVC anywhere.

A
Adamos, 2019-02-18
@Adamos

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.

I
Ivan Shumov, 2019-02-17
@inoise

Why can't anyone google ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question