Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
܅ ͷ ໊ ɻ ୀձͨ͠Ϣʔβ 0UFNBDIJSC 4IV0("8"3" !FYQBKQ 1IPUPCZ/FJM3PTFOTUFDI PO6OTQMBTI
Slide 2
Slide 2 text
1 !
Slide 3
Slide 3 text
Rails
Slide 4
Slide 4 text
n & %(@expajp) – ! – 3 – Ruby/Rails(1 • Project Euler 100 • Vue.js+ – # ' " – *$ )
Slide 5
Slide 5 text
CM
Slide 6
Slide 6 text
View
Slide 7
Slide 7 text
Slide 8
Slide 8 text
n postcreatornil
Slide 9
Slide 9 text
Slide 10
Slide 10 text
n post n DBposts ! user_id NULL " 0 #
Slide 11
Slide 11 text
n post n DBposts ! user_id NULL " 0 #
Slide 12
Slide 12 text
,
Slide 13
Slide 13 text
n B83+,.02@A' " % – ,.020 ;E(15*,47<: $#D= n View6-/)'C9 ?" % &" – View!6-/)'? – DRY>%
Slide 14
Slide 14 text
Slide 15
Slide 15 text
Slide 16
Slide 16 text
n & #$ n '!"%
Slide 17
Slide 17 text
N+1
Slide 18
Slide 18 text
N+1 Q . L S 0 N Q . 11 N+1 / Eager Loading - Rails Webook https://ruby-rails.hatenadiary.com/entry/20141108/1415418367 ’’
Slide 19
Slide 19 text
N+1 n DB →
Slide 20
Slide 20 text
٫Լʂ
Slide 21
Slide 21 text
CTO
Slide 22
Slide 22 text
Slide 23
Slide 23 text
n Active Record/. creator_id0 -* n Decorator,#4( *&!)$+ " → post'%*&!)30$+ → DRY21
Slide 24
Slide 24 text
Active Record
Slide 25
Slide 25 text
Decorator
Slide 26
Slide 26 text
View
Slide 27
Slide 27 text
Slide 28
Slide 28 text
Slide 29
Slide 29 text
ҟٞ͋Γʂ
Slide 30
Slide 30 text
Slide 31
Slide 31 text
CH*-&0c$a2&16$ >TO@L&Kg\N MB/&K$ ;5&F Z$ [Ra2VI%43$QWU *-&P D$a2Gb# $ $ SY9X`d$=^!A]?(.+'),JE" $a2&<7:f_<$ The WyCash Portfolio Management System http://c2.com/doc/oopsla92.html heSY8TO - Wikipedia ’’
Slide 32
Slide 32 text
n 06:?)<5DE n Decorator7*F2(> +' -4@1% – "#! . n gem9(,38C – B/) &;A3 $/=
Slide 33
Slide 33 text
NullUser, SystemUser
Slide 34
Slide 34 text
n Decorator Post creator n User full_name n Post NullUser, SystemUser – full_name! n creator User, NullUser, SystemUser
Slide 35
Slide 35 text
User
Slide 36
Slide 36 text
NullUser, SystemUser
Slide 37
Slide 37 text
Post
Slide 38
Slide 38 text
!
Slide 39
Slide 39 text
n DB5-6 & %!* #($). – View,1 '! n 70+4 "*/ 32
Slide 40
Slide 40 text
n )$ " !'( n View#*%&
Slide 41
Slide 41 text
1. 2. 3. NullUser, SystemUser
Slide 42
Slide 42 text
!
Slide 43
Slide 43 text
n ;&B5$ – ?<12$'*/+-@ – full_nameA03% n ;D…… – 89" FE – DRY" n ;&,(-.4=6,). C :$#>7 !
Slide 44
Slide 44 text
n (#&')!% #@ n Rails0-= – *"$!,E?28DRYF<251A – I74C>6 n +3D9:HJ;B – /.G+3D