IronRuby On RailsVS. Ruby On Rails(入门) [英] IronRuby On Rails VS. Ruby On Rails (Getting Started)

查看:85
本文介绍了IronRuby On RailsVS. Ruby On Rails(入门)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是具有几年经验的C#/ASP.NET/MVC/Silverlight开发人员.我正在尝试开始我的Ruby On Rails学习.我目前正在尝试使自己对ROR有一种真实的感觉.

I am a C#/ASP.NET/MVC/Silverlight developer with a few years experience. I'm trying to kickstart my Ruby On Rails learning. I'm currently trying to get a real feel for ROR.

作为.Net开发人员,您倾向于使用标准的IDE(Visual Studio),一些标准的数据库(SQL Server,Oracle等)以及用于设置Web 2.0应用程序样式的特定方式(XHTML/CSS) ,Silverlight等)

As a .Net developer, you tend to use a standard IDE (Visual Studio), a few standard databases (SQL Server, Oracle etc.), and a particular way in which to style your web 2.0 application (XHTML/CSS, Silverlight etc.)

我要走哪条路线?我听说过IronRuby,从我读到的内容来看,将其转换为与Rails(IronRuby on Rails)结合使用几乎是完整的.还是我直接使用Ruby On Rails!?

What route do I take? I've heard about IronRuby and from what i've read thats nearly complete in terms of converting it for use with Rails (IronRuby on Rails). OR Do I just go straight into using Ruby On Rails!?

与使用Ruby On Rails相比,使用IronRuby on Rails会给我带来什么好处?

How will I be benefited from using IronRuby on Rails over using Ruby On Rails?

非常感谢您的帮助.

推荐答案

IDE

大多数RoR开发人员使用简单的文本编辑器(在MacOS上为Textmate,在Windows上为Scite)-主要是因为为Java/C#等语言设计的IDE的大多数功能(重构,代码完成)不能轻易地在动态模型上应用. Ruby之类的语言.但是 Netbeans 到目前为止效果很好(另一方面, Aptana Studio -基于Eclipse).

IDE

Most RoR developers use a simple text editor (Textmate on MacOS, Scite on Windows) - mostly because most features (Refactoring, Code Completion) of IDEs designed for languages like Java/C# can't be applied that easily on a dynmic language like Ruby. However Netbeans does well so far (on the other hand there is Aptana Studio - based on Eclipse).

由于RoR进行了大量抽象,因此使用哪种RDBMS并不重要. MySQL Postgres 可能是最好的选择,因为它们是最常用的选择(因此您可以希望得到持续的支持).我不会基于对性能的激烈争论来选择,而是根据它们附带的服务/支持来选择.

Since RoR does a lot of abstraction it doesn't really matter what RDBMS you use. MySQL and Postgres might be the best choices since they are the most used ones (so you can hope for continuous support). I wouldn't start to chose based on the flamewar about performance, rather on the services/support that come with them.

标准是结合(X)HTML的ERB(类似于ASP内联脚本).但是,还有一些其他标记,例如 HAML ,对于某些项目来说可能就足够了.

The standard would be ERB (similar to ASP inline scripts) combined with (X)HTML. However there are other markups like HAML which might be enough for some projects.

使用IronRuby,您可以访问.NET框架并与其他.NET库互操作.您可能还用静态C#编写了应用程序的某些部分.根据某些基准,它可能是比原生Ruby更快",尽管恕我直言,这并不是真正的优势.

Using IronRuby you get access to the .NET framework and interop with other .NET libraries. You might also write some parts of your application in static C#. According to some benchmarks it might be "faster" than native Ruby, not a real advantage though IMHO.

目前,我建议您开始使用常规的RubyOnRails-如果您仍然希望进行切换,则也许以后可以打开(一旦IronRoR足够稳定).

At the moment I would recommend you to get started with regular RubyOnRails - you might be able to switch later on (once IronRoR is stable enough) - if you should still desire to switch.

这篇关于IronRuby On RailsVS. Ruby On Rails(入门)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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