Last Sunday I went over a list of possible programming languages to learn. It ended with me decided to learn all of them, but unsure as to what to learn first. I decided to go over each of them and figure out what I thought about them. How would I do this? What I have decided to do is see how complex it is to do the same thing in each language. What better to test out a language than to create a class? Wednesday, I went over the PHP implementation. Today is Ruby’s turn.
Ruby Class
class Person def initialze(firstName, lastName, age) @firstName = firstName @lastName = lastName @age = age end def IntroduceYourself "Hello, my name is " + @firstName + " " + @lastName + ", and I am " + @age + " year(s) old." end end
Ruby Implementation
dan = Person.new("Dan", "Appleyard", 27)
puts dan.IntroduceYourself
My Thoughts
Rubys seems similar to Python. Since I liked Python, I like Ruby. At this point in my limited knowledge of these languages, I don’t really see the differences between Ruby and Python. My final examination will be that of Java.



