![Page 1: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/1.jpg)
![Page 2: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/2.jpg)
Functional Programmingin 40 minutes
@russolsen
![Page 3: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/3.jpg)
![Page 4: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/4.jpg)
![Page 5: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/5.jpg)
Functional Programmingin 40 minutes
@russolsen
![Page 6: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/6.jpg)
Functional Programming
![Page 7: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/7.jpg)
Functional ProgrammingClojure spin
![Page 8: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/8.jpg)
Functional Programming40 Minutes?
![Page 9: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/9.jpg)
What is it? What's it like? Does it work?
![Page 10: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/10.jpg)
What is it? What's it like? Does it work?
![Page 11: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/11.jpg)
FORGET Everything You Know About Programming
![Page 12: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/12.jpg)
What Do You Know?
![Page 13: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/13.jpg)
Name = ValueNames Ifs Iteration Procedures
![Page 14: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/14.jpg)
Name = ValueNames Ifs Iteration Procedures
Strings Numerics Booleans Indentation
![Page 15: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/15.jpg)
Name = ValueNames Ifs Iteration Procedures
Arrays HashesNamespaces
Strings Numerics Booleans Indentation
![Page 16: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/16.jpg)
Name = ValueNames Ifs Iteration Procedures
Classes Inheritance Methods
Arrays HashesNamespaces
Strings Numerics Booleans Indentation
![Page 17: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/17.jpg)
Name = ValueNames Ifs Iteration Procedures
Classes Inheritance Methods
Arrays HashesNamespaces
Programs
Strings Numerics Booleans Indentation
![Page 18: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/18.jpg)
FORGET Everything You Know About ProgrammingREALLY?
![Page 19: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/19.jpg)
Functional Programming
![Page 20: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/20.jpg)
Everything You Know About Programming
Refactor
![Page 21: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/21.jpg)
![Page 22: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/22.jpg)
![Page 23: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/23.jpg)
![Page 24: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/24.jpg)
![Page 25: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/25.jpg)
![Page 26: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/26.jpg)
![Page 27: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/27.jpg)
![Page 28: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/28.jpg)
![Page 29: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/29.jpg)
It Works But...
![Page 30: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/30.jpg)
Mess
![Page 31: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/31.jpg)
![Page 32: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/32.jpg)
![Page 33: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/33.jpg)
![Page 34: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/34.jpg)
What About Programming?
![Page 35: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/35.jpg)
During the type erasure process, the Java compiler erases all type parameters and replaces each with its first bound if the type parameter is bounded, or Object if the type parameter is unbounded.
https://docs.oracle.com/javase/tutorial/java/generics/genTypes.html
![Page 36: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/36.jpg)
During the type erasure process, the Java compiler
erases all type parameters and replaces each with its
first bound if the type parameter is bounded,
or Object if the type parameter
is unbounded.
![Page 37: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/37.jpg)
Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit receiver, but that receiver is always self (it’s defining class) or an object that inherits from self .
https://medium.com/@tjoye20/ruby-access-control-basics-public-vs-private-vs-protected-methods-7788b26e04a7
![Page 38: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/38.jpg)
A friend function of a class is defined outside that class' scope but it has the right to access all private and protected members of the class. Even though the prototypes for friend functions appear in the class definition, friends are not member functions.
https://www.tutorialspoint.com/cplusplus/cpp_friend_functions.htm
![Page 39: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/39.jpg)
Name = ValueNames Ifs Iteration Procedures
Classes Inheritance Methods
Arrays HashesNamespaces
Programs
Strings Numerics Booleans Indentation
![Page 40: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/40.jpg)
Messy?
![Page 41: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/41.jpg)
![Page 42: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/42.jpg)
Name = ValueNames Ifs Iteration
Arrays HashesNamespaces
Programs
Strings Numerics Booleans Indentation
![Page 43: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/43.jpg)
![Page 44: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/44.jpg)
![Page 45: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/45.jpg)
![Page 46: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/46.jpg)
![Page 47: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/47.jpg)
![Page 48: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/48.jpg)
![Page 49: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/49.jpg)
![Page 50: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/50.jpg)
f(x)
![Page 51: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/51.jpg)
1
23
4
5
2
46 8
10
f(x)
![Page 52: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/52.jpg)
1
23
4
5
2
46 8
10
![Page 53: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/53.jpg)
Procedures
Subroutines
Functions
Methods
![Page 54: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/54.jpg)
5 10
3 6
![Page 55: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/55.jpg)
5 42
3 6
10 ??
![Page 56: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/56.jpg)
5 10
36
![Page 57: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/57.jpg)
5 10
3 6
![Page 58: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/58.jpg)
f(x)A Thing
![Page 59: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/59.jpg)
f(x)A Thing I Can Make
![Page 60: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/60.jpg)
f(x)
![Page 61: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/61.jpg)
1st Class
![Page 62: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/62.jpg)
Look at Input
Produce Output
![Page 63: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/63.jpg)
No Side Effects
![Page 64: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/64.jpg)
x = ['a','b','c']
y = a(x)
x = ?
![Page 65: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/65.jpg)
x = ['a','b','c']
y =
x = ?
c(a(x) + b(x)) + d(x) * e(x) - 4 * (q(x) - f(x)) + d(x) * e(x) - 4 * (q(x) - f(x)) + b(x)) + d(x) / c(a(x) + b(x)) + d(x) * e(x) + g(x) + h(x) *
floor(b(x)) + 16 * a(x) - ceil(g(x) - c(a(x) + b(x)) + d(x) * e(x) - 4 * (q(x) - f(x)) + d(x) * e(x) - 4 * (q(x) - f(x)) + b(x)) + d(x) / c(a(x) + b(x)) + d(x) * e(x) + g(x) + h(x) *
floor(b(x)) + 16 * a(x)
![Page 66: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/66.jpg)
Name = ValueNames Ifs Iteration
Arrays HashesNamespaces
Programs
Strings Numerics Booleans Indentation
f(x)
![Page 67: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/67.jpg)
Problem
![Page 68: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/68.jpg)
a b c
![Page 69: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/69.jpg)
a b c
![Page 70: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/70.jpg)
a Q c
![Page 71: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/71.jpg)
x = ['a','b','c']
y =
x = ?
c(a(x) + b(x)) + d(x) * e(x) - 4 * (q(x) - f(x)) + d(x) * e(x) - 4 * (q(x) - f(x)) + b(x)) + d(x) / c(a(x) + b(x)) + d(x) * e(x) + g(x) + h(x) *
floor(b(x)) + 16 * a(x) - ceil(g(x) - c(a(x) + b(x)) + d(x) * e(x) - 4 * (q(x) - f(x)) + d(x) * e(x) - 4 * (q(x) - f(x)) + b(x)) + d(x) / c(a(x) + b(x)) + d(x) * e(x) + g(x) + h(x) *
floor(b(x)) + 16 * a(x)
![Page 72: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/72.jpg)
t = c(a(x) + b(x)) + d(x) * e(x) - 4 * (q(x) - f(x)) + d(x) * e(x) - 4 * (q(x) - f(x)) + b(x)) + d(x) / c(a(x) + b(x)) + d(x) * e(x) + g(x) + h(x) *
floor(b(x)) + 16 * a(x) - ceil(g(x) x[2] = 'Q'
y = t + c(a(x) + b(x)) + d(x) * e(x) - 4 * (q(x) - f(x)) + d(x) * e(x) - 4 * (q(x) - f(x)) + b(x)) + d(x) / c(a(x) + b(x)) + d(x) * e(x) + g(x) + h(x) *
floor(b(x)) + 16 * a(x)
![Page 73: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/73.jpg)
t = c(a(x) + b(x)) + d(x) * e(x) - 4 * (q(x) - f(x)) + d(x) * e(x) - 4 * (q(x) - f(x)) + b(x)) + d(x) / c(a(x) + b(x)) + d(x) * e(x) + g(x) + h(x) *
floor(b(x)) + 16 * a(x) - ceil(g(x)
x[2] = 'Q' y = t + c(a(x) + b(x)) + d(x) * e(x) - 4 * (q(x) - f(x)) +
d(x) * e(x) - 4 * (q(x) - f(x)) + b(x)) + d(x) / c(a(x) + b(x)) + d(x) * e(x) + g(x) + h(x) *
floor(b(x)) + 16 * a(x)
![Page 74: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/74.jpg)
Immutable
![Page 75: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/75.jpg)
a b c
a Q c
![Page 76: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/76.jpg)
Problem
![Page 77: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/77.jpg)
Copies Copies Copies
![Page 78: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/78.jpg)
a b c d e f g h i j k l m n o p q r s t u v w x y z !
![Page 79: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/79.jpg)
a b c d e f g h i j k l m n o p q r s t u v w x y z !
a b c d e f g h i j k l m Q o p q r s t u v w x y z !
![Page 80: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/80.jpg)
Persistent Data Structures
![Page 81: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/81.jpg)
a b c d e f g h i j k l m n o p q r s t u v w x y z !
![Page 82: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/82.jpg)
a b c d e f g h i j k l m n o p q r s t u v w x y z !
![Page 83: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/83.jpg)
m Q o
![Page 84: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/84.jpg)
m X oQ
![Page 85: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/85.jpg)
m X oQ
![Page 86: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/86.jpg)
a b c d e f g h i j k l p q r s t u v w x y z !m X oQ
![Page 87: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/87.jpg)
3
![Page 88: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/88.jpg)
3
![Page 89: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/89.jpg)
Name = ValueNames Ifs Iteration
Arrays* Hashes*Namespaces
Programs
Strings Numerics Booleans Indentation
f(x)
![Page 90: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/90.jpg)
Problem
![Page 91: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/91.jpg)
Side Effects
![Page 94: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/94.jpg)
![Page 95: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/95.jpg)
57Atoms
![Page 96: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/96.jpg)
57f(x)
Atoms
![Page 97: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/97.jpg)
58f(x)
Atoms
![Page 98: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/98.jpg)
59f(x)
g(x)
Atoms
![Page 99: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/99.jpg)
59f(x)
g(x)
Atoms
g(x)
![Page 100: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/100.jpg)
some_code(queue)
Agents/Actors
f(x)
g(x)
![Page 101: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/101.jpg)
Name = ValueNames Ifs Iteration
Arrays* Hashes*Namespaces
Programs
Strings Numerics Booleans Indentation
f(x)
![Page 102: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/102.jpg)
What is it? What's it like? Does it work?
![Page 103: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/103.jpg)
Magic
![Page 104: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/104.jpg)
Magic
![Page 105: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/105.jpg)
You still have off-by-one errors
![Page 106: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/106.jpg)
You still have REDUNDANT code
![Page 107: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/107.jpg)
BAD CODE
![Page 108: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/108.jpg)
The database is STILL DOWN
![Page 109: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/109.jpg)
Threads!
![Page 110: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/110.jpg)
![Page 111: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/111.jpg)
![Page 112: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/112.jpg)
What is it? What's it like? Does it work?
![Page 113: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/113.jpg)
pedestal.io
![Page 114: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/114.jpg)
![Page 115: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/115.jpg)
What is Pedestal?Pedestal is a set of libraries that we use to build services and applications. It runs in the back end and can serve up whole HTML pages or handle API requests.
![Page 116: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/116.jpg)
18,706lines
![Page 117: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/117.jpg)
28protocols
+
![Page 118: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/118.jpg)
8bridges to the stateful world
![Page 119: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/119.jpg)
9Record types
+
![Page 120: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/120.jpg)
1multi method
+
![Page 121: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/121.jpg)
944functions
f(x)
![Page 122: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/122.jpg)
![Page 123: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/123.jpg)
Name = ValueNames Ifs Iteration
Arrays* Hashes*Namespaces
Programs
Strings Numerics Booleans Indentation
f(x)
![Page 124: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/124.jpg)
YES
![Page 125: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/125.jpg)
Questions?
![Page 126: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/126.jpg)
@russolsen
![Page 127: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/127.jpg)
![Page 128: Functional Programming - GOTO Conference...Protected methods: a protected method is similar to a private method, with the addition that it can be called with, or without, an explicit](https://reader034.vdocument.in/reader034/viewer/2022042300/5ecb030834d71d0c1477a849/html5/thumbnails/128.jpg)