How to Learn object-oriented

Source: Internet
Author: User
{Code ...}
I have been using php for almost three years. I usually write business logic functions. I am eager to improve the technology and want to learn object-oriented and design patterns. So I started Learning PHP design patterns, but no matter what I think, I still think that I want to learn from the wrong books because I have not enough basic skills, I hope that the experts will be able to guide you and recommend the books you want to learn first. During the interview, I was asked questions about object-oriented and design patterns, and I couldn't answer them at all. As a phper with just three years of entry, it was a shame !!!!

Reply content:
I have been using php for almost three years. I usually write business logic functions. I am eager to improve the technology and want to learn object-oriented and design patterns. So I started Learning PHP design patterns, but no matter what I think, I still think that I want to learn from the wrong books because I have not enough basic skills, I hope that the experts will be able to guide you and recommend the books you want to learn first. During the interview, I was asked questions about object-oriented and design patterns, and I couldn't answer them at all. As a phper with just three years of entry, it was a shame !!!!

I recommend a Turing black book, which I think is easier to understand.In-depth PHP: Object-oriented, model and Practice

Object-oriented is actually a relatively abstract thing. In addition, it is not as tiled as the native code, class inheritance and reuse. What you see is a great jump, a method that does not seem to have been defined in this file will appear soon, and it is easy to be dizzy.

My suggestion is: 1. Clarify the object basics and various basic meanings (such as static variables and destructor)

2. You need to know how to find a class and a method (it is easy to look at the code using some IDE tools). 3. The interpretation of objects in most books and tutorials is also very abstract, which is hard for new users to understand, in general, the object is a person, class is the person's mouth, nose, the way is to eat with his mouth.

First, we need to understand why we need to be object-oriented, whether the code we write is not easy to maintain, how can we solve it, and whether some features of object-oriented can solve these problems, and then study them based on actual problems, it is easy to understand.

I have read several articles about the design mode recently. For more information, see. Hope to help you :)

First, you must have an object.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.