Learning experience of the Party's mass line education and practice activities. Tell me about my learning experience for PHP novices.

WBOY
Release: 2016-07-29 08:36:24
Original
1088 people have browsed it

The final exam starts tomorrow, and I will go back to Fuzhou the day after tomorrow. Since the Internet is not installed at home, I will not be able to come to the forum for a while. Before that, I thought about it. I have answered questions for novices and demonstrated codes. , it seems that I have never talked about my learning experience. Before I leave, I will talk about my experience in learning PHP. Although it is a senior talk, I think my situation is still representative. I hope you want to join the PHPER team. New Force can help.
Most of the people who learn PHP rely on self-taught, and I am no exception. Like me, there are many people who used to do ASP. When I first saw the PHP code, I felt strange, why are there so many $ in it? It’s so strange. Subconsciously I thought this thing must be much more difficult than ASP, but after I experienced the magic of PHP (ASP and PHP programs with the same functions were run on my old C2 antique machine, I could see the speed with the naked eye. Difference), I was immediately attracted by the charm of PHP (although now I can't feel the difference on my HP notebook), and what also attracted me was the LAMP combination. So, my PHP learning journey began. . . . . .
Haha, I don’t know what is the first function that everyone learns to do in PHP. The first program I did in PHP was to receive a set of form data and then echo them. After success, I thought, if it is a URL parameter, how can PHP accept it? Checked the manual, flipped through the book, oh! Use $_GET. Maybe many programmers who came from ASP will be affected by ASP ideas at the beginning. In fact, it doesn't matter. They will adapt to it after a while. You may say that if you had known that you would not learn ASP, you would not be affected. Wrong. After doing it for a long time, you will find that the ASP experience accumulated in the past has helped you master PHP faster to a large extent. The so-called one-to-one understanding, all the procedures are similar. ASP can be said to be the same as PHP. It's very close, so it's very fast for ASP programmers to convert to PHP. How fast is it? I’ll talk about it below ^_^. Those who have never learned ASP before, or those who have zero basic knowledge, don’t read it. What? I am clearly writing this for people who have done ASP in the past. In fact, it is the same. What I emphasize is the learning methods and ideas. No matter what language you learn, this is the most important.
Well, you have learned the basic syntax, understood the internal functions, and can understand the examples in the book. You definitely want to try your skills, right? Yes, this is the first point I emphasize. To learn programs, you must keep writing codes. This is the fastest way to learn and the most effective. But if you suddenly leave the book and start programming by yourself, you may feel like you don’t know where to start. Feeling, what should I do? ? ? My approach is to stand on the shoulders of giants. Excellent code is always the best learning tool. Do you suggest reading the guestbook first? WHY? The guestbook is simple and has all the necessary conditions for a complete system. Database, front and backend. Let's start with the database part first, see how it is designed, and analyze why it is designed this way. Can I have a better design? After understanding it, see how it interacts with PHP. Here I suggest that everyone learn some software engineering. Knowledge, learn to do system analysis, and be able to divide system modules, which will help everyone design the system independently. After you understand the principle, you can start making programs according to the ideas you have in mind. You will definitely encounter various difficulties. You have to look through the manual, search for GOOGLE, ask netizens, and even feel irritated when debugging the program. But please don't give up. Success and failure are just a matter of thoughts. If you take a step forward, you may succeed. If you take a step back, you will definitely fail. After you overcome the difficulties during the period, you will find that by doing this program, you have learned a lot more and gained experience. Yes, you have made progress. What to do next? The guestbook is not enough. Try expanding it into a CMS or a BBS. If your system becomes bigger and bigger, congratulations, you must hope to become an excellent PHPer!
Of course, here we still need to introduce the skills of debugging the program. Remember, if a program cannot be debugged, first determine the spelling of the word, and then determine the grammar to see if there are any missing {}; and the like. You can segment the echo results to narrow the scope of debugging. Especially for database interaction programs, first output a SQL statement to see, by the way, and then analyze why the insertion/deletion failed, and so on. Debugging programs may take up a lot of programming time. Of course, we still have to summarize our own debugging experience. Of course, I have a habit. When I go online and see some websites with good functions, I wonder how this is achieved? Can I do the code? So I tried it myself. Regardless of success or failure, I think it will be helpful and help improve my level. I don’t like repeating boring examples in books. I learn through my own hands-on practice. I think it is more efficient. Higher, and I enjoy the joy of successfully implementing the code, which is also my motivation for learning. Of course, as a programmer, you must always pay attention to the development of the program. When you get started, you have to consider some advanced applications. If you want to improve the efficiency of the program, use templates, AJAX, etc., you must always pay attention to the trends in the industry.
Finally, let me talk about how long it took me to switch from ASP to PHP, which is how long it took me to learn PHP. To tell you the truth, it was more than half a year, including the time to learn AJAX, smarty, and XAJAX.Maybe you have questions, how is it possible? ? ? You are fooling people, yes, I have been learning PHP for more than half a year, but please note that it took me more than a year to learn HTML, database, software engineering, and ASP. So you see, there is no shortcut to learning programming. We All we can do is to take it one step at a time, lay a solid foundation, improve our skills, and enrich ourselves. Finally, I wish all newbies a happy learning experience, can become excellent PHPers, and strengthen China's IT power! ^_^

The above introduces the learning experience of the party's mass line education and practice activities. I will tell you about my learning experience for PHP novices, including the learning experience of the party's mass line education and practice activities. I hope it will be helpful to friends who are interested in PHP tutorials.

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template