Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
種族値合計600以上のポケモンを返すAPIをクリーンアーキテクチャで作成した
Search
keigo
July 26, 2026
7
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
種族値合計600以上のポケモンを返すAPIをクリーンアーキテクチャで作成した
keigo
July 26, 2026
More Decks by keigo
See All by keigo
APIとは?
keikeigo
0
11
WebアプリをDockerで動かしてみた
keikeigo
0
16
Featured
See All Featured
The Spectacular Lies of Maps
axbom
PRO
1
1.1k
How to train your dragon (web standard)
notwaldorf
96
6.9k
Prompt Engineering for Job Search
mfonobong
0
520
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
Unsuck your backbone
ammeep
672
58k
Music & Morning Musume
bryan
48
7.4k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
The Invisible Side of Design
smashingmag
301
52k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
570
Statistics for Hackers
jakevdp
799
230k
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
870
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
290
Transcript
種族値合計600以上のポケモンを返すAPIを作成した
「クリーンアーキテクチャ」とは? 特徴 ・ソフトウェアの設計パターン ・依存の矢印が外側から内側へ (内側は外側を知らない) →ビジネスロジックが外部APIや DBに依存しない メリット ・テストが書きやすい ・保守性が高い
今回作ったもの 種族値の合計が 600以上の第一世代のポケモン を返すAPI ポケモンのデータ自体はPokeAPIから取得
今回作ったもの Entities ・ポケモンの型、ハイスタッツのルール Use Cases ・ポケモンを取得し、ハイスタッツに絞るという一連の処理 Gateways ・外部から取得したデータをユースケースが扱いやすい形 に変換 Drivers
・PokeAPIからポケモンを取得し、返すだけ
技術スタック ・Hono ・Vitest ・PokeAPI
学び・気づき レイヤーごとの役割が明確だから迷いがへる 実装時にどこに何を書こう、と悩む時間がなくなると思いました。 ビジネスルールを先に書くので、目的を見失いにくい 一番の目的を先に決めるので、実装途中で「あれ、なんか何がしたいのかわからなくなってきた」「目的とズレたことしてたか らやり直さなきゃ」みたいなのがなくなると思います。 とはいえ、この規模だとあまりメリットを感じない 上の二つのメリットを知ったものの、今回の規模だとクリーンアーキテクチャの良さを感じづらかったです。 PokeAPIのレスポ ンスが変わったり、別の
APIに変更したりすれば保守性の高さを実感できるはずです。
今後の展望 クリーンアーキテクチャでtodoアプリを作りたい。 ORMやDBの変更がどのくらい楽になるのか体感したい。