On Mon, Nov 15, 2004 at 12:24:42PM +0000, Aidan Delaney wrote:
> I know most of these problems are solved or are well known. For
> example, the separation of business logic from presentation logic can be
> achieved using Pear or some other template system. However, this is
> also possible in languages, such as Perl and Python, which have (in my
> opinion) better properties that support component based usage and object
> oriented development.
Its true that PHP doesn't force you to separate things out into a nice
MVC structure, but it can be done. Remember also that PHP5 has an OOP
paradigm almost identical to Java's.
Just about all of the big projects I've seen in PHP do this. If they
didn't, they would simply fall apart. Of course, I'd imagine there are
plenty of hacked together custom sites which are disgusting.
The big attraction of PHP over another scripting language like Perl or
Python is that it gets you banging out working pages much faster.
I'm also pretty sure that PHP is faster than mod_perl.
It has its problems (security, anyone?), but I wouldn't tell people to
avoid apps simply because they are written in PHP. Seems a bit
bigotted to me.
// Niall.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!