SitePoint Sponsor |
|
User Tag List
Results 1 to 14 of 14
Thread: What do you think?
-
Jan 30, 2006, 21:28 #1
- Join Date
- Mar 2004
- Posts
- 2,159
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
What do you think?
What's the best way to start learning Ruby? I've heard a lot about it and it seems like a few years down the road it will be huge?
I have very very little previous programming experience, but I've thought about trying to learn. Would I be best to start with PHP or something which generally seems to be accepted as an easier language to learn then others, or should I just buy a ruby book and start plugging away?
-
Jan 30, 2006, 21:57 #2
- Join Date
- Nov 2001
- Location
- Atlanta, GA, USA
- Posts
- 5,011
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Little programming experience? I'd suggest "Why’s (Poignant) Guide to Ruby". I've forwarded that address to people not at all interested in programming and they've enjoyed it. Many have become acclimated with Ruby using that playful tutorial.
Additionally, you may look at the various Rails tutorials and videos out there. The O'Reilly Cookbook taught me a lot, others have been inspired by the 15 minute blog.
My opinion is that you are better off with a decent framework like Rails (or one of the better PHP frameworks) rather than going naked into PHP.Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
-
Jan 30, 2006, 22:11 #3
- Join Date
- Mar 2004
- Posts
- 2,159
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by samsm
Well this shows you how little programming experience I have. I don't think I fully understand what a framwork is opposed to the language? Like is Ruby the language and Rails is the framework? Does the framework just make it easier to develop applications or what is it that a frame work does?
Thanks for the links also...I'll definitely check them out.
-
Jan 30, 2006, 22:20 #4
- Join Date
- Nov 2001
- Location
- Atlanta, GA, USA
- Posts
- 5,011
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by deronsizemore
For any problem you attempt, 99% of it has probably already been solved a few hundred times. Frameworks attempt to address those common problems with the best thought-out solutions available.
Rails just makes it easier to develop database driven web applications with Ruby.Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
-
Jan 30, 2006, 23:40 #5
- Join Date
- Mar 2004
- Posts
- 2,159
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by samsm
Ohh...gotcha. What are some popular PHP Frameworks?
-
Jan 31, 2006, 11:19 #6
- Join Date
- Jul 2005
- Posts
- 124
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
There are a lot of PHP frameworks, if you'd like to take the MVC route Cake, PHP on Trax, and Symfony seem to be the most popular.
-
Jan 31, 2006, 13:17 #7
- Join Date
- Aug 2005
- Posts
- 986
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I think that PHP is a lot harder than Ruby. Everything follows a general pattern in Ruby, but PHP is created by a group of people.
Example: PHP has something called "strlen". You use it to determine the length of a piece of text. There is also "str_repeat", which is used to repeat text. In str_repeat, there is a _ after "str", but there is no _ in "strlen". This makes it very hard to learn PHP, you have to remember every detail.
Please read this PHP code:
Code:for($i = 0; $i < 10; $i++) { echo "hi"; }
Code:10.times{ print "hi" }
It's easier to learn because of (a), and easier to use because of (b).
If you want to use Ruby for web development, check out Rails. (watch the videos if you want some motivation)
-
Jan 31, 2006, 19:54 #8
- Join Date
- Mar 2004
- Posts
- 2,159
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Fenrir2
Whoa, that's cool. The little bit of code you gave there in ruby actually seems like it is written in laymans terms instead of a bunch of jibberish.
I have found a lot of links that I'm going to start looking through to maybe learn some basics of ruby. Do you have any books that are good for beginners? I don't want to get into anything major yet, just get my feet wet, and I prefer to work through a book with tutorials and what not opposed to reading online.
-
Jan 31, 2006, 22:55 #9
- Join Date
- Nov 2001
- Location
- Atlanta, GA, USA
- Posts
- 5,011
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
The Why's guide reads like a book, print it.
When I was first interested in Ruby I went to the library and checked out "Sam's Ruby in 21 Days" (or whatever it was called, you know the genre). Wasn't a bad book, but the Why's chapters are better. I understand wanting a book, but I suspect that whatever you can get from the library is probably satisfactory for beginner level.Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
-
Feb 2, 2006, 00:02 #10
- Join Date
- Mar 2004
- Posts
- 2,159
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by samsm
The why's guide looks nice. Is there a link where can just print the whole book with one click...or do I need to print each section individually? I didn't see anywhere to just click print and let it print the whole thing?
-
Feb 2, 2006, 08:42 #11
- Join Date
- Nov 2005
- Location
- Norway
- Posts
- 26
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
You could download the PDF and print it: http://poignantguide.net/ruby/whys-p...de-to-ruby.pdf
-
Feb 2, 2006, 13:56 #12
- Join Date
- Nov 2001
- Location
- Atlanta, GA, USA
- Posts
- 5,011
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
There are only six sections, I think, so printing six long pages from html would (I suspect) give you a little more control than the pdf, without much more effort. Just my opinion there, your mileage, etc.
Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
-
Feb 2, 2006, 21:34 #13
- Join Date
- Nov 2001
- Location
- Bath, UK
- Posts
- 2,498
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by deronsizemore
It's been done by the same guy who wrote the Poignant Guide, great stuff. I've never seen programming in the browser with such coolnessYou don't even have to install anything to learn Ruby!
DouglasHello World
-
Feb 2, 2006, 21:37 #14
- Join Date
- Nov 2001
- Location
- Bath, UK
- Posts
- 2,498
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by IAIHMB
DouglasHello World
Bookmarks