The ProgrammersTalk Community
Forum Register Search Today's Posts Mark Forums Read
Register

Go Back   The ProgrammersTalk Community > Web Programming > Ruby


Welcome to the The ProgrammersTalk Community forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Tags:

Closed Thread
 
LinkBack Thread Tools    Display Modes   
  #1 (permalink)  
Old 06-10-2007, 04:27 PM
donsd
Posts: n/a
[SOLVED] Would the programming language, ruby, be too difficult for a nonprogrammer t

suse linux

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
  #2 (permalink)  
Old 06-10-2007, 04:31 PM
Alice
Posts: n/a
Possibly. Learning your first programming language is more about learning the concepts that go along with writing code than the language you pick. Ruby is a fully functional object oriented language, so you're getting most of the things you'd need to take with you to other languages. I'd say go for it.

Note: I haven't learned Ruby myself, but I know a fair amount about it and have heard good things from others who have used it.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
  #3 (permalink)  
Old 08-01-2007, 10:52 PM
piscean piscean is offline
Novice
Join Date: Aug 2007
Posts: 5
iTrader: (0)
piscean is on a distinguished road
Ruby is my first real programming language and I love it. Check out the book "Learn to Program" by Chris Pine. All of the examples are in Ruby. The book doesn't really show you how to do too much with Ruby, but it is a good quick introduction to Ruby and programming in general.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
  #4 (permalink)  
Old 08-01-2007, 10:57 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
Programming Expert
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,109
iTrader: (0)
HelloWorld will become famous soon enoughHelloWorld will become famous soon enoughHelloWorld will become famous soon enough
Quote:
Originally Posted by piscean View Post
Ruby is my first real programming language and I love it. Check out the book "Learn to Program" by Chris Pine. All of the examples are in Ruby. The book doesn't really show you how to do too much with Ruby, but it is a good quick introduction to Ruby and programming in general.
I personally never touched Ruby before, I don't even know how does it look lol.. But when I went to the website, they had the "Try Out" ruby section (which I think is pretty cool), is that coded in Ruby?

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
  #5 (permalink)  
Old 08-02-2007, 12:19 AM
rpgfan3233 rpgfan3233 is offline
PT Staff
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 4
Join Date: Jul 2007
Posts: 118
iTrader: (0)
rpgfan3233 has a spectacular aura aboutrpgfan3233 has a spectacular aura aboutrpgfan3233 has a spectacular aura aboutrpgfan3233 has a spectacular aura aboutrpgfan3233 has a spectacular aura about
There is one thing that stopped me from continuing on with Ruby. In fact, it was found in a tutorial...
Code:
def mtdarry
    10.times do |num|
        square = num * num
        return num, square if num > 5
    end
end
I understand now that it is a conditional return, but to me it would be more logical to use
Code:
if num > 5 return num, square
or whatever that would be. Honestly, I first thought of it as:
Code:
def mtdarry
    10.times do |num|
        square = num * num
        return num, square
        if num > 5
            end
end
Unfortunately, I tried that, and it didn't work since the function definition itself wasn't closed. I know that some languages don't immediately return a value when the line with return on it is executed, so that's why it made some sense. I ended up sticking with the tiny bit of Python that I know. At least that one seems more logically structured to me! For some people, that logic may work. However, I find it to be more of a nuisance for understanding the program than:
Code:
def mtdarry ():
    for num in range(0, 10):
        square = num * num
        if num > 5: return num, square
Cleaner and more logical to me, except for the lack of the iterative for loop such as for (num = 0; num < 10; num += 1) that is found in C, C++, Java, C#, various dialects of BASIC, etc.

I'm not saying that Ruby is a poor language for programming, of course. I'm simply stating that it didn't appeal to me the way that some other languages do. Because it didn't appeal to me, I warn that it may not appeal to you or some future readers. I choose Python for my own reasons, just as Ruby programmers choose Ruby for their own reasons.

__________________
"C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off."
-- Bjarne Stroustrup, creator of what is now known as C++
For more quotes by Bjarne Stroustrup, check out http://www.research.att.com/~bs/bs_faq.html#really-say-that.
Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Closed Thread


Thread Tools
Display Modes

   Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 10:48 PM. Powered by vBulletin
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO © 2007 ProgrammersTalk Sedo - Buy and Sell Domain Names and Websites project info: programmerstalk.net Statistics for project programmerstalk.net etracker® web controlling instead of log file analysis


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50