473,797 Members | 3,166 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP v Python: fair comparison?

I don't know if this is a fair comparison or not. Any comments
appreciated.

- Python is more readable, and more general purpose
- PHP has awful backward compatibility
- PHP has a lower barrier to entry
- Most inexpensive web-hosters support PHP, but not Python
- PHP has far more pre-writen scripts available
- mod_python is difficult to set up, and use, and is buggy and prone to
crash
- There is more demand for PHP developers, than Python developers

Nov 2 '06 #1
10 1892
walterbyrd wrote:
I don't know if this is a fair comparison or not. Any comments
appreciated.

- Python is more readable, and more general purpose
- PHP has awful backward compatibility
- PHP has a lower barrier to entry
- Most inexpensive web-hosters support PHP, but not Python
- PHP has far more pre-writen scripts available
- mod_python is difficult to set up, and use, and is buggy and prone to
crash
- There is more demand for PHP developers, than Python developers
Hi,

I just had a talk/meeting with a representative of my provider(ISP) about
our machine, and after that we went to get a beer in the sun.
He told me that his company was focussing more and more on Python because
many (some?) organisations perceive it as a more serious language than PHP.
That is what he claimed.
Bullocks if you ask me, and he agreed, but that is what some clients of him
think for some reason.

I never used Python seriously myself (only a little in a CMS called ZOPE),
so I won't make a judgement myself.

Regards,
Erwin Moller
Nov 2 '06 #2
Erwin Moller wrote:
>
I just had a talk/meeting with a representative of my provider(ISP) about
our machine, and after that we went to get a beer in the sun.
He told me that his company was focussing more and more on Python because
many (some?) organisations perceive it as a more serious language than PHP.
That is what he claimed.
How people perceive you, of course, has much to do with the image that
you try to project. As it's election season here in the US I will use
politics as an analogy. A politician has to stand for something. If you
change your platform every other day in response to criticism, then
you'll be seen as a lightweight. The public doesn't trust someone who
blows with the wind.

That's the problem with PHP. The developers don't seem to know what
makes the language successful. Development is so focused on appeasing
detractors that they're willing to sacrifice backward compatibility. If
it's not this feature being deprecated then it's that feature being
changed/removed. It's as though winning the PHP vs. Python or PHP vs.
Java or whatever debate is more important than being useful.

Nov 2 '06 #3
walterbyrd wrote:
I don't know if this is a fair comparison or not. Any comments
appreciated.

...
- mod_python is difficult to set up, and use, and is buggy and prone to
crash
Most of the time when people have problems with mod_python it is
because they use outdated versions, read the documentation for the
wrong version, or don't even bother to read or understand the
documentation in the first place. It is accepted that the documentation
could be a lot better, but there is a very active mailing list where
you can get help, but a lot of people don't even do that.

So mod_python is more than usable if you put the effort in to
understand it properly. There are some known issues at present which
are more an inconvenience than a problem and even they are fixed in a
release hopefully not too long away.

Perhaps you would like to come over onto the mod_python mailing list
and enumerate your issues in detail and we can address your questions
and point out where you may have gone wrong or what the issue is,
rather than simple suggesting it is all crap.

Graham

Nov 2 '06 #4
..oO(Chung Leong)
>How people perceive you, of course, has much to do with the image that
you try to project. As it's election season here in the US [...]
Maybe they should use PHP on the election machines in Florida ...
>That's the problem with PHP. The developers don't seem to know what
makes the language successful. Development is so focused on appeasing
detractors that they're willing to sacrifice backward compatibility.
I partly agree, but there are some things that simply _must_ be changed,
regardless of backward compatibility. There were some real errors made
in the beginning of PHP (register_globa ls, just to name one). Fixing
them can't be done without breaking compatibility. But I consider that a
good thing. Properly written scripts still work, others need a rewrite.

Micha
Nov 2 '06 #5

gr*****@dscpl.c om.au wrote:
Perhaps you would like to come over onto the mod_python mailing list
and enumerate your issues in detail and we can address your questions
and point out where you may have gone wrong or what the issue is,
rather than simple suggesting it is all crap.

Excuse me, but I did no such thing. I thank you for your response, but
I will thank you not to put words in my mouth. Re-read my original
post, I never suggested it was all crap, or anything of the sort.

Nov 3 '06 #6
walterbyrd wrote:
gr*****@dscpl.c om.au wrote:
Perhaps you would like to come over onto the mod_python mailing list
and enumerate your issues in detail and we can address your questions
and point out where you may have gone wrong or what the issue is,
rather than simple suggesting it is all crap.


Excuse me, but I did no such thing. I thank you for your response, but
I will thank you not to put words in my mouth. Re-read my original
post, I never suggested it was all crap, or anything of the sort.
Your words were 'difficult to set up, and use, and is buggy and prone
to crash'. That 'crap' means 'something of extremely poor quality', in
my part of the world, how you described it gives similar connotations.
Anyway, you can say that 'crap' may have been the wrong word to use,
but then you didn't have anything good to say about it either. :-)

Nov 3 '06 #7
Michael Fesser wrote:
That's the problem with PHP. The developers don't seem to know what
makes the language successful. Development is so focused on appeasing
detractors that they're willing to sacrifice backward compatibility.

