K
K
Knyashshsh2018-03-21 20:13:23
PHP
Knyashshsh, 2018-03-21 20:13:23

How to use OOP in practice?

So I learned what classes, objects, inheritance, etc. are. But I don’t understand how to use it in practice (when I also learned php) ... I
have two of my projects written procedurally, but I would like to remake them for oop. And how to turn the procedural code into an oops I xs. Is it desirable to start without mvc or are these things inextricably linked? How did you learn this? I'll get to the frameworks later.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wentixon, 2018-03-21
@fyapy

OOP is much more complicated than you think. The best way to learn it is to do projects on modern frameworks and study these frameworks themselves and understand why the developers did it that way. Patterns, study solid. This is necessary, otherwise you will not be doing oops, but some kind of parody, which will rather create problems than solve them

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question