How To Improve Your PHP Developer Skills
PHP is the most popular web development language, it is estimated that at least twenty million domains are currently built in PHP and sites such as Facebook and Wikipedia are included in that as well as wordpress and drupal site.
If you are attempting something fairly simple the chances are that there is already a PHP function that can help you. Make sure you always check before going on to make your own PHP functions.
It does, therefore make good sense to create a central file that included all of your functions rather than looking them up each time. If you need to amend the settings this can always be done at a later date.
Sanitizing your database is essential if you want to avoid having to revisit work later on. Getting a good understanding of what SQL injections are essential. Making an SQL cheat sheet will help you.
When you are in the development stage it is important to leave error reporting turned on. You will then be able to see run time errors and therefore identify where they have originated from. The sooner you know your errors the faster you will be able to fix them.
It makes sense not to over document your code. Commenting in your script is wise but comments in every line are unnecessary. Comments should be kept for complicated areas rather than simple actions.
It is a good idea to keep all of your favourite and most commonly used pieces of code in one easy to reach document. You'll be using them all the time and they will become handy throughout your career.
Having a good source editor is essential as all PHP developers will spend a lot of time editing their work. Syntax highlighting is an absolute must and certainly something you need to have a specific software for.
PHP is the most popular web development language, it is estimated that at least twenty million domains are currently built in PHP and sites such as Facebook and Wikipedia are included in that as well as wordpress and drupal site.
If you are attempting something fairly simple the chances are that there is already a PHP function that can help you. Make sure you always check before going on to make your own PHP functions.
It does, therefore make good sense to create a central file that included all of your functions rather than looking them up each time. If you need to amend the settings this can always be done at a later date.
Sanitizing your database is essential if you want to avoid having to revisit work later on. Getting a good understanding of what SQL injections are essential. Making an SQL cheat sheet will help you.
When you are in the development stage it is important to leave error reporting turned on. You will then be able to see run time errors and therefore identify where they have originated from. The sooner you know your errors the faster you will be able to fix them.
It makes sense not to over document your code. Commenting in your script is wise but comments in every line are unnecessary. Comments should be kept for complicated areas rather than simple actions.
It is a good idea to keep all of your favourite and most commonly used pieces of code in one easy to reach document. You'll be using them all the time and they will become handy throughout your career.
Having a good source editor is essential as all PHP developers will spend a lot of time editing their work. Syntax highlighting is an absolute must and certainly something you need to have a specific software for.
No comments:
Post a Comment