Slide 1

Slide 1 text

DCILET THE CODE DO THE TALKING “DCI and the application builds our mental models” redux Shintaro Kakutani(@kakutani), ruby-no-kai || esminc,Fukuoka RubyKaigi 01, 2012-12-01(Sat)

Slide 2

Slide 2 text

taken by @hibariya @kakutani @j2h #rubyfriends

Slide 3

Slide 3 text

ఏɹڙ ͓͔͛͞·Ͱ̏̌प೥ ৘ใԽٕज़Λ௨ͯࣾ͡ձͱڞੜ͢Δ

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

Asakusa.rb http://www.flickr.com/photos/takkanm/3978417669

Slide 6

Slide 6 text

http://www.amazon.co.jp/o/ASIN/4274068560/kakutani-22

Slide 7

Slide 7 text

http://rubyfriends.com

Slide 8

Slide 8 text

http://www.slideshare.net/snoozer05/20101204-youmustunlearnwhatyouhavelearned/61

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

DCILET THE CODE DO THE TALKING “DCI and the application builds our mental models” redux Shintaro Kakutani(@kakutani), ruby-no-kai || esminc,Fukuoka RubyKaigi 01, 2012-12-01(Sat)

Slide 11

Slide 11 text

James O.Coplien

Slide 12

Slide 12 text

We’ve already had nice resources on the net...

Slide 13

Slide 13 text

http://www.amazon.co.jp/o/ASIN/0470684208/kakutani-22/ref=nosim/

Slide 14

Slide 14 text

http://objectsonrails.com/

Slide 15

Slide 15 text

http://clean-ruby.com/

Slide 16

Slide 16 text

http://rubysource.com/dci-the-evolution-of-the-object-oriented-paradigm/

Slide 17

Slide 17 text

http://dci-in-ruby.info/resources.html

Slide 18

Slide 18 text

http://mikepackdev.com/blog_posts/24-the-right-way-to-code-dci-in-ruby

Slide 19

Slide 19 text

ιϑτ΢ΣΞ͸ Ͳ͜ʹ͋Δͷ͔

Slide 20

Slide 20 text

ιϑτ΢ΣΞ͸಄ͷͳ͔ʹ͋Δ

Slide 21

Slide 21 text

ΤϯυϢʔβʔͷ ϝϯλϧϞσϧΛ ιʔείʔυͱͯ͠ දݱ͢Δ

Slide 22

Slide 22 text

গͣͭ͠ɺ ܁Γฦ͠ͳ͕Β ҭ͍ͯͯ͘

Slide 23

Slide 23 text

Software Development as Learning Process

Slide 24

Slide 24 text

“Agile”

Slide 25

Slide 25 text

ςετۦಈ։ൃ

Slide 26

Slide 26 text

ΦϒδΣΫτࢦ޲ઃܭ

Slide 27

Slide 27 text

ద੾ͳ໊લͷ͍ͭͨ ίʔυΛద੾ͳ৔ॴʹ ஔ͘͜ͱ

Slide 28

Slide 28 text

Ruby

Slide 29

Slide 29 text

✓ Agile Style Workflow ✓ Test Driven Development ✓ Object-Oriented Design ✓ Ruby

Slide 30

Slide 30 text

ιϑτ΢ΣΞ͸಄ͷͳ͔ʹ͋Δ

Slide 31

Slide 31 text

http://www.amazon.co.jp/o/ASIN/4798124583/kakutani-22/ref=nosim/

Slide 32

Slide 32 text

We’re on the same rails http://pixdaus.com/single.php?id=104150

Slide 33

Slide 33 text

http://guides.rubyonrails.org/getting_started.html

Slide 34

Slide 34 text

http://guides.rubyonrails.org/getting_started.html#the-mvc-architecture

Slide 35

Slide 35 text

HTTP: Hyper TEXT Transfer Protocol

Slide 36

Slide 36 text

http://martinfowler.com/eaaCatalog/activeRecord.html

Slide 37

Slide 37 text

Active Record is a pattern for persistence

Slide 38

Slide 38 text

Rails doesn’t save YOUR Applications! (it’s an awesome FRAMEWORK!)

Slide 39

Slide 39 text

http://www.flickr.com/photos/essgee/2477102230/ Recap ‘Common Pitfalls’ @ursm mentioned in Sapporo RubyKaigi 2012

Slide 40

Slide 40 text

http://sapporo.rubykaigi.org/2012/en/schedule/details/64.html

Slide 41

Slide 41 text

✓ Helpers don’t help up ✓ Partials are just partial, Not parts ✓ Too Fat to be a model

Slide 42

Slide 42 text

✓ Helpers don’t help up ✓ Partials are just partial, Not parts ✓ Too Fat to be a model

Slide 43

Slide 43 text

Too Fat to be a model

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

DCI Data-Context-Interaction

Slide 46

Slide 46 text

✓ Data: AR domain knowledge structure ✓ Context: ৔(Ba) Playing field for “objects” ✓ Interaction: Role Object#extend / refinements?

Slide 47

Slide 47 text

http://mikepackdev.com/blog_posts/24-the-right-way-to-code-dci-in-ruby

Slide 48

Slide 48 text

✓ Data: AR ✓ Context: “Activities” ✓ Interaction: Modules Poor man’s DCI: you should check the talk given by @ursm in sapporo RubyKaigi 2012, thanks!

Slide 49

Slide 49 text

http://qa.atmarkit.co.jp/

Slide 50

Slide 50 text

Recap

Slide 51

Slide 51 text

✓ Agile Style Workflow ✓ Test Driven Development ✓ Object-Oriented Design ✓ Ruby

Slide 52

Slide 52 text

Rails doesn’t save YOUR Applications! (it’s an awesome FRAMEWORK!)

Slide 53

Slide 53 text

ΤϯυϢʔβʔͷ ϝϯλϧϞσϧΛ ιʔείʔυͱͯ͠ දݱ͢Δ

Slide 54

Slide 54 text

ιϑτ΢ΣΞ͸಄ͷͳ͔ʹ͋Δ

Slide 55

Slide 55 text

Bonus Takeaway

Slide 56

Slide 56 text

https://codeclimate.com/

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

ιϑτ΢ΣΞΛཧղ͢Δͷʹ͋ͨΓɺυΩϡ ϝϯτ͕͋Δͱྑ͍͠ɺςετίʔυ΋͋Δͱ ॿ͔ΔɻϓϩμΫγϣϯίʔυʹίϝϯτ͕͋ Ε͹͔֬ʹศར͚ͩͲɺϓϩμΫγϣϯίʔυ ͦͷ΋ͷ͕ͦͷιϑτ΢ΣΞͷ͜ͱΛޠ͍ͬͯ ΔΑ͏ʹίʔυΛॻ͚ΔΑ͏ʹʜʜͳΓ͍ͨ ͶɻͰ΋ɺͦͷͨΊʹ͸ɺ͚͖ͬΐࣗ͘෼ͨͪ ্͕खʹͳΔΑ͏ʹ࿅शΛॏͶ͍͔ͯ͘͠ͳ͍ ͱࢥ͏ͷͰɺΈͳ͞ΜҰॹʹ͕Μ͹Ζ͏

Slide 59

Slide 59 text

Let the Code Do The Talking!