8 Points for PHP beginners to effectively recommend _php basics
Source: Internet
Author: User
Learning a new language can be a very difficult task, the best way is to learn from the experience of predecessors has been achieved, the following is for the PHP novice prepared some experience meal (the author is also a novice).
If you are a PHP developer, whether novice or expert, I hope you can discuss your own ideas or skills in PHP.
1. Starting from OOP Naramore is the founder of SourceForge employees and phpwomen.org. For starters, she recommends understanding OOP (object-oriented programming), the object-oriented programming idea, before learning PHP.
"If you're from a non-tech industry, it's important to take some time to learn the basics of software development," he said. For example, object-oriented programming, test-driven development, version control, debugging, design patterns and so on. ”
"If you've tried but can't solve the problem, don't be afraid to ask people." Many of the PHP community's atmosphere is very friendly, and provides a lot of beginners available resources, which you will be helpful. Find a stable community for yourself, a local user group or an open source project community, or a freenode IRC chat channel. ”
2. Anytime Google Casey created a software store and has done a lot of research on the unconference process.
His advice is to find a place in the PHP community and follow the "Google before asking questions."
"Immediately find a user group to join, the world has a lot of smart people to gather together chat, develop ideas, help each other PHP group." ”
"Remember to try to search Google before asking questions." No one likes lazy people. ”
3. Join Open Source Project Leonard is running an Irish software company, Echolibre, and co-founder of Cloudsplit, a Cloud analytics service. Like many of his peers, he suggests that you should actively try to join open source projects, even if you are a novice.
"By participating in open source projects you have the opportunity to see the source code, and can learn from senior predecessors." ”
"Help the Open-source project team do something, such as time-consuming tasks like finding and documenting repetitive bugs, and they'll be thankful for that." When we want to hire a developer, if he has ever been involved in an OSS project, we will think more about his potential contribution to the company. ”
4. Do what you want. Lornajane, who is more famous as an online identity Mitchell, is a PHP consultant, developer, writer and orator.
She gave a short piece of advice: do it if you want.
"PHP is a very easy to understand language that can be developed quickly." The best way to find out if one thing is possible is to do it. ”
"Anyone can program in PHP. The low threshold means there will be a lot of bad PHP work. But a lot of bad PHP work is very useful, even if it doesn't look pretty. I personally think that if you can use PHP to solve problems, go for it, even if the things you do may not be perfect. ”
5. Avoid coding burnout Cornutt, who runs phpdeveloper.org and joind.in, has been using PHP since 1998. His advice to beginners in PHP is never to produce code fatigue or burnout.
"I think novice PHP developers are easily caught in a crushing situation ... Beginners tend to be interested in language, but always be a "can run" mentality misleading, and even more. ”
"Try to find a mentor to guide you through these preliminary learning steps." When you truly communicate with others, you will find many different things in the world. IRC is a good choice, but finding a cow to be a teacher is definitely the best choice. "
"PHP development is a skill that needs to be honed, and no one can become a master overnight." ”
6. Choose a handy encoder Turner has been doing web-related work and participating in open source projects since 1996. He runs Phpkitchen.com, and recently killed himself in the Seedcamp final.
He gave novice PHP developers a very good idea to save time, write better code, and help maintain your interest in coding.
"By reading the code of an experienced developer, you will always find some better, more concise way of doing it." Don't reinvent the wheel, using a library avoids writing repetitive code yourself. "
"Make sure your code is human-readable, and if your code is 6 months behind and you don't understand it, how do you get other developers to see it?"
"Simplifying the interface as much as possible, writing simple code is more difficult, but good refactoring saves a lot of time and headaches for maintenance." "
"Finally, learn about some of the great programmers and how they have been passionate about the art of programming for years. ”
7. Understanding test-driven development, encapsulation, and code control Herbert has played PHP since 1999 and has made a great contribution to Gentoo Linux.
For PHP beginners, he says, "learn test-driven development and encapsulation." Once you become familiar with it, your code will write faster, and the person inheriting your code will surely thank you.
"Learn code control, this is the only way." ”
He also said that one of the biggest advantages of PHP is the large number of online free documents, not to go to a bookstore in the street to buy a tutorial like any other language.
8. Understanding Security Issues Maclean is a PHP and Python developer from Scotland.
"It's because PHP is easy to use, so there are a lot of people using it, but we have to think about what beginners are doing with it," he said. It's not necessary to start from scratch, and choosing the framework properly is a good start. ”
"The other thing to do is to know about security issues." PHP used to be notorious for security because of the side effects of ease of use. We must learn to avoid these problems.
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.