Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ruby Habits - 1st Edition

Ruby Habits - 1st Edition

This was our first session of Ruby Habits so we wanted to make a short introduction to some basic things and make sure all our members are at the same level.

1 to 11: Ruby Habits Introduction
12 to 32: Cool stuff to do with Ruby
33 to 50: A Brief History of Ruby
51 to 53: Projects

Pilar Huidobro

February 26, 2015
Tweet

More Decks by Pilar Huidobro

Other Decks in Programming

Transcript

  1. WE WOULD LIKE TO GIVE A BIG THANK YOU TO

    @Viennarb without whom we wouldn’t be here having this meet up Rochuspark for having us at their lovely location
  2. OUR GOAL • Meet on a regular basis (min. 1/month)

    • Be as open as possible - giving everyone a chance and space to speak up and ask questions. • Welcome people from all walks of life, and all skill levels. • Learn Ruby together
  3. HOW THE MEET UPS WILL RUN • Bring a laptop!

    • Small intro into what we’ll be working on that day • Work in groups, or big groups, or groups by level - whatever suits you • Feedback: • on how far we got • on how you liked it • on what you’d like to do next time
  4. AFTER THE MEET UP • Post our work on Github

    • Post a recap on the blog • Mail out a newsletter for our members who couldn’t attend • Keep in touch on FB, Twitter and email
  5. GOOGLE FORM HTTP://GOO.GL/FORMS/KMIAM6KJB1 • Name • What do you hope

    to get out of Ruby Habits? • Describe your approximate level of knowledge of Ruby • Are you familiar with any other programming languages?
  6. $$$

  7. A BRIEF LOOK INTO RUBY • History • What is

    Ruby? Why use Ruby? • Installing Ruby • Ruby gems
  8. –Matz “I hope to see Ruby help every programmer in

    the world to be productive, and to enjoy programming, and to be happy. That is the primary purpose of Ruby language.”
  9. RUBY’S DEVELOPMENT • 1993 - first envisaged • 1996 -

    Version 1.0 • 1998 - English homepage • 1999 - ruby talk • 2000 - surpassed python’s popularity in Japan + first English book • early 2013 - Version 2.0 • late 2013 - semantic versioning (v2.1.0) • From late 2014 to today - Version 2.2.0
  10. RUBY C 3.times do puts “Hello World!” end int i

    = 1; while (i < 3) { printf(“Hello World!); }
  11. INSTALLING RUBY ON DIFFERENT COMPUTERS • http:// rubyinstaller.org/ • OS

    X comes with Ruby pre-installed • Before Mavericks it was Ruby 1.8, now it’s Ruby 2.0 Windows Mac • https://www.ruby- lang.org/en/ documentation/ installation/ Linux
  12. MANAGING DIFFERENT VERSIONS OF RUBY • RVM (https://rvm.io/) • rbenv

    (https://github.com/sstephenson/rbenv) • chruby (https://github.com/postmodern/chruby)
  13. A GEM IS A LIBRARY OF PRE-WRITTEN RUBY CODE WE

    CAN USE TO MAKE GREAT (MORE INFO: HTTP://GUIDES.RUBYGEMS.ORG/WHAT-IS-A-GEM/)
  14. • Making and running ruby programs • Object oriented programming

    crash course • Let’s make a Sinatra web app! • A git-tastic intro session • How to make life easier with Rake • Making fun games with gosu • Handling errors and bugs! • Making a blog with octopress