Starting Ruby on Rails from an Objective-C background
Right now I program exclusively with Objective-C using the Cocoa frameworks to write applications for the Mac OS X and iPhone/iPad platforms. I'm fairly fluent using the Objective-C language as well as the Cocoa and Cocoa Touch frameworks. I also know just enough C to be able to understand ObjC.
One of my projects requires that I write a corresponding web application for use with my iPhone app. I've decided that the best path to go开发者_如何学Python with is Ruby on Rails. What is the easiest transition path to go from Objective-C to Ruby on Rails? Any starter guides/docs/tutorials are appreciated!
Thanks
I think that learning Ruby without Rails first is a good idea. _why's Poignant Guide to Ruby is good for people coming from Objective-C because it doesn't go through how objects send "messages" to each other and all that stuff. After that, you should be able to use the Rails Guides to learn Rails. There are tutorials there. I don't know of any learning material that you have to pay for (like books), though. If that is what you want, I would try searching on Amazon.
I'm nearing the end of this tutorial myself, and I think it's a perfect resource for those who are already familiar with software development, particularly web application development in general. I come from a Java background, but have dabbled in PHP and Python (specifically, Django). This tutorial has given me tremendous exposure to Rails in a very friendly way.
I still have some unanswered questions, but less than I had when I tried learning from other books.
As a side note, the tutorial briefly discusses learning Ruby first then Rails vs learning Rails first then Ruby (it ultimately suggests Rails first).
I'm not sure if it was available back when this question was first asked, but I think http://railsforzombies.org/ is an excellent first tutorial. It introduces the framework in a way that's accessible, interactive and engaging, and it makes a great foundation for further study. I got a lot out of it.
How to make a rails application app as a versioned api in less than 10 minutes.
http://railscasts.com/episodes/350-rest-api-versioning
If you'd like to easily follow along executing code along with the video check out the ascii cast so you may copy and paste as you watch.
http://railscasts.com/episodes/350-rest-api-versioning?view=asciicast
You may want to have rvm installed and use the gem bundler. create new gemset for each project. This will save you hassle with different versions of ruby and gems required for different projects.
精彩评论