From: Eric Hodel Date: 2006-05-12T15:58:06+09:00 Subject: Re: conversion issues On May 11, 2006, at 8:16 PM, corey konrad wrote: >> Yes, I am too currently looking for a language worthy of my "what is >> your favorite number" program. I guess ruby is just 260,000 lines of >> hype. >> >> def favorite_number >> print "what is your favorite number? " >> puts "#{gets().to_i + 1} is better" >> end > > The goal of ruby is to make programming easier and more enjoyable > right? > So isnt it important that a language with that as its goal can express > simple programs in a simple and intuitive way? Intuitive to matz, yes. > I am a begining programmer and i find ruby counter intuitive so far > and that worries me and makes me wonder if i am wasting my time > with. I want to learn how to write software. Thats the bigger > picture i am in right now. Its not personal, I am just trying to > get my feet wet here and make sense of all this stuff. You should think more about what you want and then go looking for the appropriate documentation. You should also experiment with irb. Try: ri Kernel#print ri Kernel#puts ri Kernel#gets ri String#to_i -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com