SlideShare a Scribd company logo
RubyConf China
Why Ruby?
Yukihiro "Matz" Matsumoto
まつもと ゆきひろ
matz@ruby-lang.org
Copyright (c) 2008 Yukihiro "Matz" Matsumoto, No rights reserved
thou
Moore’s Law
The number of Transistors
in LSI Doubles Every
18 Months
Moore’s Law Means:
Computer Grows Exponentially
Faster
Cheaper
More Common
Faster Computer
PCs are Faster than Super
Computers of 20 Years Ago
Cheaper Computers
We can Buy a PC for $400 Now
Common Computers
Now Everyone Owns Computers
Personal Computers
Cell Phones
Cell Phone as a Computer
Cell Phone as a Computer
Everyone is Connected
Broadband
WiFi
Mobile Networks
Influence in Programming
Moore’s Law Changes
Software Complexity
Programming Languages
Software Complexity
No Business Can Be Run
without Software
We Need More Software
Quicker
Cheaper
Humans Don’t Improve
Moore’s Law Does Not Apply to
Humans
Productivity
We Need More Software with
Limited Resources
Productivity
We Have Faster Computers
Development Efficiency At the
Cost of Runtime Efficiency
Productivity
The Most Important Factor of
Language Evolution
Languages are One of the Tools
for Productivity
How Languages Help
Productivity
Sapir-Whorf hypothesis
Language determines the way
we think.
Theorem #1
Languages influence
human thought,
more than you think
Programming Languages
Do programming
languages
influence human
thoughts?
Thinking in Programming
Language
Natural languages are too
ambiguous.
Or, too verbose.
Or, too indirect.
Thinking in Programming
Language.
If programmers think in
programming languages,
They must influence thoughts
as much as
natural languages do.
Theorem #2
"languages" in
Theorem #1 includes
programming
languages.
Why don’t you choose a good
language?
Programming
langugages are so
easy to learn.
What is a good language?
The language that helps thinking
Recursion
BASIC did not allow recursion
Factorial
def fact(n)
if n == 0
1
else
n * fact(n - 1)
end
end
print "6!=", fact(6), "n"
6!=740
A good Language
does not restrict our thought
Factorial Again
print "200!=", fact(200), "n"
200!=78865786736479050355236321393218506
2295135977687173263294742533244359449963
4033429203042840119846239041772121389196
3883025764279024263710506192662495282993
1113462857270763317237396988943922445621
4516642402540332918641312274282948532775
2424240757390324032125740557956866022603
1904170324062351700858796178922222789623
7038973747200000000000000000000000000000
00000000000000000000
Less Restriction
print "200!=", fact(200), "n"
200!=788657867364790503552363213932185062295
13597768717326329474253324435944996340334292
03042840119846239041772121389196388302576427
90242637105061926624952829931113462857270763
31723739698894392244562145166424025403329186
41312274282948532775242424075739032403212574
05579568660226031904170324062351700858796178
92222278962370389737472000000000000000000000
0000000000000000000000000000
Ruby
A good language
Consise
Succinctness is Power
by Paul Graham
Fred Brooks’ Law
Less Lines ≒ Effective
Succinctness is Power
Less Code, Less Bugs
Less Bugs, You Feel Yourself
Smarter.
You can be 10 times (or even
1000 times) more productive
More Factorial
class Factorial {
private static int fact(int n) {
if (n == 1) return 1;
return n * fact(n - 1);
}
public static void main(String[] argv) {
System.out.println("6!="+fact(6));
}
}
6!=740
Succinctness Example
def fact(n)
if n == 1
1
else
n * fact(n - 1)
end
end
print "6!=", fact(6), "n"
6!=740
Ruby
A good language
Inspiring
Functional Factorial
def fact(n)
(1..n).inject(:*)
end
print "6!=", fact(6), "n"
6!=740
A good language
makes better programming
experience
For Better Programming
Experience
Learnability
Efficiency
Memorability
Errors
Satisfaction
According to Dr. Jacob Nielsen
Learnability
How easy is it for users to
accomplish basic tasks the first
time they encounter the design?
Learnability
Usability for Beginners
Important to Acquire New Users
"Common Sense" is the Key
Efficiency
Once users have learned the
design, how quickly can they
perform tasks?
Efficiency
More important than learnability
Efficiency is the top purpose of
languages
Memorability
When users return to the design
after a period of not using it, how
easily can they reestablish
proficiency?
Memorability
Association
Consistency
Orthogonality
Common Sense
No Radical
Errors
How many errors do users make,
how severe are these errors, and
how easily can they recover from
these errors?
Errors
When you see repeated errors,
you have to do something.
Errors are the source of design
inspiration.
Satisfaction
How pleasant is it to use the
design?
Satisfaction
We program to have fun.
Even when we program for
money, we want to have fun as
well.
How Ruby Serves
Learnability
Efficiency
Memorability
Errors
Satisfaction
How Ruby Serves
Learnability
Efficiency
Memorability
Errors
Satisfaction
Learnability
Ruby is very conservative except
for a few places
Quick to learn
Quick to try
Learnability Example
Hello World!
print "Hello Worldn"
Hello World
How Ruby Serves
Learnability
Efficiency
Memorability
Errors
Satisfaction
Efficiency
No Run-Time Efficiency
Ruby focuses on the cost
of programming.
Devlopment Efficiency
Ruby focuses on the cost of
programming by
Simplicity
Consistency
Smartness
Simplicity
Do you like programming
language to be simple?
Probably you do.
Simplicity
Does language simplicity really
help you?
not always.
need more complex tool
sometimes
Need More Complex Tool
Knife vs Chain Saw
Bicycle vs Airplane
Human Heart: No Simple
We love simplicity
We love complexity
We love easy problems
We hate easy problems
Pseudo-Simplicity
Ruby is NOT a simple
language.
Simplicity Example
Rakefile
Rake = Ruby Make
task :default => [:test]
task :test do
ruby "test/unittest.rb"
end
Simplicity Example
In Simpler Syntax
task({:default => [:test]})
task(:test, lambda(){
ruby "test/unittest.rb"
})
Solution-Simplicity
Tool Complexity is OK
if it makes the Solution Simple
Efficiency Example
/bin/cat in Ruby
puts ARGF
It would be more than 50 lines of
code in C
How Ruby Serves
Learnability
Efficiency
Memorability
Errors
Satisfaction
Memorability
Conservativeness helps here too
Easy-to-remember syntax
Ruby looks like other languages
Memorability Example
Can you write /bin/cat -n without
looking anything?
I can, if I use Ruby.
ARGF.each_with_index{|line,i|
printf "%4d %s",i,line
}
How Ruby Serves
Learnability
Efficiency
Memorability
Errors
Satisfaction
Errors
You will see less errors due to
Consistent Syntax Rules
Succinct Code
Less code, Less bug.
How Ruby Serves
Learnability
Efficiency
Memorability
Errors
Satisfaction
Satisfaction
As a result, Ruby is fun to use.
It makes you feel smarter.
Ruby the Language
Ruby is Good for
Text Processing
Web Programming
XML Programming
GUI Applications
Ruby is Good for
Bioinformatics
eXtreme Programming
"I love it. Conceptually it is really clean and sweet."
-- Kent Beck
Why I created Ruby
Just for Fun
Tool for me myself
Ideal tool for Everyday Task
How I created Ruby
Combine Good Things from the
Past
Design Conservative
Design a Tool I Want to Use
To Have Fun
The History of
the Ruby Language
Pre-History
OO Fanboy
Language Geek
In 1993
Project Started
Mere Hobby
Goals
Scripting
a la Perl
Nice Clean Syntax
With OO
Real Goal
To Enjoy
Making Language
Implementation
Programming
Process
Lisp Semantics
Smalltalk OO
Conservative Syntax
Process
Deconstruct Perl
Reorganize into Class Library
Process
Iterators from CLU
Higher-order Functions using
Blocks
Process
Some Spice from Python
..and other languages
Released
1995-12-21
fj.sources
In 1997
Hired by NaCl
Became Full-time OSS
Developer
In 1999
First Book
In 2000
First English Book
Ruby in early 2000s
Became a Language
for Geeks
In 2004
Ruby on Rails
Ruby on Rails
Web Application
Framework
Web development that doesn’t hurt
Ruby on Rails
10x Productive than Java
15 Minutes to code Blog
Enterprise Ruby
Ruby started to be used in the
Enterprise Environment
Enterprise Ruby
Concerns
Fast Enough?
Scales?
Enterprise Ruby
Issues are Matters of
Resource/Money We Put in.
Ruby’s Mindshare
From Java To Ruby
What’s "Enterprise"?
What Major Players
Recommend:
Sun Microsystems
Microsoft
Apple
Etc.
Why Ruby?
Ruby is Productive
Ruby is Motivating
Ruby is Fun
A Message from Ruby
Enjoy Programming!

