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

Introduction To Ruby @ VIT Pune

Introduction To Ruby @ VIT Pune

A Introductory talk on Ruby Programming Language @ VIT Pune covering basic concepts of Ruby

Prathamesh Sonpatki

March 01, 2012
Tweet

More Decks by Prathamesh Sonpatki

Other Decks in Programming

Transcript

  1. Outline Introduction To Ruby Dive Into Ruby Examples Questions Introduction

    to Ruby Prathamesh Sonpatki 1st March 2012 6 PM VIT Active Linux Users Prathamesh Sonpatki Introduction to Ruby
  2. Outline Introduction To Ruby Dive Into Ruby Examples Questions 1

    Introduction To Ruby What is Ruby ? Hello world Calculator Prathamesh Sonpatki Introduction to Ruby
  3. Outline Introduction To Ruby Dive Into Ruby Examples Questions 1

    Introduction To Ruby What is Ruby ? Hello world Calculator 2 Dive Into Ruby Object Oriented Ruby Altering Classes Prathamesh Sonpatki Introduction to Ruby
  4. Outline Introduction To Ruby Dive Into Ruby Examples Questions 1

    Introduction To Ruby What is Ruby ? Hello world Calculator 2 Dive Into Ruby Object Oriented Ruby Altering Classes 3 Examples Codechef Download Manager Prathamesh Sonpatki Introduction to Ruby
  5. Outline Introduction To Ruby Dive Into Ruby Examples Questions 1

    Introduction To Ruby What is Ruby ? Hello world Calculator 2 Dive Into Ruby Object Oriented Ruby Altering Classes 3 Examples Codechef Download Manager 4 Questions Prathamesh Sonpatki Introduction to Ruby
  6. Outline Introduction To Ruby Dive Into Ruby Examples Questions What

    is Ruby ? Hello world Prathamesh Sonpatki Introduction to Ruby
  7. Outline Introduction To Ruby Dive Into Ruby Examples Questions What

    is Ruby ? Hello world Ruby is Dynamic Language Prathamesh Sonpatki Introduction to Ruby
  8. Outline Introduction To Ruby Dive Into Ruby Examples Questions What

    is Ruby ? Hello world Ruby is Dynamic Language Pure Object Oriented Prathamesh Sonpatki Introduction to Ruby
  9. Outline Introduction To Ruby Dive Into Ruby Examples Questions What

    is Ruby ? Hello world Ruby is Dynamic Language Pure Object Oriented Open Source Prathamesh Sonpatki Introduction to Ruby
  10. Outline Introduction To Ruby Dive Into Ruby Examples Questions What

    is Ruby ? Hello world Ruby is Dynamic Language Pure Object Oriented Open Source Focus on Simplicity and Productivity Prathamesh Sonpatki Introduction to Ruby
  11. Outline Introduction To Ruby Dive Into Ruby Examples Questions What

    is Ruby ? Hello world Ruby is Dynamic Language Pure Object Oriented Open Source Focus on Simplicity and Productivity Elegant Syntax Ruby is simple in appearance, but is very complex inside, just like our human body
  12. Outline Introduction To Ruby Dive Into Ruby Examples Questions What

    is Ruby ? Hello world Ruby is Dynamic Language Pure Object Oriented Open Source Focus on Simplicity and Productivity Elegant Syntax Ruby is simple in appearance, but is very complex inside, just like our human body Prathamesh Sonpatki Introduction to Ruby
  13. Outline Introduction To Ruby Dive Into Ruby Examples Questions What

    is Ruby ? Hello world Listing 1: Simple Ruby Snippets chaitanya@oneric:˜>> irb 1.9.3 −p0 :001 > puts ” Hello , World” Hello , World => nil 1.9.3 −p0 :002 > Prathamesh Sonpatki Introduction to Ruby
  14. Outline Introduction To Ruby Dive Into Ruby Examples Questions What

    is Ruby ? Hello world Prathamesh Sonpatki Introduction to Ruby
  15. Outline Introduction To Ruby Dive Into Ruby Examples Questions Object

    Oriented Ruby Listing 2: Simple Ruby Snippets 1.9.3 −p0 :002 > 1 + 2 => 3 1.9.3 −p0 :003 > 2 ∗ 4 => 8 1.9.3 −p0 :004 > 2 ∗∗ 5 => 32 1.9.3 −p0 :005 > 6 / 2 => 3 1.9.3 −p0 :006 > 7 % 4 => 3 1.9.3 −p0 :007 > 1.2 /3 => 0.39999999999999997 1.9.3 −p0 :008 > Prathamesh Sonpatki Introduction to Ruby
  16. Outline Introduction To Ruby Dive Into Ruby Examples Questions Object

    Oriented Ruby Prathamesh Sonpatki Introduction to Ruby
  17. Outline Introduction To Ruby Dive Into Ruby Examples Questions Object

    Oriented Ruby Name Any Object Oriented Languages That You Know :) Prathamesh Sonpatki Introduction to Ruby
  18. Outline Introduction To Ruby Dive Into Ruby Examples Questions Object

    Oriented Ruby Name Any Object Oriented Languages That You Know :) Everything is Object in Ruby Prathamesh Sonpatki Introduction to Ruby
  19. Outline Introduction To Ruby Dive Into Ruby Examples Questions Object

    Oriented Ruby Name Any Object Oriented Languages That You Know :) Everything is Object in Ruby Integers Floats all are Objects Prathamesh Sonpatki Introduction to Ruby
  20. Outline Introduction To Ruby Dive Into Ruby Examples Questions Object

    Oriented Ruby Name Any Object Oriented Languages That You Know :) Everything is Object in Ruby Integers Floats all are Objects Even nil is Object Prathamesh Sonpatki Introduction to Ruby
  21. Outline Introduction To Ruby Dive Into Ruby Examples Questions Codechef

    Download Manager Classes are not CLOSED in Ruby Listing 3: Simple Ruby Snippets 1.9.3 −p0 :013 > class String 1.9.3 −p0 :014?> def g e t s i z e 1.9.3 −p0 :015?> length 1.9.3 −p0 :016?> end 1.9.3 −p0 :017?> 1.9.3 −p0 :018 > def length 1.9.3 −p0 :019?> 10 1.9.3 −p0 :020?> end 1.9.3 −p0 :021?> end => nil 1.9.3 −p0 :022 > ”a” . g e t s i z e => 10 Prathamesh Sonpatki Introduction to Ruby
  22. Outline Introduction To Ruby Dive Into Ruby Examples Questions Codechef

    Download Manager Let’s See Some examples of problems from www.codechef.com which i solved using Ruby Prathamesh Sonpatki Introduction to Ruby
  23. Outline Introduction To Ruby Dive Into Ruby Examples Questions Codechef

    Download Manager Download Script for To Download Videos from www.railscasts.com // https://github.com/ReverseBitCoders/fifRC Prathamesh Sonpatki Introduction to Ruby
  24. Outline Introduction To Ruby Dive Into Ruby Examples Questions Questions?

    This presentation is made using latex-beamer It is available at https://github.com/prathamesh-sonpatki/talks Prathamesh Sonpatki Introduction to Ruby