On Wed, Mar 16, 2011 at 9:30 PM, Fily Salas <li...@ruby-forum.com> wrote:
> Hi, > > I'm currently trying to learn Ruby without even trying to look at RoR > just yet thinking that I should first have a solid fundamentals on Ruby > I hope on the right path, the thing is that I was also learning PHP and > MySQL and I was wondering that if I learn RoR after learning Ruby I > might not need PHP since according to what I have heard with RoR I could > do anything PHP is capable of, correct. > > correct > If I learn RoR is there a reason why I would need PHP? If there isn't I > want to concentrate in learning RoR and not PHP. > correct > > Is RoR a lot harder than PHP? > nothing is easier than rails for web development > > Can RoR do everything PHP can do? > > and much more.... but since php is so mature there are much more libraries out there already that do a lot > Is RoR 100% compatible with MySQL? In other words can RoR interact with > MySQL like in PHP? > completelly > > Thanks a lot! > > If you have ever programmed in any language you dont need to learn ruby to use rails, you will mostly use simple programming concept at the beginning and you can learn anything else as you learn rails. The thing about ruby is that is like c# mixed with basic mixed with c++, let me explain that. everything is an object like in c# so you can do this 5.to_s as you see and integer is not a simple data type is really and object and has its methods and everything "inside", same with this "hello there".split(" ") the string "hello there" is also an object and has its methods and properties. ruby is also like c++ and basic in the sense that you can any a sintax that resembles to both of them, this is confusing at first but at the end is convenient, here is an example. puts "hello" and puts("hello") one like in basic with the spaces passing the method parameter and one like in c++ with parentesis passing the paremeter, block are flexible too, look 5.times { puts "hello" } like in c++ is the same as 5.times do puts "hello" end as in basic. You wont need much more than that to start creating you first rails app. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.