SlideShare a Scribd company logo
Aprendendo a
Aprender
Fabio Akita @akitaonrails
Aprendendo a Aprender - Alagoas Dev Day
http://u.akita.ws/montesclaros
Aprendendo a Aprender - Alagoas Dev Day
?
+Fácil
+Elegante
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Ciência da
Computação
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Charles Babbage (1791-1871)
Aprendendo a Aprender - Alagoas Dev Day
John von Neumann (1903 – 1957)
Alan Mathison Turing (1912 – 1954)
Aprendendo a Aprender - Alagoas Dev Day
“The Imitation Game" (2014 - Benedict Cumberbatch)
Aprendendo a Aprender - Alagoas Dev Day
people = 20	
count = 0	
people.times do |person_a|	
people.times do |person_b|	
count += 1 if person_b > person_a	
end	
end	
puts count # => 190
people = 20	
count = 0	
people.times do |person_a|	
people.times do |person_b|	
count += 1 if person_b > person_a	
end	
end	
puts count # => 190
people = 20	
count = 0	
people.times do |person_a|	
people.times do |person_b|	
count += 1 if person_b > person_a	
end	
end	
puts count # => 190
people = 20	
puts (people * (people - 1) / 2) # => 190
require 'benchmark'	
people = 10_000	
Benchmark.bm do |x|	
x.report do	
count = 0	
people.times do |person_a|	
people.times do |person_b|	
count += 1 if person_b > person_a	
end	
end	
puts count	
end	
x.report do	
puts (people * (people - 1) / 2)	
end	
end
require 'benchmark'	
people = 10_000	
Benchmark.bm do |x|	
x.report do	
count = 0	
people.times do |person_a|	
people.times do |person_b|	
count += 1 if person_b > person_a	
end	
end	
puts count	
end	
x.report do	
puts (people * (people - 1) / 2)	
end	
end
require 'benchmark'	
people = 10_000	
Benchmark.bm do |x|	
x.report do	
count = 0	
people.times do |person_a|	
people.times do |person_b|	
count += 1 if person_b > person_a	
end	
end	
puts count	
end	
x.report do	
puts (people * (people - 1) / 2)	
end	
end
require 'benchmark'	
people = 10_000	
Benchmark.bm do |x|	
x.report do	
count = 0	
people.times do |person_a|	
people.times do |person_b|	
count += 1 if person_b > person_a	
end	
end	
puts count	
end	
x.report do	
puts (people * (people - 1) / 2)	
end	
end
user system total real	
190	
0.000000 0.000000 0.000000 ( 0.000043)	
190	
0.000000 0.000000 0.000000 ( 0.000008)
user system total real	
190	
0.000000 0.000000 0.000000 ( 0.000043)	
190	
0.000000 0.000000 0.000000 ( 0.000008)
user system total real	
190	
0.000000 0.000000 0.000000 ( 0.000043)	
190	
0.000000 0.000000 0.000000 ( 0.000008)
user system total real	
49995000	
6.310000 0.000000 6.310000 ( 6.354882)	
49995000	
0.000000 0.000000 0.000000 ( 0.000011)
user system total real	
49995000	
6.310000 0.000000 6.310000 ( 6.354882)	
49995000	
0.000000 0.000000 0.000000 ( 0.000011)
user system total real	
49995000	
6.310000 0.000000 6.310000 ( 6.354882)	
49995000	
0.000000 0.000000 0.000000 ( 0.000011)
“The Social Network" (2010)
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
http://u.akita.ws/naousesqllike
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
“I made up the term
‘object-oriented’,
and I can tell you
I didn’t have
C++ in mind”
- Alan Kay
soma = 1 + 2
soma = 1 + 2
soma = 1.+(2)
soma = 1 + 2
soma = 1.+(2)
soma = 1.send(:+, 2)
Aprendendo a Aprender - Alagoas Dev Day
Ole-Johan Dahl e Kristen Nygaard
require 'prime'	
gerador_de_primos = Fiber.new do	
numero = 1	
loop do	
Fiber.yield(numero) if numero.prime?	
numero += 1	
end	
end
require 'prime'	
gerador_de_primos = Fiber.new do	
numero = 1	
loop do	
Fiber.yield(numero) if numero.prime?	
numero += 1	
end	
end	
gerador_de_primos.resume
=> 2
require 'prime'	
gerador_de_primos = Fiber.new do	
numero = 1	
loop do	
Fiber.yield(numero) if numero.prime?	
numero += 1	
end	
end	
gerador_de_primos.resume
=> 2
gerador_de_primos.resume
=> 3
require 'prime'	
gerador_de_primos = Fiber.new do	
numero = 1	
loop do	
Fiber.yield(numero) if numero.prime?	
numero += 1	
end	
end	
gerador_de_primos.resume
=> 2
gerador_de_primos.resume
=> 3
gerador_de_primos.resume
=> 5
Gordon Moore - Intel co-founder
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Gordon Bell - DEC early employee
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Vaticano 2005
Vaticano 2013
Vaticano 2005
Vaticano 2013
Aprendendo a Aprender - Alagoas Dev Day
Aprendendo a Aprender - Alagoas Dev Day
Douglas Engelbart - 1925 a 2/Jul/2013
Douglas Engelbart - 1925 a 2/Jul/2013
Pablo Picasso
Bons artistas Copiam
Grandes artistas Roubam
Ciência da
Computação
OBRIGADO!
slideshare.net/akitaonrails
codeminer42.com
@akitaonrails

