学习什么:Rails 1.2.4 ->轨道3
我最近说服了我的管理层,我们过时的 Rails 版本 (1.2.4) 已经拖慢了我们的速度,足以保证升级。我们采取的方法是使用现有技术启动一个新项目,而不是进行痛苦的升级。我们对项目的要求已经改变,这会容易得多。
最大的问题其实是我对Rails的了解已经过时了。我在工作中只处理过 Rails 1.2.4,而世界其他地方很久以前就已经发生了变化。由于埋头于工作而不是跟上当前的 Rails 时尚,我错过了哪些主题?
我犹豫是否要随机浏览博客,因为我不确定 Rails 的中间版本之间发生了多少变化。学习 Rails 2.1-2.3 特定的内容是没有用的,这些内容对于 Rails 3 不再有用。
I've recently convinced my management that our outdated version of Rails (1.2.4) is slowing us down enough to warrant an upgrade. The approach we're taking is to start a fresh project with current technology rather than a painful upgrade. Our requirements for the project have changed and this will be much easier.
The biggest problem is actually that my knowledge of Rails is out of date. I've dealt only with Rails 1.2.4 at work while the rest of the world has moved on long ago. What topics have I missed by being buried in my work instead of keeping up with the current Rails fashion?
I'm hesitant to dig through blogs at random because I'm not sure how much has changed between the intervening versions of Rails. It's no use to learn Rails 2.1-2.3 specific stuff that is no longer useful for Rails 3.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
对于应用程序开发人员来说最明显的变化:
如果您需要了解其他约定和 API来自 Rails 1.X,Rails 2.X 中引入并存在于 Rails 3 中。
再怎么强调 RESTful 控制器和作用域将如何帮助您编写更简洁的 Rails具有更高可重用性的应用程序。关于这些主题的大量信息。
有关 Rails 3 开发的进一步阅读:
Most noticeable changes for application developers:
Other conventions and APIs to be aware of if you're coming from Rails 1.X which were introduced in Rails 2.X and exist in Rails 3.
Can't emphasise enough how RESTful controllers and scopes will enable you to write cleaner rails applications with more reusability. Tonne of information floating around on these topics.
Further reading about the development of Rails 3:
我会看一下 Peepcodes 实时升级视频。在其中,他们将 Rails 2 应用程序升级到 Rails 3。这应该会让您对自己的用途有所了解(即使您的升级看起来相当不同),以便您可以做出明智的决定。
I would take a look at Peepcodes live upgrade video. In it they upgrade a Rails 2 app to Rails 3. That should give you some inkling of what you are in for (even though your upgrade would look pretty different) so you can make a somewhat informed decision.
还值得查看 Ryan Bates 的优秀 Railscast,网址为 http://railscasts.com/
他涵盖了很多内容Rails 推出的新功能(最近的截屏视频重点关注 Rails 3),因此它们是加快速度的好方法。
It's also worth checking out the excellent Railscasts by Ryan Bates at http://railscasts.com/
He covers a lot of new features in Rails as they come out (with recent screencasts focusing on Rails 3), so they're a nice way to get up to speed.