Web应用程序语言的良好组合

发布于 2024-09-11 01:54:22 字数 382 浏览 0 评论 0原文

我查看了一些提出的问题,发现许多问题都涉及最好的网络应用程序语言。我很好奇研究 Web 应用程序语言的组合,可能有些语言可以很好地相互补充。目前,我可能的 Web 应用程序语言列表是:

  • PHP
  • Ruby on Rails
  • JavaScript
  • AJAX(本身并不是一种真正的语言)
  • Grails

我知道 JavaScript 和 AJAX 等某些语言可以很好地协同工作,但我很好奇休息。 PHP 和 JavaScript 怎么样? Rails 与其他工具兼容吗?是否有可能考虑使用多种语言的组合?我知道有些可能用于不同类型的应用程序,但我想重点关注的不仅仅是其中之一。感谢您的帮助。任何和所有评论都将受到赞赏。

I've looked around some of the asked questions and I noticed many questions dealing with THE best web application language. I'm curious into looking into a combination of web application languages, possibly some that would compliment each other well. At the moment my list of possible web app languages at the moment are:

  • PHP
  • Ruby on Rails
  • JavaScript
  • AJAX (not really a language on its own)
  • Grails

I know that certain ones like JavaScript and AJAX work well together but I'm curious about the rest. What about PHP and JavaScript? Does Rails play well with others? Is looking to use a combination of languages even a possibility? I know that some may be used for different kinds of applications but I would like to focus on more than just 1 of them. Thanks for the help. Any and all comments are appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

笔芯 2024-09-18 01:54:22

你把一切都搞混了。

PHP 和 RoR (Ruby on Rails) 是服务器端脚本技术(Rails 并不是真正的编程语言)。他们可以生成提供给用户的内容(即:HTML 文件),但他们可以做更多的事情。如果您想与用户交互(即:允许他们留下评论等),您需要一种服务器端语言。

另一方面,Javascript(以及部分 AJAX)完全在客户端运行。您将主要使用 JS 和 Ajax 来改善用户体验,但请记住以即使 JS 关闭也能正常工作的方式对您的站点进行编码。

一般来说,作为服务器端脚本的补充,您需要一个数据库,其中最流行的是支持 SQL(结构化查询语言)的关系型数据库,如 MySQL、SQL Server、Oracle 等。

那么,什么是“最适合您的”组合?这确实取决于。 PHP+MySQL 托管广泛可用且价格低廉,并且 PHP 拥有庞大的用户社区,以及许多免费的库和框架供您使用。因此,如果您刚刚进入 Web 开发,我建议从 PHP+MySQL 开始。

You are mixing everything up.

PHP and RoR (Ruby on Rails) are server-sided scripting technologies (and Rails is not really a programming language). They can generate content that is served to the user (ie: HTML files), but they can do a lot more. You NEED a server-side language if you want to interact with your users (ie: allow them to leave comments, and etc.).

Javascript (and AJAX, partially) on the other hand runs completely on the client side. You'll mainly use JS and Ajax to improve user experience, but remember to code your site in such a way it works even if JS is off.

Generally, as a complement to your server-side scripts you need a database, and among them the most popular ones are relational DB's that support SQL (Structured Query Language), like MySQL, SQL Server, Oracle, etc.

So, what's the "best" combination for you? It really depends. Hosting with PHP+MySQL is widely available and it's cheap, and PHP has a massive user community, and many freely available libraries and frameworks for you to use. So if you are just getting into web development, I'd suggest starting with PHP+MySQL.

我们的影子 2024-09-18 01:54:22

Rails 不是一种语言,而是一个框架。 Ruby 是一种语言。

Grails 不是一种语言,而是一个框架。语言是 Groovy。

Ajax 不是一种语言,而是一个为描述 DHTML 而创造的营销术语,而 DHTML 是为描述使用 JavaScript 操作 DOM 元素和样式而创造的营销术语。

无论是 PHP 和 Python、Perl 和 Java、JavaScript 和 Erlang,您都可以根据您想要完成的任务一起使用任何语言。

如果你正在寻找学习的东西,我会说 JavaScript(并且认真学习它......不要依赖框架作为拐杖),因为它是网络中的主要前端语言 -世界。但这只是我的偏好。

如果您能让我们更深入地了解您正在从事的工作,那么也许有人可以为您提供更好的配对语言建议。

Rails is not a language, it's a framework. Ruby is the language.

Grails is not a language, it's a framework. The language is Groovy.

Ajax is not a language, it's a marketing term coined to describe DHTML, which was a marketing term coined to describe using JavaScript to manipulate DOM elements and styles.

Regardless if it's PHP and Python, Perl and Java, JavaScript and Erlang, you can use any languages together depending on what you're trying to accomplish.

If you're looking for something learn, I'd say JavaScript (and get down and dirty and really learn it... don't rely on a framework as a crutch) because it's the primary front-end language in the web-world. But that's just my preference.

If you could give us a little more insight into what you're working on then maybe someone can give you a better suggestion of languages to pair up.

与君绝 2024-09-18 01:54:22
  1. 编程语言只是实现目标的一种手段,因此重点应该始终放在目标上。正如人类语言的目标是交流,因此语言相对不重要。

  2. Javascript 是客户端脚本语言,而您提到的其他内容都是服务器端脚本语言。无论您使用哪种服务器端语言,都必须使用 Javascript 进行客户端脚本编写。

  3. 其余 3 种语言都是开源语言。就我个人而言,我会选择最流行的技术,因为

    a.有一个很大的社区,这确保了该技术得到广泛应用,因为我希望其他第三方应用程序能够与我的应用程序很好地结合在一起。

    b.较小的没有。缺陷,因为某人或其他人会报告它并且社区会尝试修复。

    c.动态的未来版本:由于社区希望看到有一些具有竞争力的技术的功能,因此他们总是希望添加该功能。一项优秀的技术如果围绕它建立的社区非常少,那么它就会自行消亡,因为没有未来的版本,并且慢慢地落后于竞争对手。

下一个重要标准是该技术是否真正适合我的应用。就像如果我使用一个非常慢的嵌入式系统处理器,我不能使用 python,我将不得不使用 C。

在上述所有情况下,我个人喜欢 PHP。 PHP 拥有一些最好的 CMS 软件,这让生活变得轻松,并且有大量免费代码可供使用,甚至被企业广泛采用。

  1. A programming language is just a means of achieving a goal, hence the focus should always be on the goal. Just as human languages the goal is communication, hence the languages is relatively not important.

  2. Javascript is client side scripting language, while rest of the things that you have mentioned are serverside scripting languages. No matter what server side language you use you would have to use Javascript for client side scripting.

  3. The rest of the 3 languages are opensource languages. Personally I would choose the most popular technology because

    a. There is a big community, which ensures that the technology is widely adapted because I would like other third party applications gelling well with my application.

    b. Lesser no. of flaws, since someone or the other would report it and the community would try to fix.

    c. Dynamic future release: Since the community would like to see feature which are there is some competitive technology they would always want to add the feature. An excellent technology which has very less community built around it dies its own death since there are no future release and slowly it falls behind the competition.

The next important criteria would be is the tech really suits my application. Like if I am using a very slow embedded system processor, I cannot use python I will have to use C.

Well in all above cases I personally love PHP. PHP has some of the best CMS s/w, which makes life easy and there is lots of code available for free and widely adapted by even enterprises.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文