为什么不使用PHP作为桌面编程语言? [英] Why NOT use PHP as a desktop programming language?

查看:101
本文介绍了为什么不使用PHP作为桌面编程语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

针对此问题,我相信很多人会对象PHP不是桌面编程的最佳选择,而是推荐使用Ruby或Python之类的东西。我认为讨论一下为什么会很有趣。

In response to this question, I'm sure many people would object that PHP isn't the best choice for desktop programming, and would recommend something like Ruby or Python instead. I thought it would be interesting to have a discussion on why.

除了关于PHP是否总体上是一种好的语言的争论之外,您对于一种好的桌面编程语言的标准是什么? (而不是Web开发)?

Aside from arguments about whether PHP is a good language overall, what are your criteria for a good desktop programming language (as opposed to web development)?

推荐答案

您说除了关于PHP是否整体上是一种好语言的争论之外 –但我认为这是问题的症结所在。 PHP之所以成为一种Web开发语言变得流行,是因为它与现有的Web工具堆栈(内联HTML,良好的Apache集成,内置的MySQL支持等)很好地集成在一起-不是,因为它很好-设计的语言,很容易使用。(顺便说一下,不是)。

You say "Aside from arguments about whether PHP is a good language overall" -- but I think that is the crux of the issue. PHP became popular as a web development language because it integrates well with an existing stack of web tools (inline HTML, good Apache integration, built-in MySQL support, etc) -- not because it is well-designed language that is easy to work in. (It's not, by the way.)

如果您不使用网络并使用PHP进行桌面开发,您将拥有什么剩下?一种弱类型,功能不一致的语言,不支持桌面用户界面,并且标准库令人发指。人们不会那样使用PHP,因为那根本没有道理

If you take the web away and use PHP for desktop development, what do you have left? A weakly typed, inconsistently-featured language with no support for desktop UIs and a horrific mess of a standard library. People don't use PHP that way because it just doesn't make sense.

这篇关于为什么不使用PHP作为桌面编程语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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