简体   繁体   English

Python程序员:学习ruby(用于rails)

[英]Python programmer: Learning ruby (for rails)

I'm a moderately competent Python programmer, and am considering working on my first web-app; 我是一名中等能力的Python程序员,正在考虑开发我的第一个网络应用程序; it seems a very large number of FOSS webapp code is written in Ruby (ie Rails), and I suspect that might help with my learning curve (ie for building a decent, if useless webapp). 似乎有很多FOSS webapp代码是用Ruby编写的(即Rails),我怀疑这可能有助于我的学习曲线(即构建一个体面的,如果没用的webapp)。

There is lots of material for learning Ruby on the interwebs ofcourse, but wondering if there are any particular tips / resources / approaches that might be handy in moving from Python to rails? 有很多材料可以在课程的互联网上学习Ruby,但是想知道是否有任何特定的技巧/资源/方法可以从Python转移到rails?

Michael Hartl's Ruby on Rails Tutorial is by far the best introduction to Rails I've been able to find online. Michael Hartl的Ruby on Rails教程是迄今为止我能够在网上找到的最好的Rails入门。 It's very easy to understand what's going on if you've already got experience in web application development in general. 如果您已经拥有一般的Web应用程序开发经验,那么很容易理解正在发生的事情。 Versions of the tutorial for Rails 2.3.8 and Rails 3 are available. 可以使用Rails 2.3.8和Rails 3教程的版本。 The introduction also discusses learning Ruby first vs learning Rails first. 介绍还讨论了首先学习Ruby和学习Rails。

Not only does it teach how to use Rails, it explains common Rails conventions (the Rails Way). 它不仅教授如何使用Rails,还解释了常见的Rails约定(Rails方式)。 I think this, in particular, is what you are looking for. 我认为这尤其是你正在寻找的东西。 It also encourages the use of good practices such as git source control and test-driven development, which is cool. 它还鼓励使用git源代码控制和测试驱动开发等良好实践,这很酷。

To start getting your head around the similarities/differences between Ruby & Python, you may want to take a look @ this page on ruby-lang.org. 要开始了解Ruby和Python之间的相似点/差异,您可能需要在ruby-lang.org上查看@此页面 It is super basic, but at a minimum gives you the terminology & concept translation you may need to get started. 它是超级基础,但至少为您提供了开始时可能需要的术语和概念翻译。 I tend to learn new things best by making mental comparisons to concepts I am familiar with. 我倾向于通过对我熟悉的概念进行心理比较来最好地学习新事物。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM