You are here: Re: Recommended Reading? « PHP « IT news, forums, messages
Re: Recommended Reading?

Posted by Oliver Grδtz on 10/19/05 04:38

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]

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация