ruby

Entry Level

EP20 – Ruby 101

22 Aug , 2012  

Play

This week Arlo and Ryan talk about Ruby as a language and what to expect. We cover Ruby syntax and other useful features of the language. Funny conversation comparing javascript and php to what we learned from Ruby.

Download: Direct Link

Itunes: itunes link

What’s up with Ruby?

  • Why learn ABOUT ruby?
  • History
  • What makes it different?
    • Everything is an object – similar to javascript?
    • weird variables: @instance $global
  • Benefits of Ruby?
    • inherent multi threading
  • Typeloosish

Ruby Basics

  • In such cases, the objects false and nil equates to false. Every other object like say 1, 0, “” are all evaluated to be true.
  • everything is an object and it has methods. like numbers!
  • variables?
  • arrays?
  • hashes?
  • for – BAD LOOP
  • each – GOOD LOOP
  • syntax? NO SEMICOLON – BAD SEMICOLON
  • methods
  • classes
  • strings
  • lambdas/closures

Try it out!

,


  • http://twitter.com/calicobeard Ben Carson

    Great intro to Ruby on Rails guys! My interest is defintiely piqued and I’ll be checking it out over the next few days.

    • http://www.arlocarreon.com Arlo Carreon

      Awesome! Make sure you share your project and experience with us.

    • http://profiles.google.com/bacarso Ben Carson

      * Ruby (not Ruby on Rails) sorry.

  • Ganginator

    Good episode! Can’t wait for the next one!

  • Pingback: Path of the Rubyist | Cats & Code