More Related Content

PPTX
Fine tuning large LMs
PDF
Thomas Wolf "An Introduction to Transfer Learning and Hugging Face"
PDF
The Ring programming language version 1.5.1 book - Part 173 of 180
PDF
The Ring programming language version 1.9 book - Part 97 of 210
PDF
MT and Translator's Tools
PDF
Python overview
PPTX
[PACLING2019] Improving Context-aware Neural Machine Translation with Target-...
PPT
Statistical machine translation for indian language copy
Fine tuning large LMs
Thomas Wolf "An Introduction to Transfer Learning and Hugging Face"
The Ring programming language version 1.5.1 book - Part 173 of 180
The Ring programming language version 1.9 book - Part 97 of 210
MT and Translator's Tools
Python overview
[PACLING2019] Improving Context-aware Neural Machine Translation with Target-...
Statistical machine translation for indian language copy

What's hot (19)

PDF
"Machine Translation 101" and the Challenge of Patents
PPTX
Machine Translation: What it is?
PDF
Hyoung-Gyu Lee - 2015 - NAVER Machine Translation System for WAT 2015
PDF
Developing Korean Chatbot 101
PPTX
Chatbot ppt
PPTX
Past, Present, and Future: Machine Translation & Natural Language Processing ...
PDF
Python enterprise vento di liberta
PPTX
Natural language processing
PDF
2013 ALC Boston: Your Trained Moses SMT System doesn't work. What can you do?
PDF
The Ring programming language version 1.3 book - Part 81 of 88
PPTX
PDF
NLP Deep Learning with Tensorflow
PDF
Large Scale Text Processing
PDF
Embracing diversity searching over multiple languages
PDF
Semi-supervised Prosody Modeling Using Deep Gaussian Process Latent Variable...
PDF
Big Data Spain 2017 - Deriving Actionable Insights from High Volume Media St...
PDF
Li Deng at AI Frontiers: Three Generations of Spoken Dialogue Systems (Bots)
PDF
Chat bot making process using Python 3 & TensorFlow
"Machine Translation 101" and the Challenge of Patents
Machine Translation: What it is?
Hyoung-Gyu Lee - 2015 - NAVER Machine Translation System for WAT 2015
Developing Korean Chatbot 101
Chatbot ppt
Past, Present, and Future: Machine Translation & Natural Language Processing ...
Python enterprise vento di liberta
Natural language processing
2013 ALC Boston: Your Trained Moses SMT System doesn't work. What can you do?
The Ring programming language version 1.3 book - Part 81 of 88
NLP Deep Learning with Tensorflow
Large Scale Text Processing
Embracing diversity searching over multiple languages
Semi-supervised Prosody Modeling Using Deep Gaussian Process Latent Variable...
Big Data Spain 2017 - Deriving Actionable Insights from High Volume Media St...
Li Deng at AI Frontiers: Three Generations of Spoken Dialogue Systems (Bots)
Chat bot making process using Python 3 & TensorFlow
Ad

