Python v PHP: fair comparison?

Gabriel Genellina gagsl-py at yahoo.com.ar
Wed Nov 15 20:00:02 EST 2006


At Wednesday 15/11/2006 21:28, Bruno Desthuilliers wrote:

>Michael Torrie a écrit :
> > On Tue, 2006-11-14 at 18:55 -0800, Luis M. González wrote:
> >
> >>>- Python is more readable, and more general purpose
> >>
> >>Yes, php is only for web.
> >
> > Absolutely false.
>
>  From a purely technical POV, you're of course right. But PHP has been
>hacked (nobody in it's own mind would pretend it has ever been
>'designed') for web programming, and since the language by itself is
>totally and definitively braindead, using it for anything else is either
>   masochism or lack of knowledge of better solutions. Heck, even Perl is
>better for pure admin/scripting tasks.

Someone here (= at work) needed to write some PDF 
reports, to be run from a bunch of ini-like 
files. Without much research nor analysis nor 
thinking nor approval, he said "let's use this 
php library!". Surely the reports came in a few days. But:
- another dependency was added to the project
- the .ini format -which was suposed to be an 
internal implementation detail- is now part of 
the public interfase to the report generator
- a lot of PHP code duplicates the original class hierarchy (in delphi)
- php sucks :)

Of course there are a lot of unrelated issues 
here, but I think that it's such a braindead 
language which turns people into braindead programmers :)


-- 
Gabriel Genellina
Softlab SRL 

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar



More information about the Python-list mailing list