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

Ruby for complete beginners

Ruby for complete beginners

Avatar for Masafumi Okura

Masafumi Okura

August 22, 2026

More Decks by Masafumi Okura

Other Decks in Programming

Transcript

  1. 1

  2. 23

  3. 3

  4. 3

  5. 3 important questions • What is programming? • How can

    we get better at programming? • Why is Ruby good for beginners?
  6. self.introduction • Name: OKURA Masafumi (Masafumi is my rst name)

    • Title: Freelance software developer • Works/Activities: Authoring Alba gem (JSON serializer), founding of Kaigi on Rails (a Rails conference in Tokyo) • Likes: Coffee, joining conferences (RubyConf Africa is the 7th Ruby fi conference I’ve attended this year so far)
  7. What is programming? 1. 2. 3. What is programming? How

    can we get better at programming? Why is Ruby good for beginners?
  8. e.g. anagram check Abstract • We want to check if

    two words are anagrams or not Concrete • Strip each word, make each word down case, sort each word and check if they are equal
  9. e.g. What E-commerce sites do? Abstract • We want to

    sell things • Payment system • We want to communicate with • Noti cations system customers • We want to store customer data fi Concrete • Database for customers storing name, address, etc.
  10. e.g. What E-commerce sites do? Still Abstract • Payment system

    • Stripe and its client library • Noti cations system • Email delivery with Sendgrid • Database for customers storing • PostgreSQL server with a name, address, etc. fi More Concrete schema
  11. How can we get better at programming? 1. 2. 3.

    What is programming? How can we get better at programming? Why is Ruby good for beginners?
  12. How can we get better at programming? • Understanding things

    well • Being familiar with problem domain • Being expressive • Being familiar with computer languages
  13. Why is Ruby good for beginners? 1. 2. 3. What

    is programming? How can we get better at programming? Why is Ruby good for beginners?
  14. New concept: Exploratory Programming 1. Write code to solve problems

    (which might be real problems) 2. Understanding problems better by observing code and its behavior 3. Go back to 1 until we are sure we understand problems well enough
  15. Ruby’s strengths • Powerful stdlib: `combination`, `group_by`, `strip`, etc. When

    you need it, there it is. • Powerful ecosystem: Rails offers even more vocabularies. It extends builtin classes so it feels natural as if it existed from the beginning. • Powerful expressiveness: It expresses what it does, not how it does. With method chains, it reads as English.