Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Ruby Programming Tutorial 2 - Object Orientation

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
22,772
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 27, 2009

http://www.sapphiresteel.com Learn to program Ruby with videos, a free eBook and the source code of all the example programs.

For a much more in-depth Ruby tutorial, you may want to subscribe to my online Ruby course at: http://www.udemy.com/learn-ruby-programming-in-ten-easy-steps/ This has dozens of all-new Ruby videos which go into much more detail.
This tutorial introduces the fundamentals of object orientation including how to define classes with methods and instance variables; and how to construct new objects and initialize them with data. For more information, read Chapter Two of The Little Book Of Ruby which you can download from the SapphireSteel Software web site, the company behind the Ruby In Steel and Amethyst Flex IDEs for Visual Studio.

  • likes, 2 dislikes

Link to this comment:

Share to:

Top Comments

  • I should be preparing for my exam, but this is far more interesting!

  • @Caveej

    i dont know much about c#, but i know that java is WAY different then ruby, because

    1. it's compiled

    2. you have to declare all variables before using them

    3. its hella corporate and way more low level than ruby

    people alway try comparing ruby to java and java to c++.

    you cant do that, their different.

    i guess python is the closest you could get to ruby, but java is completely different

see all

All Comments (22)

Sign In or Sign Up now to post a comment!
  • i put gem install rubygame but it said it needs build tools and need to update my path

  • I have been trying to assign the rubygame command in the command line of cmd prompt but need to update a path as the Devkit failed. i have tried to update it but failed. anyone know how

  • @Caveej Learn as many as you can. Ruby is a great language and it is being used by tech companies now a days, but most likely, like many similar languages, it will go out of style. Java, C, C++, are good languages to have a firm knowledge of.

  • @Caveej I have no idea what uses java actually has, as I really have never bothered to research the programming language. I know it was used by mobile phones for apps, and you could make blackberry apps using java still. There are a lot of freelance jobs available for flash and java programmers. Amazon supports ruby for their webstore app thing that helps amazon sellers use your program. It is all about what you want to do.

  • @Caveej Sorry for the bump, it depends on what you want to do. Ruby is a very nice language for browser embedded programs. Ruby on Rails is one of the programs used to make applications and games on facebook. It all depends on what kind of work you are looking to do. If you want to do freelance programming I would suggest learning all three. (Although C# is almost exclusive to microsoft, C++ is more desired for computer based programs.) If you want to make money using facebook learn ruby.

  • You have the most awesome accent for teaching, my friend. I really liked listening to this. I'm a Perl programmer who's trying to pick up Ruby because it's so much cleaner than Perl for group projects.

  • @you123123123123 java is compiled to bytecode not machinecode, and the bytecode gets interpreted (python as far as i know also compiles to bytecode internally butas a programer you don't see this process (don't know about ruby). An really import difference is objectorientation. In ruby everything is an object. You don't have primitive datatypes like in Java and Ruby has dynamic typing. And also why should you compare something thats the same. If it would be the same, would be no need to compare

  • Cool guys Latin ladies here ** rockmycity.info **

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more