Slide 1

Slide 1 text

お花見しよう 話
 ippachi


Slide 2

Slide 2 text

Who are you?
 ● twitter: @ippachi1218
 ● Github: ippachi
 ● ubyist
 ● Web programmer


Slide 3

Slide 3 text

Hanami is 何?


Slide 4

Slide 4 text

https://hanamirb.org/ 


Slide 5

Slide 5 text

Hanami ubyで作られた
 Web Application Framework


Slide 6

Slide 6 text

Why Hanami?
 ● Lightweight
 ● imple
 ● Pure uby
 ● Clean Architecture


Slide 7

Slide 7 text

Clean Architecture
 https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture. html


Slide 8

Slide 8 text

???


Slide 9

Slide 9 text

疎結合
 +
 大事なも に依存させよう


Slide 10

Slide 10 text

Clean Architecture
 https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture. html


Slide 11

Slide 11 text

Pros
 ● ユニットテストが書きやすい
 ● 変更に強い
 ● 決断を先延 しできる


Slide 12

Slide 12 text

Clean Architecture いいぞ


Slide 13

Slide 13 text

ails on Clean Architecture
 ● できないこと ないが、ちょっとめんどくさい
 ● ailから外れる


Slide 14

Slide 14 text

Hanami いいぞ


Slide 15

Slide 15 text

More
 ● epository Pattern
 ● 公式ガイドにユースケース層
 ● モデルとバリデーション 分離
 ● アクション毎 クラス
 ● etc...


Slide 16

Slide 16 text

Example


Slide 17

Slide 17 text

ails way(Controller)


Slide 18

Slide 18 text

Hanami way(Controller)


Slide 19

Slide 19 text

Let’s enjoy Hanami!!