Ruby on Rails

Status
Not open for further replies.

Sg4

Digital Media Guru
Nov 18, 2006
319
1
0
Brooklyn
For you coders out there, what are some good resources to learn Ruby on Rails or PHP. Which of the two languages do you prefer? I live in NYC also, so if you know of some actual classes that would be useful too. Thanks.
 


Ruby is a programming language, Ruby on Rails is a framework, sorta like .NET from MS. I do use Ruby so I can't tell you much about either, but I do use PHP and therefore I recommend it.

PHP is great for most things if you know how to use it. There is a lot of free support on the net in various forums. The best way to learn it depends on your personal style.

I learned PHP by reverse-engineering existing scripts, figuring out how they worked, and using the online manual at php.net as a handy reference for the more esoteric functions.

If you want to take a class, make sure the instructor knows his shit and isn't a douchebag like my C++ instructor was many years ago. If your instructor sucks, then you will think learning it is harder than it really is.
 
PHP is great for starting out and for light weight scripts.

Ruby is also great, but there is a lot less support for it, because it has a much smaller portion of the market. It is a bit harder to find people to help you out if you are having some troubles with code.
Rails is fantastic when you are building a large website, interactive user app, or a blog, or something..
If you are building a scrapper program, theres no need for Rails. The same way you wouldn't use a PHP Framework (like Cake, or PHPonTrax) to do it, you'd write standalone PHP.

I prefer Ruby (on Rails) when I'm doing a big site with users logging in, and doing things to a database, blah blah... I'm currently rewriting one of my PHP sites in Rails because it will make me much easier to organize and improve.
PHP is great for writing a quick 5 minute script and having it be able to run on almost any server out there. (Most don't support Ruby by default) Of course, PHP is easier to do this in for me since I've used it for atleast 6 years, while I've been learning Ruby for only the last 6 or so months..

I'm too lazy to recap, so see if you can make some sense of the above =)
 
Rails is much more powerful than PHP, and Ruby's syntax and style is more human-like and fluent. Development with Rails can be done much, much quicker than PHP. You can visit The Pragmatic Programmers, LLC and pick up the 'Agile Web Development with Rails - 2nd Edition' book. The PDF is only $19. It covers Rails 1.2 which will be shipping soon.

You will find Ruby to be much more logical than PHP. There's also #ruby-lang and #rubyonrails on irc.freenode.net - each channel has around 400 people in it. There's a lot of support for Ruby and Rails, and I'm sure you'll love it once you get going :)
 
i would go with php, but then i'm biased. i'm also looking at playing around with a little python as well.
 
i feel your paid, totally unrelated my spanish teacher walks in and tells us she cant teach and that we have to learn from the books... its fucking spanish bitch you have to teach the fucking class.. lol trust me listen to this man above he knows what hes saying.
 
For you coders out there, what are some good resources to learn Ruby on Rails or PHP. Which of the two languages do you prefer? I live in NYC also, so if you know of some actual classes that would be useful too. Thanks.


Guess it depends on what you want to do. How much programming experience do you have, and how much web programming experience do you have?

If you don't have much web programming exp, I would learn some php. PHP does a good job exposing you to the basic concepts of web programming (i.e. form submission and handling). It's not as hidden behind a framework like ruby on rails. PHP is also great for adding some quick and dirty dynamic content to a page. Plus, there is a ton of php code out there you can learn from.

PHP is also installed almost everywhere, and you can be up and running with php from the get go. Ruby on Rails apps are a little more difficult to deploy, mainly because the environment isn't as mature as PHP's. Also, most hosts don't support ROR, since it has quite a different deployment model than PHP.

Neither way really puts a limit on what you can do. There are great php apps and great rails apps. It comes down to how you want to use it. If you are doing a bunch of quick hit scripts, I would go with PHP. If you are doing a full blown web app, go with ROR.

No matter what you do, learn some basic php. Plus, php.net has pretty good docs. You should be able to learn most of this on-line. After you learn php, if you have the time, learn ruby, because is a wonderful language which you will appreciate even more after using php.

J
 
I know html and css pretty well. I can hack through PHP, I just haven't taken the time to sit down and REALLY learn it. Great advice here ...
 
For you coders out there, what are some good resources to learn Ruby on Rails or PHP. Which of the two languages do you prefer? I live in NYC also, so if you know of some actual classes that would be useful too. Thanks.

Maybe put an ad up on newyork.craigslist.org and ask for someone to tutor you on it?
 
Hmm, if you are a newbie I would suggest PHP & CURL. In my opinion those will be easier to learn and you can do pretty much anything with CURL what you can do with your browser manually.

I have done few projects with RoR, but I suck at it and I prefer PHP. I think RoR is kind of overkill for the basic stuff.
 
Status
Not open for further replies.