a = [1, 2] # => [1, 2]
b = push a 3 # => [1, 2, 3]
a # => [1, 2]
Slide 77
Slide 77 text
API com semântica mutável
porém produz cópias imutáveis
Slide 78
Slide 78 text
Ruby Hamster, Immutable.js
Slide 79
Slide 79 text
Imutabilidade contribui
com a compreensão
Slide 80
Slide 80 text
THERE AND BACK
AGAIN…
Slide 81
Slide 81 text
OOP não trata sobre
objetos e hierarquias
Slide 82
Slide 82 text
–Alan Kay
“I thought of objects being like biological cells and/or individual
computers on a network, only able to communicate with messages (so
messaging came at the very beginning -- it took a while to see how to do
messaging in a programming language efficiently enough to be useful).”
Slide 83
Slide 83 text
DB
CLIENT APP
Slide 84
Slide 84 text
Lógica de negócio Funcional
Organização feita em Objetos