Re: Recommended Reading?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From a practical view:

*For big web projects:*
Make a plan! Do not start to write code before you exactly know what you
want to do. An important concept in the development of large web
applications is the MVC princinple (Model View Controller) which
basically urges you to seperate the data and the display. Get an insight
into MVC, it will help you in designing your application and it will
come in handy if you decide to implement more ways of displaying your
data than you thought of in the first place.

*For a certain problem:*
Do not reinvent the wheel! PHP is a language with a really large
function library. The amount of extensions that are directly available
is so high that chances are good you'll find a solution right there as a
function ready to use. So: Dig through the documentation at php.net!
Learn what extensions there are. Use the comments in the documentation,
they provide valuable examples.
If you can't solve your problem with the internal functions: Search the
web! The PEAR repository offers a lot of packages solving a lot of
problems BUT they are not always the best solution. Projects like AdoDB,
Propel etc. show that there are often more solutions than you wanted. So
do not compromise too much: If a solution does not exactly fit your
needs, continue the search.

*For the next project:*
DRY (Don't repeat yourself)! Code you've written once can come in handy
for the next project. So start to seperate the code you write into
application specific code and library code. You can reuse your library
for all of your projects.

*For any large development:*
It's a good idea to use a versioning system. Subversion is free and
ready to install on any Apache server. With PHP it's also an ideal
solution for deployment: Just make a release tag and check it out on
your production server. Add some config and off you go!

Happy Development!

OLLi
____________
"You see, Mr. President: The worlds hates America. And for good reason.
(I wont bother going into details)"
[24 319]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux