Slide 1

Slide 1 text

Build to last Build to last How to design rails apps to avoid a rewrite in 5 years

Slide 2

Slide 2 text

O HAI

Slide 3

Slide 3 text

Super excited!

Slide 4

Slide 4 text

first post!

Slide 5

Slide 5 text

larubyconf noobs?

Slide 6

Slide 6 text

rubyconf noobs?

Slide 7

Slide 7 text

ruby/rails noobs?

Slide 8

Slide 8 text

programming noobs?

Slide 9

Slide 9 text

Welcome!

Slide 10

Slide 10 text

“the problem”

Slide 11

Slide 11 text

“the pain”

Slide 12

Slide 12 text

“the rewrite”

Slide 13

Slide 13 text

“the question”

Slide 14

Slide 14 text

“the answer”

Slide 15

Slide 15 text

You’re doing it wrong

Slide 16

Slide 16 text

You’re thinking about it wrong

Slide 17

Slide 17 text

What is software?

Slide 18

Slide 18 text

“instructions for a computer to follow”

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

https://mitpress.mit.edu/sicp/

Slide 21

Slide 21 text

“Our design of this introductory computer-science subject reflects two major concerns…”

Slide 22

Slide 22 text

“First, we want to establish the idea that a computer language is not just a way of getting a computer to perform operations but rather that it is a novel formal medium for expressing ideas about methodology…”

Slide 23

Slide 23 text

“Thus, programs must be written for people to read, and only incidentally for machines to execute…”

Slide 24

Slide 24 text

“Second, we believe that the essential material to be addressed by a subject at this level is not the syntax of particular programming-language constructs, nor clever algorithms for computing particular functions efficiently, nor even the mathematical analysis of algorithms and the foundations of computing…”

Slide 25

Slide 25 text

“…but rather the techniques used to control the intellectual complexity of large software systems.”

Slide 26

Slide 26 text

intellectual complexity

Slide 27

Slide 27 text

“Underlying our approach to this subject is our conviction that “computer science” is not a science and that its significance has little to do with computers…”

Slide 28

Slide 28 text

“The computer revolution is a revolution in the way we think and in the way we express what we think.”

Slide 29

Slide 29 text

we think about software wrong

Slide 30

Slide 30 text

we express what we think about software wrong

Slide 31

Slide 31 text

Big Ball of Mud

Slide 32

Slide 32 text

“A big ball of mud is a casually, even haphazardly, structured system…”

Slide 33

Slide 33 text

Its organization, if one can call it that, is dictated more by expediency than design.”

Slide 34

Slide 34 text

http://www.laputan.org/mud/

Slide 35

Slide 35 text

The Big Ball of Mud says: “You are not smart.”

Slide 36

Slide 36 text

But you are smart!

Slide 37

Slide 37 text

Techical Debt

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

https://youtu.be/pqeJFYwnkjE

Slide 40

Slide 40 text

Communicate ideas (intellectual complexity) in a better way

Slide 41

Slide 41 text

Intent

Slide 42

Slide 42 text

(sekrit sauce)

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

Anthropomorphization

Slide 45

Slide 45 text

Counterintuitive

Slide 46

Slide 46 text

Metaphor

Slide 47

Slide 47 text

Code neighborhoods

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

Domain

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

No content

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

Permissions

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

No content

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

Tests

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

No content

Slide 69

Slide 69 text

Testing is fun!

Slide 70

Slide 70 text

Testing is easy!

Slide 71

Slide 71 text

(Once you get the hang of it.)

Slide 72

Slide 72 text

Testing is how you avoid a rewrite

Slide 73

Slide 73 text

No content

Slide 74

Slide 74 text

No content

Slide 75

Slide 75 text

No content

Slide 76

Slide 76 text

No content

Slide 77

Slide 77 text

“Often people, especially computer engineers, focus on the machines. They think, "By doing this, the machine will run faster. By doing this, the machine will run more effectively. By doing this, the machine will something something something." They are focusing on machines…”

Slide 78

Slide 78 text

“But in fact we need to focus on humans, on how humans care about doing programming or operating the application of the machines. We are the masters. They are the slaves.” Yukihiro Matsumoto

Slide 79

Slide 79 text

Be a wise master

Slide 80

Slide 80 text

Mike Moore

Slide 81

Slide 81 text

Mike Moore blowmage

Slide 82

Slide 82 text

Mike Moore blowmage Stickers!