Python v PHP:公平比较? [英] Python v PHP: fair comparison?

查看:59
本文介绍了Python v PHP:公平比较?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道这是否是一个公平的比较。任何评论

赞赏。


- Python更具可读性,更通用

- PHP具有可怕的向后兼容性

- PHP的入门门槛较低

- 大多数廉价的网络托管商都支持PHP,但不支持Python

- PHP有更多的预编写可用的脚本

- 较新版本的mod_python需要Apache 2.0,少数主机是


- 对PHP开发人员的需求比Python多开发人员

解决方案

walterbyrd写道:


- PHP有较低的进入障碍



你指的是哪种障碍 - 语法,可用性,......?


也来自我所知道的PHP,语言和API似乎更不稳定

和不均匀。 CMIIW。


问候,

Bj?


-

BOFH借口#219:


递归。如果它再次发生则回电。


walterbyrd写道:


我不是知道这是否是一个公平的比较。任何评论

赞赏。


- Python更具可读性,更通用

- PHP具有可怕的向后兼容性

- PHP的入门门槛较低

- 大多数廉价的网络托管商都支持PHP,但不支持Python

- PHP有更多的预编写可用的脚本

- 较新版本的mod_python需要Apache 2.0,少数主机是


- 对PHP开发人员的需求比Python多开发人员



在大多数情况下,你不会想要编写数据

转换程序,GUI应用程序,Windows服务,COM +对象,

PHP守护进程中的Linux守护进程,简单脚本,套接字服务器/客户端应用程序,

等(但都可以用Python完成)。 Web应用程序只是Python可以解决的许多应用程序中的一个。 PHP通常是

降级为动态网页创建和数据库接口的

Web应用程序。我从来没有把它作为一种语言推广

,可以用来开发一个独立的非网络浏览器

应用程序(但我相信有人会告诉我它可以这样使用

;-)。


我同意你可以使用PHP来做更多的基本Web应用程序

快速且PHP中的一般可用性比Python更普遍。

我认为有一个原因是Java和Python被用来支持更大的应用程序框架
我看到了(例如WebSphere,

WebLogic,Zope等)。


我发现很多托管公司现在都有mod_python(这个
几年前
不是这样的。)在这段时间内,托管费用已经下降了很多,因为获得Python并不需要花费很多(如果有的话)额外费用。


如果对PHP开发人员的需求比Python开发人员更多,我会感到惊讶。 Google在其内部工作数据库中列出了51个PHP工作和168个/ b $ b $ Python工作(我刚刚进行了一次

快速搜索)。


-Larry



如果对PHP开发人员有更多需求,我会感到惊讶

比Python开发人员。 Google在其内部职位数据库中列出了51个PHP职位和168个
Python职位(我刚刚进行了一次

快速搜索)。



是的,但是谷歌是雇用Guido的公司,而且它的大部分时间都是b $ $ $ $ $ $ $ br br br dev br dev dev dev dev dev dev dev dev dev dev dev />

看其他公司会产生不同的结果:


Workopolis:

PHP 120

Python 36

Monster.ca:

PHP超过1000

Python 976


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
- There is more demand for PHP developers, than Python developers

解决方案

walterbyrd wrote:

- PHP has a lower barrier to entry

Which kind of barrier do you mean -- syntax, availability, ...?

Also from what I know of PHP, language and API seem more unstable
and inhomogenous. CMIIW.

Regards,
Bj?rn

--
BOFH excuse #219:

Recursivity. Call back if it happens again.


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
- Newer versions of mod_python require Apache 2.0, which few hosters
have
- There is more demand for PHP developers, than Python developers

For the most part you wouldn''t ever thing about writing data
conversion programs, GUI applications, Windows services, COM+ objects,
Linux daemons, simple scripts, socket server/client applications,
etc. in PHP (but all can be done in Python). Web apps are just one of
the many applications that Python can tackle. PHP is normally
relegated to dynamic web page creation and database interfacing of
a web application. I''ve never seen it promoted as a language
that can be used to develop a standalone non-web browser based
application (but I''m sure someone will tell me that it can be used
that way ;-).

I agree that you can use PHP to do some basic Web apps more
quickly and with more general availability in PHP than Python.
I think there is a reason that Java and Python are used to power
the larger application frameworks that I see (e.g. WebSphere,
WebLogic, Zope, etc.).

I find many hosting companies that have mod_python now (this
wasn''t the case a couple of years ago). Hosting costs have
dropped so much during that time that getting Python doesn''t
cost much (if any) extra.

I''d be surprised if there was more demand for PHP developers
than Python developers. Google lists 51 PHP jobs and 168
Python jobs in their internal jobs database (I just did a
quick search).

-Larry


I''d be surprised if there was more demand for PHP developers
than Python developers. Google lists 51 PHP jobs and 168
Python jobs in their internal jobs database (I just did a
quick search).

Yes, but Google is the company that hired Guido, and that does most of
it''s dev in python.

Looking at other companies yields different results:

Workopolis:
PHP 120
Python 36

Monster.ca:
PHP more than 1000
Python 976


这篇关于Python v PHP:公平比较?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