Answer the question
In order to leave comments, you need to log in
Where and how can I learn OOP in a simple way, preferably for web-orientation?
I work as an engineer at a university. I'm interested in nix systems in my free time, my level I think is higher than user but lower than administrator.
I studied at a specialized university, respectively, and I have basic knowledge of programming, but mostly a procedural style.
Now more and more often they began to ask to raise linux and deploy nginx, then the site is edited to suit the needs, and so on.
Actually, I see something in the study of frameworks, including the self-written framework of our site, I desperately lack knowledge of OOP, MVC and the rest of this.
I outgrew Helloworld a long time ago, I inserted jQuery and other goodies on the site, but there is no general understanding. It got to the point that a friend explained to me on beer bottles that the beer class has the attributes of a degree and so on))
I ask for help in the form of an adequate textbook on OOP so that I can understand this, learn how to move from the procedural style to OOP, and accordingly understand the MCV pattern. Google read, as it is not imbued.
Maybe there are sites like codeacademy, better advise a book where information is presented in a simpler way?
Answer the question
In order to leave comments, you need to log in
It's strange that everyone advises
some very
murky
books . .phpinfo.su/articles/theory/model_view_controll...
Remember, never tell any of your friends and relatives that you are a programmer (studying to be a programmer).
Soon they will come to you with requests to hack your mail and set up a router.
In line with PHP, I can advise Matt Zandstra's book "PHP. Objects, Patterns and Programming Techniques"
I do not advise, the book is not for beginners
dic.academic.ru/dic.nsf/ruwiki/1071245 - for a general understanding,
then write simple examples of inheritance, method overloading, look at the results, encapsulate classes, gradually move forward, and only then you can read the book, which was suggested above.
I myself studied this way at one time, according to simple tasks, as for MVC, after the above-mentioned book it will be easier to figure it out, you should not immediately pounce on MVC
That MVC, which on the web is the wrong MVC, there, for example, models do not notify views as they should. This should be called MVP in a good way.
And the concept of OOP is also very blurry. Real OOP is smalltalk, not something like PHP or Java.
Alas, there is a lot of confusion here. And besides, OOP is loosely related to web programming in general. You can write web applications in any style, and other paradigms are closer to the web than OOP.
To figure out what and how practice helps, then you yourself begin to understand what and where it is better to use. It is enough to read a few articles to understand the essence, and then only practice will help.
Here is a great book for understanding how to use OOP as more than just a technical tool:
Domain-Oriented Design (DDD): Structuring Complex Software Systems by
Eric Evans
Agree with skvot , Matt Zandstra "PHP. Programming Objects, Patterns and Techniques" to start with and Martin Fowler "Enterprise Application Patterns" for general development.
Yes, these books are for those who already know what object classes and other crap are (although Zandstra writes about this), but unlike the ubiquitous OOP manuals, it shows how to use OOP in real tasks.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question