On Wed, Mar 16, 2011 at 9:30 PM, Fily S. [email protected]
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.
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.
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
out there already that do a lot
Is RoR 100% compatible with MySQL? In other words can RoR interact with
MySQL like in PHP?
Thanks a lot!
If you have ever programmed in any language you dont need to learn ruby
use rails, you will mostly use simple programming concept at the
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
as you see and integer is not a simple data type is really and object
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
ruby is also like c++ and basic in the sense that you can any a sintax
resembles to both of them, this is confusing at first but at the end is
convenient, here is an example.
one like in basic with the spaces passing the method parameter and one
in c++ with parentesis passing the paremeter, block are flexible too,
like in c++ is the same as
as in basic.
You wont need much more than that to start creating you first rails app.