More Related Content

PDF
PinThing
PPT
Chapter 2 Jeeparty Review
PDF
Campus Party 2010
PDF
Encontro de TI - Arteccom
PDF
Fisl 10
PDF
Rails Summit - De Volta Ao Básico
PDF
Claretiano 2009
PDF
Fisl - Deployment
PinThing
Chapter 2 Jeeparty Review
Campus Party 2010
Encontro de TI - Arteccom
Fisl 10
Rails Summit - De Volta Ao Básico
Claretiano 2009
Fisl - Deployment

Similar to Aprendendo a Aprender - Alagoas Dev Day (20)

PDF
Aprendendo a Aprender - Evento de Verão em Montes claros
PPT
Chapter 0 syllabus 2019 20
PDF
I PUC Syllabus new updated 2024-2025.pdf
PDF
emrs syllabus.pdf
PDF
Computational thinking v0.1_13-oct-2020
DOC
5th sem
DOC
5th sem
PPT
11 syllabus
PPT
11 Python CBSE Syllabus
PDF
Cs syllabus 22
PDF
Master Program in Computer Science with specialization in Data Science
PPTX
Cynthia Lee ITEM 2018
PDF
M.Sc.Syllabus 17 Nov 2022 (1).pdf
PDF
Nguyễn Nho Vĩnh - Problem solvingwithalgorithmsanddatastructures
PDF
Software Engineering
PDF
Mca syllabus
PDF
Computer_Science_Sr.Sec_2021-22.pdf
PDF
syllabusCS.pdf
PDF
Certified Professional Diploma in Data Science.pdf
PDF
computer science and information technology course units outline.pdf
Aprendendo a Aprender - Evento de Verão em Montes claros
Chapter 0 syllabus 2019 20
I PUC Syllabus new updated 2024-2025.pdf
emrs syllabus.pdf
Computational thinking v0.1_13-oct-2020
5th sem
5th sem
11 syllabus
11 Python CBSE Syllabus
Cs syllabus 22
Master Program in Computer Science with specialization in Data Science
Cynthia Lee ITEM 2018
M.Sc.Syllabus 17 Nov 2022 (1).pdf
Nguyễn Nho Vĩnh - Problem solvingwithalgorithmsanddatastructures
Software Engineering
Mca syllabus
Computer_Science_Sr.Sec_2021-22.pdf
syllabusCS.pdf
Certified Professional Diploma in Data Science.pdf
computer science and information technology course units outline.pdf
Ad

