Develop Rock-Solid Code In PHP: Lay The Foundation, Part 1
By Amol Hatwar2004-01-21
Make it platform-independent
You must also use abstraction when accessing resources like databases that are external to PHP. Say your application uses MySQL as a database server to cut costs. If you decide to have a more feature-rich database later, you will have to change the code in your application. Making massive changes to code is always a drudgery and an error-prone process. Using abstraction isolates changes to parts that can be easily changed. You do not have to redo the entire application.
Ensure that you write platform-independent code. It makes your application more adaptable and scalable.
Tutorial pages:
|
First published by IBM developerWorks
|
|||||||||
You might also want to check these out:
|
Leave a Comment on "Develop Rock-Solid Code In PHP: Lay The Foundation, Part 1"
You must be logged in to post a comment.
Link to This Tutorial Page!

