Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
2016-09-07 社内勉強会資料
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Hirokazu Nishioka
September 07, 2016
Business
1.7k
0
Share
2016-09-07 社内勉強会資料
Hirokazu Nishioka
September 07, 2016
More Decks by Hirokazu Nishioka
See All by Hirokazu Nishioka
全員でRuby/Rails移行を進めてきた話 / Shippai Night 2016
nisshiee
4
1.8k
イエウール立ち上げに込めた想い / Speee Cafe Meetup 04
nisshiee
2
740
Rails × Elasticsearch
nisshiee
0
2.2k
【16/06 SpeeeKaigi】人工知能
nisshiee
0
1.2k
Speee Introduction
nisshiee
0
1.9k
Ruby初心者チームが「Ruby日本一」を目指して半年の話
nisshiee
4
4.8k
ぼくらがScalaを選ぶ理由〜入門編〜
nisshiee
4
1.9k
「良いコード」とは何か
nisshiee
0
380
Scala vs Ruby
nisshiee
0
360
Other Decks in Business
See All in Business
イオングローバルSCM株式会社_会社概要_2026
agscm
0
160
株式会社BALLAS 会社案内
ballas_inc
0
36k
20260331更新_会社説明資料_slideshare_speakerdeck__.pdf
thecoo
0
690
20260328_中東情勢の2日差分_サマリ+レビュー付き
doradora09
PRO
0
110
営業職/新卒向け会社紹介資料(テックファーム株式会社)
techfirm
1
1.5k
生成AI頼みでワークスロップを起こさない ドキュメントライティング&レビュー術
naohiro_nakata
0
300
その仕事、 ブルシット・ジョブじゃない?
szkm555
0
1k
三井物産グループのデジタル証券~文京区・世田谷区レジデンス~徹底解説セミナー
c0rp_mdm
PRO
0
1.2k
深掘り問いカードを使って問いの手札を増やそう!
kawanotron
0
530
家族アルバム みてね 事業紹介 / Our Business
familyalbum
7
57k
株式会社DFA Robotics - 会社説明資料
dfarobotics_inc
0
500
株式会社オーイズミピュアルズ採用資料2604
purells
0
170
Featured
See All Featured
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
310
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
180
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
160
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
260
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
120
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
770
Chasing Engaging Ingredients in Design
codingconduct
0
170
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Designing for Timeless Needs
cassininazir
0
190
Transcript
医療事業開発チー ム 2016-09-07 エンジニア全体MTG
の前に、 先週みんなを置き去りに してしまった型クラスの話 2
まず、「 型クラス」 という名前が良くない 英語で「type class」 「class」 は、 オブジェクト指向における「 クラス」 とは
まったく関係がない この発表では、 混乱しないように、 「 型クラス」 のことを 「 型ホゲ」 と呼びます ( 理解が進むとしっくりくるんだけどねw) 3
型ホゲとは何か 定義の話は今回は省略 何のために使うものか 4
型安全 アドホックな「 性質」 の付与 5
Java( 静的型付けオブジェクト指向) interface Walker { void walk(); } class Cat
implements Walker { private int x = 0; public void walk() { x++; } } 6
Ruby( ダックタイピング+ オー プンクラス) class Cat; end class Cat def
walk @x = (@x || 0) + 1 end end 7
レガシー な言語は、 この両立ができない 型安全 アドホックな「 性質」 の付与 8
Swift( 型ホゲ) // 性質 protocol Walker { func walk() }
// デー タ構造 struct Cat {} // 性質の実装 extension Cat: Walker { func walk() { // ... } } 9
型ホゲがあるとどんな設計になっていくか 「 デー タ構造」 の部分はあらゆるメソッドを持たず、 本当にデー タだけを持つ デー タに紐づくあらゆる処理は、 型ホゲとして切り出される
設計の段階で、 その「 性質」 の本質に迫っていく 抽象化 圧倒的な汎用性( 例: モナド) 10
例 trait Semigroup[T] { def append(t1: T, t2: T): T
} trait Monoid[T] extends Semigroup[T] { def zero: T } def double[T: Semigroup](t: T): T = append(t, t) def sum[T: Monoid](l: List[T]): T = l.foldLeft(zero)(append) ※ ほぼScala だけど一部省略した記法になってます 11
型ホゲおもしろい! 12
たぶん1 割ぐらいしか伝えられてないと思うので、 深く踏み込んでみたい方いたら教えてください 13
ここから本題の医療事業チー ムの話 14
開発手法の話 15
圧倒的ディレクション力を中心とした 開発フロー 16
よくあるSpeee の開発チー ム 17
医療事業開発チー ム 18
かわりに 技術と向き合う時間が増えた 19
エンジニアが技術と向き合う 圧倒的スピー ド 「 新規機能追加」 レベルの開発を半日~3 日で回し続ける ディレに「 思ったより早く開発進んでる」 って言わせろ
実現難度の高い要望も成し遂げる 利用経験のない技術でも何でも使って実現する 代替案なんか考えてる暇があったら実現方法を考えろ エンジニアは「 魔法使い」 20
技術的な話 21
Elasticsearch みんなどんどん使えばいいと思う Pros 公式ドキュメント読めば十分な知識手に入る クラスタ増強である程度パフォー マンス維持できる安心感 Cons デー タ設計やクエリ構築に慣れは要る Rails
がサポー トしてくれるわけではないので頑張る必要はある 22
SPA (Single Page Application) 操作感めちゃめちゃ気持ちいい 日本はまだそんな雰囲気ないけど、SPA 当たり前の時代来る いつやるの? 今でしょ、 感
意外とview がボトルネックになりやすいRails の強い味方 ( ただしSprockets、 お前はダメだ) Angular? React? ウチはReact Router でSPA 23
React!!! React Router Simple!! ソー スコー ド読めば分かる Redux Flux フレー
ムワー ク 公式ドキュメントにベストプラクティスまで用意されてる 「Redux にきちんと乗ること」 が、 フロントをスパゲッティにしないコツ 秩序と柔軟性の絶妙なバランス 24