It will save your time. Wireframe your projects. It is very important to actually give the mechanics of you apply some thought before sitting down to start coding.
Understand your Project
One cannot code a project that they do not fully understand. If one does not understand exactly what it needs to do, and how it needs to it, one cannot build it.
OOP (Object Oriented Programming) is basically a technique for programming with the utilization of classes, or Objects, which integrate like things, evacuate the requirement for redundancy of code and play out the essential assignments of a generation just.
The four principles of object-oriented programming are encapsulation, abstraction, inheritance, and polymorphism.
Stay away from anything Ending with_once()
It is important to note that include() essentially gives us a notice in the event that it falls flat, while requiring to use () ends the content with a lethal mistake when it comes up short. What we keep in mind is that incorporate once () and require once () is to a great degree hard on server assets.
Keep a deep eye on Error Reporting On:
The first thing to do when beginning another venture is to turn blunder answering to E_ALL, and just turn it off within ten seconds. Other than that, with blunder giving an account of, one can get any little mistakes that will inevitably grow up cause issues.
Use a Framework only if you Need One
For small projects avoid using framework in my opinion. Frameworks assistance helps a person in the monotonous, despite the fact that it can be figured out how the systems work first keeping in mind the end goal to make things basic. One also stands less possibility of composing awful code when another person has composed the vast majority of it.
PHP’s inbuilt functions are yours
If anyone wishes to count the amount of keys in an array, they can loop through the array and simply increment a value for each iteration. Or just use the built in PHP function count(), which does just what it should. PHP has many built-in functions that can do what you need them to, so check out the manual to make sure the task is done in the best way possible.
Protect Your Database from hackers
The best and most secure path is to utilize mysql_real_escape_string() to be added to the database. This capacity makes all strings safe as far as statements and different capacities that can hurt the database or contain noxious code, so utilize it to make sure you have ventured out security of your information. Additionally to approve all POST and GET strings, never utilize $_REQUEST, and ensure all shape submitted information is of the correct sort and incentive before adding it to a database question.
POST is better than GET
This isn’t generally conceivable, in light of the fact that GET is easy to copy. Basically add something to address bar and get it hacked. GET is the easy method to do pagination and permalinks, yet when utilizing structure accommodation particularly, remain with POST, it’s more secure.
On the off chance that one could make one thing through to anybody perusing this, this is it. One can’t turn into a decent designer by perusing. One can’t turn into a decent designer by watching somebody create. The unparalleled attempted and confided in strategy, is to really compose code. In any case, construct genuine articles! Try not to go and code something that you have no enthusiasm for, or will never utilize. Fabricate what you like, and you will be energized and intrigued by it, and you will learn. At that point, make it magnificent, expand upon it, and improve it.