Viewers also liked (20)

KEY
ruby on rails pitfalls
PPTX
Web并发模型粗浅探讨
PPT
Social Game的技术挑战
KEY
Java Eye Architecture
PPT
Curriculum Night 2009-10
KEY
Problems of the Week
PDF
How to start? The Product
PDF
Millennial media smart-august-2010
PPT
5 things MySql
PDF
IRL: How Geeks Undermine Their Presentations & Conversations With Body Language
PDF
Estandares aprendizaje mcs
PDF
Jan 4 Sermon
PPT
Challenge of SHIMANE - Example of use Ruby in Japanese regional government an...
PDF
BizTalk Practical Course Preview
PPT
Les 2 Informatieverzorging
PPT
Bideo-Jolasak
PPT
Abhigyaan
PDF
PPT
Scaling my sql_in_3d
PDF
International Social Media Trends
ruby on rails pitfalls
Web并发模型粗浅探讨
Social Game的技术挑战
Java Eye Architecture
Curriculum Night 2009-10
Problems of the Week
How to start? The Product
Millennial media smart-august-2010
5 things MySql
IRL: How Geeks Undermine Their Presentations & Conversations With Body Language
Estandares aprendizaje mcs
Jan 4 Sermon
Challenge of SHIMANE - Example of use Ruby in Japanese regional government an...
BizTalk Practical Course Preview
Les 2 Informatieverzorging
Bideo-Jolasak
Abhigyaan
Scaling my sql_in_3d
International Social Media Trends
Ad

