As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am php developer and I'm trying to change php to ruby/rails.
I've read "Rails for PHP developers" by Pargmatic, but it is very simple.
Now I need to learn all about ruby classes (namespacing, abstraction, extending, factory/signleton patterns, requesting parent class methods, etc), but all guides and manuals I've seen was to simple, they was good only for beginners as a introduction.
Reading Ruby reference isn't good idea, because it's to difficult for understanding (my skills in ruby are not so good yet), so I need some guide for "professional developers" with many examples. Good example is "php|architect's Zend PHP 5 Certification Study Guide" - http://www.amazon.com/architects-Zend-Certification-Study-Guide/dp/0973862149
Are there any book/guide/course to solve my problem?
Thanks!
This is the book from the master (aka Ruby creator) himself: http://www.amazon.com/Ruby-Programming-Language-David-Flanagan/dp/0596516177
You need this.
"Metaprogramming Ruby" is well worth adding to your bookshelf.
http://www.amazon.co.uk/Metaprogramming-Ruby-Program-Like-Facets/dp/1934356476/
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm looking for a very concise guide to using rails. I've done lots of work with other similar frameworks like Django so I just need a very short tutorial. Does anything like that exist?
Thanks!
This is best guide for those who are new to rails..
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
If you're willing to put up with a few quick video tutorials, Rails for Zombies by EnvyLabs (railsforzombies.org) gives a good overview of the framework.
If you decide to check it out, know this: at the time of this writing, there's one error in the tutorials. The code they show you for writing a basic redirect is missing a prepended slash on the URI. (At least, according to the interpreter they use for the accompanying exercises, it's incorrect.)
Other than that small gripe, in my opinion it's a great way to onboard yourself and colleagues in Rails, before drilling down into the gritty details.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I started learning ruby on rails few weeks ago. I don't completely understand metaprogramming yet, but first I want to ask whether metaprogramming is worth learning if I only want to use ruby on rails to build websites. The example I see for metaprogramming is for generating undefined class method on the fly, but is it necessary?
My background: I use python on a daily base for scientific computing and have limited experience with django.
Metaprogramming is by no means a requirement to writing websites.
If you're beginning to program in Ruby, it's probably best not to worry about it until you're much more familiar with the language. The added flexibility it affords you comes at the expense of complexity and obscurity.
It depends entirely on the functionality of the website. Learn the basic idea of meta programming , then carry on with what you're doing. You'll then know if you are trying to solve something that meta programming would help with, and you can dig in more.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have been developing in Rails for about 3 years now, and would like to learn more about the Rails internals themselves. Rails 3 supposedly provides nice API's for integrating more closely with Rails, but I'm having a hard time finding documentation on how to use them. Here are some examples of what i'm looking for:
Rails Initialization Process
http://guides.rubyonrails.org/initialization.html
Arel Walkthrough
http://railscasts.com/episodes/239-activerecord-relation-walkthrough
Routing Walkthrough
http://railscasts.com/episodes/231-routing-walkthrough
http://railscasts.com/episodes/232-routing-walkthrough-part-2
Crafting Rails Applications
http://pragprog.com/book/jvrails/crafting-rails-applications
Are there any other good resources that an help as a guided tour of how Rails works?
(and please don't say read the source code.. I'm looking for a more guided explanation)
You may like this articles:
http://piotrsarnacki.com/2010/07/31/rails3-modularity/
http://piotrsarnacki.com/2010/06/18/rails-internals-railties/
But, you should start writing such articles by own, ie try to write how controllers instance variables are visible in views or prepare description of all rails modules and classes - this will make you much more familliar with rails.
The Ruby Metaprogramming Book has some chapters in the end teaching how ActiveRecord internals is made up.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
More I'm going on with MongoID driver for MongoDB nosql models in my Rails apps, more I feel don't knowing so much about the full expressiveness, elasticity and powerness of its constructs.
Mongoid docs is one of the clearest, easy and usefull documentation around the blok, but still not enough to understand the implication in the deep.
Think for example at the design/performance/scalability/refactorability implication of using embedded one to many vs referenced one to many
I'm looking for source of examples and eventually online tutorials, articles and books to go deeper here.
Thanks in advance
luca
Design and scalability are more related to the database itself. I'm going through "MongoDb the definitive guide" book right now before jumping into mongoid to gain better understanding
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
Background about myself:
I have about 3 years experience working in Java/J2EE. I am currently pursuing MS in Software Engineering at a reputed university. I have done several classwork projects on Ruby on Rails and can be considered at Intermediate level expertise with ROR.
I have an interview coming up next week for a Ruby on Rails developer position at a startup. I have already prepared all the basics of Ruby on Rails but didn't get a lot input on the questions asked for ROR developers. Can you guys help me with the preparation? Any materials, suggestions would be welcome.
Here are some responses prepared earlier: What Ruby and Rails Developers Ought To Know?
Some of this is going to depend on the level of the role your are looking at. If I was interviewing someone from the Java world I would be probing to make sure they understood some of the common Ruby idioms, particularly blocks and closures.
Create a github account and made some patch to several project.
Be active in Open source community. It's really a good start