我是一名前端开发人员(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.
在 rubyonrails/ 上,它说Ruby on Rails 是一个开源网络框架这是为程序员的幸福而优化的"
On rubyonrails/ 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 上看到 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.
就像您可以使用 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:
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.
更多推荐
什么是轨道上的红宝石?
发布评论