I partly agree, but there are some things that simply _must_ be changed,
regardless of backward compatibility. There were some real errors made
in the beginning of PHP (register_globa ls, just to name one). Fixing
them can't be done without breaking compatibility. But I consider that a
good thing. Properly written scripts still work, others need a rewrite.

Micha
There are ways you can implement changes without breaking earlier code.
For example, you can supercede register_global s with an "import"
keyword, like this:

<?php

import get $pid, $sort = 0;

If the keyword is present, then no auto registration occurs and only
those listed are available. That confines the change to just new code.

Another way you can handle changes is to toggle between new and old
behavior depending on file extension.

Basically if there is a will, there is a way. Unfortunately the PHP
folks seems to believe that if code changes required are small, then
they're okay. That's crappy assumption to make. Not all codebases are
actively managed. Even small changes would be a major effort if someone
has to sit down and figure out what some existing code does. Moreover,
when you have code that's widely used, the logistics of distributing
the change are formidable.

Nov 3 '06 #8

gr*****@dscpl.c om.au wrote:
Your words were 'difficult to set up, and use, and is buggy and prone
to crash'.
Those are not *my* words. I have never used mod_python, and I have no
personal opinion. However, I have been trying to do some research,
reading forums and the like. I thought I made it clear, that was just
what I've read, and I am asking for other opinions.
>From what I have read, a lot of people seem to have a lot of trouble
with mod_python.

I posted here because I wonderd what people on this forum thought of
mod_python.

Nov 3 '06 #9
<comp.lang.ph p>
<walterbyrd>
<2 Nov 2006 07:21:03 -0800>
<11************ **********@h48g 2000cwc.googleg roups.com>
I don't know if this is a fair comparison or not. Any comments
appreciated.

- Python is more readable, and more general purpose
- PHP has awful backward compatibility
- PHP has a lower barrier to entry
- Most inexpensive web-hosters support PHP, but not Python
- PHP has far more pre-writen scripts available
- mod_python is difficult to set up, and use, and is buggy and prone to
crash
- There is more demand for PHP developers, than Python developers
Its doesnt really matter one way or the other .

Even if python does become more popular - any web hosting company who
removes php would be cutting their own thoats by losing x percent of
existing customers and preventing x percent of potential new customers
from signing up .
--
www.phpchatroom.co.uk
Nov 3 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

699
34266
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro capabilities, unfortunately. I'd like to know if it may be possible to add a powerful macro system to Python, while keeping its amazing syntax, and if it could be possible to add Pythonistic syntax to Lisp or Scheme, while keeping all of the...
59
4317
by: Hugh Macdonald | last post by:
I've recently been trying out various different GUI frameworks in Python and was wondering if I could get your input on the pros and cons of the different ones... wxPython: I love the programming side of wxPython, but I find it's just so slow to initialise in the first place. Tkinter: While it's fast to load up, the syntax has never really appealed to me
114
9890
by: Maurice LING | last post by:
This may be a dumb thing to ask, but besides the penalty for dynamic typing, is there any other real reasons that Python is slower than Java? maurice
40
2998
by: Xah Lee | last post by:
is it possible in Python to create a function that maintains a variable value? something like this: globe=0; def myFun(): globe=globe+1 return globe
159
13510
by: petantik | last post by:
Are there any commercial, or otherwise obfuscators for python source code or byte code and what are their relative advantages or disadvantages. I wonder because there are some byte code protection available for java and .NET, although from what i've read these seem to be not comprehensive as protection schemes
50
2666
by: walterbyrd | last post by:
I don't know if this is a fair comparison or not. Any comments appreciated. - Python is more readable, and more general purpose - PHP has awful backward compatibility - PHP has a lower barrier to entry - Most inexpensive web-hosters support PHP, but not Python - PHP has far more pre-writen scripts available - Newer versions of mod_python require Apache 2.0, which few hosters have
20
7813
by: W. Watson | last post by:
I downloaded python-2.5.msi and installed it. I believe its editor is IDE. I understand there's a Win editor called pythonwin. I believe it's in the download pywin32-210.win32-py2.5.exe, but I'm not sure if this exe file has just the editor or all of Python. Comments? If not how do I get the PythonWin editor by itself? BTW, one of the features I did not like of IDE is the limited file Print command. It puts everything in 16pt type, and...
59
2535
by: Kevin Walzer | last post by:
From the introduction to PyObjC, the Python-Objective-C bridge on Mac OS X: "As described in Objective-C for PyObjC users the creation of Objective-C objects is a two-stage process. To initialize objects, first call a class method to allocate the memory (typically alloc), and then call an initializer (typically starts with init). Some classes have class methods which perform this behind the scenes, especially classes that create cached,...
270
8169
by: Jordan | last post by:
Hi everyone, I'm a big Python fan who used to be involved semi regularly in comp.lang.python (lots of lurking, occasional posting) but kind of trailed off a bit. I just wrote a frustration inspired rant on my blog, and I thought it was relevant enough as a wider issue to the Python community to post here for your discussion and consideration. This is not flamebait. I love Python, and I'm not out to antagonise the community. I also...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10469
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10209
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9066
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7560
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2934
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.