Feel PHP Getting started fast, but want to go deep, feel very difficult, do not know to that aspect good?

Source: Internet
Author: User
Tags naming convention

Reply content:

Get started fast is the language itself simple, this you go to learn Python, Ruby, Golang should be almost simple, deep difficult is because you own simple, this is like learning English, can speak English is not difficult, but let you write articles in English is very difficult, Speaking English you just need to say the one or two words you want to speak out, and answer other people's questions also let you have a clear goal, even if you do not practice the pure English thinking, you can also hear the translation into Chinese, and then in Chinese to answer, and then the translation of their own to the English translation into English, This is the same as you write PHP program, there is a problem for you to solve, such as print out 99 multiplication table, you may be able to translate: I now have a demand, to print out the 99 multiplication table, set two variables I and J, and then only need to have two loops to become, of course, need a judgment, and so on, Then translate this Chinese into the PHP language implementation. But like English, if you want to go deep, then you need to look at your other skills, such as you need to write an article called "on the ancient Greek and Roman mythology on the development of English vocabulary" such a paper, from the name, you are not difficult to find, in addition to the English Grammar (PHP syntax), vocabulary (PHP keyword), Structure (PHP control structure) and so on, you also need to know something other than English (Greek/Roman mythology, the English vocabulary influenced by these myths, the history of English), and these are embodied in PHP you need to know the programming ideas, foundation, Data structures or other knowledge that PHP itself does not want to do but is necessary.

I myself is English major, PHP or Python, are self-taught, and you have had the same problem, I think you should now be in a: read someone else's code and procedures, to you to do something you can barely make, but the problem is that they do not system, Especially when you go to the interview, if there is a written test, you are basically impossible to get through ... That's why you have this kind of confusion-how can my php be deep?

I don't have any particular approach to this problem, just tell me how I survived it:

1. First and you, but that time has not known this kind of website, that time popular is the blog, forum and so on, so, is basically looking for Google above, but found that the answer is basically the same--to find a few good tutorials, serious step-by-step learning and so on, In fact, this for self-study does not have any essential role, is a palliative to the root cause, so after nearly a year, in this year time, PHP did not grow, but will use this thing to write WordPress theme plug-ins (this is my only need at that time)

2. In that year, in contact with Python, immediately attracted by it, so immediately gave up PHP, became a loyal Python user, but the same problem happened again, the official documents of Python I have all seriously studied it, in theory, I should be a full Python person, should be as long as python can solve the problem I can solve, but it is not such a thing ... There's a big difference between being able to cook and being able to cook delicious food. Just like fried a cabbage, out of the pot a minute early and a minute late taste and nutrition is very far away, the reason is very simple, also take the fried cabbage this matter, cabbage fried too ripe, no nutrition, and not crisp, out of the pot too early and not ripe and eat raw no difference, But is this the question that you will not be fired? Hot pot, add a little oil, throw cabbage in, fry it, add salt, out of the pot, so simple, then why the taste so different?

3. Later, I found a problem, my html+css is in contact with PHP at the same time, but html+css I dare not in two years in any place to use the word "mastery" to describe their ability (in fact, even now, I did not achieve proficiency), to find reasons, The same starting point, why a progress so fast a progress so slow? What I have found is that for html+css, development, history, and its various versions and different versions, why different and so on have a deep understanding of these and html+css this technology itself is not related to the standards of the things let me "proficient" this, you say html+ Is CSS difficult? It's simple, it's tag, attribute, value, content, but you say it's not difficult? It's difficult ... Why the same design works, the same turn into HTML+CSS implementation, why others only spent 1000 lines and you have to spend 3000 lines? This is the difference, such as the most common left-right three-column layout, if you just go to learn CSS, and you are smart enough, you may be very familiar with float, but you will find that even float, you are not other people's flexibility, others define the HTML structure + CSS can be very simple to implement the right and left three columns, and the most important, the three columns can also be very simple to change the position, and you write is a dead, you have to switch location or you have to change the HTML or to change the CSS, this is why?

4. Then, try to learn html+css way to re-learn Php/python, this time I really learn to think, but this process is very long, but not a bit painful, understand the origin of PHP, I know, PHP before the advent of what are the similar language, Why does the author want a php? What does PHP do for you? I know that PHP can be used to develop programs, is a programming language, and then I go back to understand what the programming language is, why do you have this? And then go up ... New knowledge will allow you to temporarily completely forget that you are learning PHP, but in this process, you will find that your PHP technology is also slowly improving, because all of these are common, in the understanding of other theories, in fact, is to increase your PHP knowledge, such as MVC, such as the naming convention, such as various programming ideas, such as object-oriented and so on

5. In this learning process, your knowledge is no longer confined to PHP as a single thing, but related to all things, and these so-called additional knowledge will become part of your own life, no matter you go to learn what other programming language, generally can quickly get started, in-depth ... I think the landlord is a little worried about it, afraid of learning as if it is not learning to become a feeling, in fact, when learning practice is quite important, and as far as possible to learn from each other, like what is said upstairs, learning a thing, encounter real examples, in fact, not only on the one hand, of course, some can be completed, It's just too simplistic. So in my opinion the mentality is actually very important, it is able to support you continue to go on the power, recommended learning may as much as possible contact other, this should be much better.
  • Related Article

    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.