5 ms·
Are you learning Ruby at the same time, or do you have prior experience with the language aside from RoR? Ruby "feels" quite different from PHP, so if you are
by thinkalone 16y ago
Are you learning Ruby at the same time, or do you have prior experience with the language aside from RoR? Ruby "feels" quite different from PHP, so if you are tackling it in addition to learning Rails, possibly it would be better to stick to Ruby tutorials and scripts that run locally, then stepping up to learning Rails.
Also, if it's Rails that's giving you trouble, have you considered starting with a smaller framework like Camping or Sinatra? That feeling of none of your code working can be frustrating, but maybe it's because you missed some of the beginning steps with Ruby and it's making things more difficult than they should be!
- LeBlanc 16y agoI also recommend learning Ruby before Rails. I tried it the other way and was often very confused as to why something would work or not because Ruby and Rails both do a lot of things that seem like magic to a new user. Plus, hacking in Ruby can be a lot of fun. There are a lot of really neat tricks you can use to do really cool things.
- pedalpete 16y agoWhen I told a friend I was giving up on Rails and explained why, he also recommended learning Ruby alone. I didn't understand why until he explained " the caller doesn't have to use curly braces to signify a hash if the hash is the last argument in the call. For methods that only take a single hash as an argument, this is pretty easy to understand. " This resolved a huge issue I was having with my Ruby, but I find this to be a really poor way to write a language. Maybe it will just take more getting used to. We hear people say that English is so difficult to learn because of these 'rules and exceptions', so maybe I just need to get that mentality and realize that just because something worked in one instance, it won't in another. I will spend more time focusing on learning Ruby. i was always thinking the problems I was having was due to rails.