Re: Python or PHP?



I've been a PHP and Perl programmer (amongst others) for 10 years or
more now, and a Python coder for 3 or so.

I have come to hate PHP now, it's pseudo-OOP is awful, it's dog slow at
handling XML, it's so easy to use that most of the programmers I've had
contact with are very sloppy and do things like extract($_GET); or put
database usernames and passwords in index.php. I also have to agree
that php.net/manual seems to be the main reference that coders use -
which is not good if the comments are wrong!

Python seems to force you to write better code, maybe because of the
indentation, exception handling, proper OOP etc. Plus it's not so tied
into web stuff, in fact most of my Python programming is for the
desktop.

I still love Perl, it's a bit of an art form, as "there's more than one
way to do it", whereas Python usually only allows one way to do it,
which may or may not be a better mantra....

I've come to allocate PHP the same standing as ASP, VB or Java - the
language is OK, but the programmers are usually crap.

.



Relevant Pages

  • Re: Python or PHP?
    ... Bad programmers are able to write bad programs in any ... Maybe there are more bad php programmers than python ... I think a website or even a large portal is a well constructed database ...
    (comp.lang.python)
  • Re: Who uses Python?
    ... I should have been more clear, when I posted "programmers" I meant ... I am getting the idea that most python "programmers" use python more ... Good professional programmers don't have a single language. ... PHP is an odd case; ...
    (comp.lang.python)
  • Re: If you *had* to port a lisp webapp...
    ... 'mainstream' language, what target language would you choose? ... that programmers often put too much emphasis on the language at the ... We may not think Java, PHP, python or perl are as good as CL, but to ...
    (comp.lang.lisp)
  • Re: Does Python really follow its philosophy of "Readability counts"?
    ... with enforcing that "shouldn't" in the language itself? ... In Python, direct access to pointers is a MUST NOT. ... where you are allowed to mess with the implementation. ... human assembly language programmers? ...
    (comp.lang.python)
  • Re: [PHP] Re: Re: Re: php-cli vs python
    ... anyway on the topic, ive never used python, but i run gentoo and portage is ... php does have some annoyances, but i find they can almost always be handled ... In order to make a long term decision about a language, ... Library support ...
    (php.general)