- Program as often as you possibly can
- Get familiar with the PHP manual
- Take advantages of the huge online PHP Community
- Don't put off the best practices for later
- Don't put off the best practices for later(to be sure you saw this)
- Make code self-documenting
- Add a comment to anything you had to think about
- Learn Docblock and use it!
- Don't be too hardcore to use an IDE
- Group common code into functions
- Group related functions into classes
- Use constants, not globals
- Don't be afraid to use includes
- Don't obsess over performance
- Avoid Marrying HTML to your scripts
- Try to use at least one unfamiliar concept in every project
- Don't be too proud to change
- Validate
- Whitelists instead of blacklists
- Learn to count like a computer
Posts on different topics such as Java, PHP, freelancing, various frameworks and programming principles.
Thursday, June 14, 2012
20 advices when starting to learn PHP
Here is a great article to read if you are just starting to learn php. The presented advices are:
Labels:
PHP
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment