哪个是电子商务Web应用程序PHP与Java的最佳语言程序? [英] Which is the best language program for ecommerce web application PHP vs Java?

查看:106
本文介绍了哪个是电子商务Web应用程序PHP与Java的最佳语言程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将为10K用户构建一个电子商务Web应用程序。现在我不知道哪个是PHP与JAVA之间最好的语言?

I going to build an Ecommerce web application for 10K Users. Now I don't know which is the best language between PHP vs JAVA?

推荐答案

性能可能不是其中一个因素。对于动态语言,PHP实际上表现相当不错;根据任务,它可能会或可能不会击败其他技术。应用程序模型太过不同,无法直接与Java或ASP.NET进行比较。即使存在可测量的速度差异,它也不大,并且它可能是线性的,这意味着它可以通过投入更多硬件来解决。此外,编程语言本身很少成为瓶颈 - 算法,数据库访问,网络带宽和I / O通常都是常见的罪魁祸首,除非你正在编写真正占用大量CPU的东西。



使用ASP.NET或Java而不是PHP的原因更有可能包括:



平台集成。 ASP.NET提供与.NET和底层Windows操作系统的广泛集成。

通用性。 PHP是专为Web设计的,而.NET和Java是通用平台。使用Java或.NET,您可以轻松地将桌面和Web前端同时放在同一个共享代码上,而PHP不太适合编写桌面应用程序。

代码组织功能。 Java和.NET从一开始就是为OOP而设计的,而PHP中的OOP在某种程度上是事后的想法。 PHP最近引入了命名空间,与.NET和Java提供的相比,它们是有限且笨拙的。企业风格的编程通常在很大程度上依赖于OOP,这使得PHP成为较少的候选者。

感知效果的另一个原因是PHP是免费的(如啤酒)和无处不在 - 每个廉价的共享网络托管公司PHP在他们的标准包中,但.NET或Java服务器将花费你更多。因此,大量小型网站使用PHP,不是因为它是最好的工具,而是唯一的工具。



这并不是说PHP是不适合大型项目 - 它只是不适合'企业'类型的编程。它的优势在于其他地方,如果您可以利用它们,您可以像使用任何其他Web技术一样轻松构建大型应用程序。
Performance is probably not one of the factors. For a dynamic language, PHP actually performs pretty well; depending on the task, it might or might not beat other technologies. The application model simply is too different to compare it directly against Java or ASP.NET. Even if there is a measurable speed difference, it is not big, and it's probably linear, which means it can be solved by throwing more hardware at it. Also, the programming language itself is seldom the bottleneck - algorithms, database access, network bandwidth, and I/O in general are the usual culprits, unless you are writing somehing truly CPU-intensive.

Reasons for using ASP.NET or Java over PHP that are more likely include:

Platform integration. ASP.NET offers extensive integration with .NET and the underlying Windows OS.
General purposeness. PHP was designed specifically for the web, while .NET and Java are general-purpose platforms. Using Java or .NET, you can tack both desktop and web frontends onto the same shared code with little effort, while PHP isn't very suitable for writing desktop applications.
Code organization features. Java and .NET were designed for OOP from the start, while OOP in PHP is somewhat of an afterthought. PHP introduced namespaces very recently, and they are limited and clumsy compared to what .NET and Java have to offer. Enterprise-style programming usually relies heavily on OOP, which makes PHP the lesser candidate.
Another reason for the perceived effect is that PHP is free (as in beer) and ubiquitous - every cheap shared web hosting company has PHP in their standard package, but a .NET or Java server is going to cost you significantly more. Consequently, a huge mass of small websites uses PHP, not because it's the best tool for the job, but the only one at hand.

That's not to say PHP is unsuitable for large projects - it just doesn't go well with the 'enterprisey' kind of programming. Its strengths lie elsewhere, and if you can leverage them, you can just as easily build large-scale applications as you could with any other web technology.


您好,



首先,每种语言都有利弊。电子商务应用没有最佳语言。这完全取决于程序员的技能,环境,你想要达到的功能等。



其次。除非你想练习,否则我认为没有必要开发自己的电子商务应用程序。您可以免费使用许多好的脚本。有许多插件可以下载和自定义电子商务脚本。



干杯。
Hello,

First of all there are pros and cons about every language. There is no 'best' language for ecommerce application. It all depends of programmer skills, environment, funcionality you want to achieve and etc.

Second. I see no point to develop own ecommerce app unless you want to practice. There are many good scripts you can use for free. There are many plugins which you can download and customize ecommerce script.

Cheers.


两者都没有。您应该学习正确的Web开发,而不是担心语言。转到 http://www.asp.net/ [ ^ ]并查看示例和教程。
Neither. You should be studying proper web development, not worrying about the language. Go to http://www.asp.net/[^] and look at the samples and tutorials.


这篇关于哪个是电子商务Web应用程序PHP与Java的最佳语言程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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