什么是轨道上的红宝石? [英] what is ruby on rails?

查看:34
本文介绍了什么是轨道上的红宝石?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名前端开发人员(HTML、CSS、JS 和 jQuery),我懂一点 PHP.我正在尝试了解 Ruby/Ruby on Rails 是什么.

I am a front end developer (HTML,CSS,JS & jQuery) I know a bit of PHP. I am trying to grasp what Ruby/Ruby on Rails is.

http://rubyonrails.org/ 上,它说Ruby on Rails 是一个开源网络框架这是为程序员的幸福而优化的"

On http://rubyonrails.org/ it says "Ruby on Rails is an open-source web framework that's optimized for programmer happiness"

实际上,非梦想的术语,Ruby/Ruby on Rails 有什么特别之处,像我这样的人如何从学习使用它中受益?

In actual, non-dreamy terms, what is special about Ruby/Ruby on Rails, and how can a person like myself benefit from learning to use it?

我的简单问题是:这是谁的妹妹?PHP、mySQL、ASP、coldFusion、jsp、apache?

My simple question is: whose sister is it? PHP, mySQL, ASP, coldFusion, jsp, apache?

它有什么作用?

推荐答案

语言

Ruby 是一种最新的编程语言,与 Perl 和 Smalltalk 共享其大部分传统.您可以在 tryruby.org 上看到 Ruby 的样子(并亲自尝试一下).

The Language

Ruby is a recent programming language that shares most of its heritage with Perl and Smalltalk. You can see what Ruby looks like (and try it yourself) at tryruby.org.

就像您可以使用 PHP 编写网页一样,您也可以使用 Ruby 来做同样的事情.

Just like you can use PHP to write web pages, you can do the same thing with Ruby.

Ruby on Rails 是一组软件设备,可帮助您更轻松地使用 Ruby 编写网站.他们试图促进(简化")的主要事情是:

Ruby on Rails is a set of software devices that help you to more easily write a website in Ruby. The primary things they try to facilitate ("make easy") are:

  1. 将相关数据(例如博客文章及其评论)存储到数据库中.
  2. 接受网络请求并以编程方式响应它们(例如检查用户的密码)
  3. 编写 HTML 使用您的数据,通过布局和模板使其更容易.
  1. Storing related data (e.g. blog posts and the comments on them) to a database.
  2. Accepting web requests and respond to them programmatically (e.g. check a user's password)
  3. Composing HTML using your data, with layouts and templates to make it easier.

Rails",简称Rails",是在对某些应用程序模型(尤其是 MVC)极端偏见的情况下构建的.这意味着与 PHP 不同,任何 .php 源文件对于任何代码都是公平的游戏,Rails 应用程序中的大多数代码都是在特定的、传统的地方编写的.当人们将 Rails 与 PHP 进行比较时,他们经常指出这一点.

"Rails," as it's called for short, is built with extreme prejudice towards certain application models, particularly MVC. What this means is that unlike PHP, where any .php source file is fair game for any bit of code, most code in a Rails application is written in a particular, conventional place. When people compare Rails to PHP, they often point this out.

有很多我没有涉及,但这些是 Rails 最基本的特性.要了解它的外观,我建议观看臭名昭著的创建博客..."截屏视频.

There's a lot I didn't cover, but these are Rails' most basic features. To see what it looks like, I'd suggest watching the infamous, "Creating a Weblog..." screencast.

这篇关于什么是轨道上的红宝石?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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