More from Fabio Akita (20)

PDF
Devconf 2019 - São Carlos
PDF
Meetup Nerdzão - English Talk about Languages
PDF
Desmistificando Blockchains p/ Developers - Criciuma Dev Conf 2018
PDF
Desmistificando Blockchains - 20o Encontro Locaweb SP
PDF
Desmistificando Blockchains - Insiter Goiania
PDF
Blockchain em 7 minutos - 7Masters
PDF
Elixir -Tolerância a Falhas para Adultos - GDG Campinas
PDF
Desmistificando Mitos de Tech Startups - Intercon 2017
PDF
30 Days to Elixir and Crystal and Back to Ruby
PDF
Uma Discussão sobre a Carreira de TI
PDF
THE CONF - Opening Keynote
PDF
A Journey through New Languages - Rancho Dev 2017
PDF
Desmistificando Mitos de Startups - Sebrae - AP
PDF
A Journey through New Languages - Guru Sorocaba 2017
PDF
A Journey through New Languages - Insiter 2017
PDF
A Journey through New Languages - Locaweb Tech Day
PDF
A Journey through new Languages - Intercon 2016
PDF
Premature Optimization 2.0 - Intercon 2016
PDF
Conexão Kinghost - Otimização Prematura
PDF
The Open Commerce Conference - Premature Optimisation: The Root of All Evil
Devconf 2019 - São Carlos
Meetup Nerdzão - English Talk about Languages
Desmistificando Blockchains p/ Developers - Criciuma Dev Conf 2018
Desmistificando Blockchains - 20o Encontro Locaweb SP
Desmistificando Blockchains - Insiter Goiania
Blockchain em 7 minutos - 7Masters
Elixir -Tolerância a Falhas para Adultos - GDG Campinas
Desmistificando Mitos de Tech Startups - Intercon 2017
30 Days to Elixir and Crystal and Back to Ruby
Uma Discussão sobre a Carreira de TI
THE CONF - Opening Keynote
A Journey through New Languages - Rancho Dev 2017
Desmistificando Mitos de Startups - Sebrae - AP
A Journey through New Languages - Guru Sorocaba 2017
A Journey through New Languages - Insiter 2017
A Journey through New Languages - Locaweb Tech Day
A Journey through new Languages - Intercon 2016
Premature Optimization 2.0 - Intercon 2016
Conexão Kinghost - Otimização Prematura
The Open Commerce Conference - Premature Optimisation: The Root of All Evil
Ad

Recently uploaded (20)

PDF
Zenith AI: Advanced Artificial Intelligence
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Getting Started with Data Integration: FME Form 101
PDF
A novel scalable deep ensemble learning framework for big data classification...
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Approach and Philosophy of On baking technology
PDF
DP Operators-handbook-extract for the Mautical Institute
PPTX
A Presentation on Artificial Intelligence
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Zenith AI: Advanced Artificial Intelligence
Building Integrated photovoltaic BIPV_UPV.pdf
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Encapsulation_ Review paper, used for researhc scholars
Accuracy of neural networks in brain wave diagnosis of schizophrenia
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Assigned Numbers - 2025 - Bluetooth® Document
SOPHOS-XG Firewall Administrator PPT.pptx
NewMind AI Weekly Chronicles - August'25-Week II
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Getting Started with Data Integration: FME Form 101
A novel scalable deep ensemble learning framework for big data classification...
OMC Textile Division Presentation 2021.pptx
MIND Revenue Release Quarter 2 2025 Press Release
Approach and Philosophy of On baking technology
DP Operators-handbook-extract for the Mautical Institute
A Presentation on Artificial Intelligence
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf

Aprendendo a Aprender - Alagoas Dev Day