Slide 1

Slide 1 text

Ruby for complete beginners RubyConf Africa 2026, Keynote OKURA Masafumi, 2026-08-22

Slide 2

Slide 2 text

Jambo!

Slide 3

Slide 3 text

Jina langu ni Masafumi

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

1

Slide 6

Slide 6 text

23

Slide 7

Slide 7 text

3

Slide 8

Slide 8 text

3 2019 2024 2026

Slide 9

Slide 9 text

3

Slide 10

Slide 10 text

3 important questions • What is programming? • How can we get better at programming? • Why is Ruby good for beginners?

Slide 11

Slide 11 text

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)

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

What is programming? 1. 2. 3. What is programming? How can we get better at programming? Why is Ruby good for beginners?

Slide 19

Slide 19 text

What is programming?

Slide 20

Slide 20 text

Writing code?

Slide 21

Slide 21 text

❌Writing code

Slide 22

Slide 22 text

⭕Making abstract things more concrete

Slide 23

Slide 23 text

Abstract / Essential / Valuable • Ideas • Intentions • Thoughts • Businesses • Logics

Slide 24

Slide 24 text

Concrete / Non-essential / Less-valuable • Implementations • Code • Classes • Functions • Documents

Slide 25

Slide 25 text

Example: Anagram check

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

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

Slide 29

Slide 29 text

Another example: e-commerce website

Slide 30

Slide 30 text

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.

Slide 31

Slide 31 text

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

Slide 32

Slide 32 text

Making abstract things more concrete

Slide 33

Slide 33 text

Why?

Slide 34

Slide 34 text

Computers can do concrete things only

Slide 35

Slide 35 text

Human interaction Application Library OS / Middleware Hardware

Slide 36

Slide 36 text

Gradual translation

Slide 37

Slide 37 text

Human interaction Application Library OS / Middleware Hardware

Slide 38

Slide 38 text

Abstraction

Slide 39

Slide 39 text

Human interaction Rails Application Rails, pg gem Linux, Ruby, Postgres CPU

Slide 40

Slide 40 text

Why?

Slide 41

Slide 41 text

Humans are better at abstract things

Slide 42

Slide 42 text

Programming is translation between humans and computers

Slide 43

Slide 43 text

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?

Slide 44

Slide 44 text

How can we get better at programming?

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

I’m a translator 😏

Slide 47

Slide 47 text

How can we get better at translation?

Slide 48

Slide 48 text

Japanese: 🤩 English: 😎 Vim/Neovim: 💪

Slide 49

Slide 49 text

Being good enough at 3 things

Slide 50

Slide 50 text

• Target language • Original language • Vim/Neovim

Slide 51

Slide 51 text

• Computer language • Human language • Problem domain

Slide 52

Slide 52 text

English Japanese

Slide 53

Slide 53 text

English Intermediate ideas Japanese

Slide 54

Slide 54 text

Understanding

Slide 55

Slide 55 text

English Understanding Intermediate ideas Japanese

Slide 56

Slide 56 text

English + Vim/Neovim Understanding Intermediate ideas Japanese

Slide 57

Slide 57 text

English + Vim/Neovim Understanding Intermediate ideas Expressiveness Japanese

Slide 58

Slide 58 text

Expressiveness

Slide 59

Slide 59 text

Problem domain expressed in human language Understanding Intermediate ideas Expressiveness Software product

Slide 60

Slide 60 text

Being expressive with computer language

Slide 61

Slide 61 text

Being expressive with Ruby

Slide 62

Slide 62 text

How can we get better at programming? • Understanding things well • Being familiar with problem domain • Being expressive • Being familiar with computer languages

Slide 63

Slide 63 text

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?

Slide 64

Slide 64 text

Ruby for complete beginners RubyConf Africa 2026 OKURA Masafumi, 2026-08-22

Slide 65

Slide 65 text

Ruby for complete beginners RubyConf Africa 2026 OKURA Masafumi, 2026-08-22

Slide 66

Slide 66 text

Why is Ruby good for beginners?

Slide 67

Slide 67 text

Understanding

Slide 68

Slide 68 text

How do we understand something?

Slide 69

Slide 69 text

Trials and errors

Slide 70

Slide 70 text

❌0 -> 100 ⭕0 -> 10 -> 20… 100

Slide 71

Slide 71 text

How do we understand the problem?

Slide 72

Slide 72 text

Trials and errors

Slide 73

Slide 73 text

Gradual understanding

Slide 74

Slide 74 text

How can we gradually program?

Slide 75

Slide 75 text

Exploratory Programming

Slide 76

Slide 76 text

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

Slide 77

Slide 77 text

The goal is not code

Slide 78

Slide 78 text

The goal is understanding

Slide 79

Slide 79 text

Why is Ruby good at Exploratory Programming?

Slide 80

Slide 80 text

fi Example: Anagram nder

Slide 81

Slide 81 text

No content

Slide 82

Slide 82 text

No content

Slide 83

Slide 83 text

No content

Slide 84

Slide 84 text

No content

Slide 85

Slide 85 text

No content

Slide 86

Slide 86 text

No content

Slide 87

Slide 87 text

No content

Slide 88

Slide 88 text

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.

Slide 89

Slide 89 text

Another example: Alba

Slide 90

Slide 90 text

No content

Slide 91

Slide 91 text

No content

Slide 92

Slide 92 text

No content

Slide 93

Slide 93 text

No content

Slide 94

Slide 94 text

Ruby is a framework for thinking

Slide 95

Slide 95 text

Ruby is a framework for understanding

Slide 96

Slide 96 text

Ruby is a framework for expressing

Slide 97

Slide 97 text

Let’s build things with Ruby

Slide 98

Slide 98 text

Let’s build things with Ruby so that we are better programmers

Slide 99

Slide 99 text

No content