Similar to Why Ruby? (20)

PDF
Ruby an overall approach
PDF
Ruby An Introduction
PPTX
Ruby -the wheel Technology
PDF
Web Development With Ruby - From Simple To Complex
PDF
Ruby tutorial
PPTX
Ruby programming
PDF
Arulalan Ruby An Intro
ODP
PDF
Ruby Best Practices Increase Your Productivity Write Better Code 1st Edition ...
PDF
FrontMatter
PDF
FrontMatter
PPTX
How to use Ruby in QA, DevOps, Development. Ruby lang Intro
PPTX
Optimizing for programmer happiness
PPTX
Why ruby
ODP
The Art of Evolutionary Algorithms Programming
PPT
Oop concept
DOC
Pré Descobrimento Do Brasil
PDF
Ebay News 2000 10 19 Earnings
PDF
P4 P Update January 2009
PDF
Ebay News 2001 4 19 Earnings
Ruby an overall approach
Ruby An Introduction
Ruby -the wheel Technology
Web Development With Ruby - From Simple To Complex
Ruby tutorial
Ruby programming
Arulalan Ruby An Intro
Ruby Best Practices Increase Your Productivity Write Better Code 1st Edition ...
FrontMatter
FrontMatter
How to use Ruby in QA, DevOps, Development. Ruby lang Intro
Optimizing for programmer happiness
Why ruby
The Art of Evolutionary Algorithms Programming
Oop concept
Pré Descobrimento Do Brasil
Ebay News 2000 10 19 Earnings
P4 P Update January 2009
Ebay News 2001 4 19 Earnings

More from Robbin Fan (6)

PPTX
精益创业讨论
PPT
运营专业型社区的经验和反思
PPT
缓存技术浅谈
PPT
Ruby In Enterprise Development
KEY
Maximes Presentation For Rubyconf China 2009
PPT
Design Pattern From Java To Ruby
精益创业讨论
运营专业型社区的经验和反思
缓存技术浅谈
Ruby In Enterprise Development
Maximes Presentation For Rubyconf China 2009
Design Pattern From Java To Ruby

Recently uploaded (20)

PPTX
cloud_computing_Infrastucture_as_cloud_p
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Machine learning based COVID-19 study performance prediction
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Tartificialntelligence_presentation.pptx
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Mushroom cultivation and it's methods.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
cloud_computing_Infrastucture_as_cloud_p
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
A comparative analysis of optical character recognition models for extracting...
Group 1 Presentation -Planning and Decision Making .pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
NewMind AI Weekly Chronicles - August'25-Week II
Machine learning based COVID-19 study performance prediction
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Spectral efficient network and resource selection model in 5G networks
Tartificialntelligence_presentation.pptx
Univ-Connecticut-ChatGPT-Presentaion.pdf
Spectroscopy.pptx food analysis technology
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
A comparative study of natural language inference in Swahili using monolingua...
Advanced methodologies resolving dimensionality complications for autism neur...
Network Security Unit 5.pdf for BCA BBA.
Mobile App Security Testing_ A Comprehensive Guide.pdf
Mushroom cultivation and it's methods.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx

Why Ruby?