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
よい設計のプログラムを作るには
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
まりも
September 26, 2024
Programming
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
よい設計のプログラムを作るには
アジャイルが当然の時代になり、プログラムの作り方も変わってきています。昔と変わったところもあり、それでいて共通するところもあります。その変化について解説してみました。
まりも
September 26, 2024
More Decks by まりも
See All by まりも
オブジェクトモデルと関係モデルの設計
hrmstrsmgs
0
64
メンタルモデルから見るオブジェクト設計
hrmstrsmgs
1
430
技術的負債
hrmstrsmgs
1
470
歴史から理解するJavaScript
hrmstrsmgs
0
110
論理的な考え方
hrmstrsmgs
0
120
論理的な話し合いはなぜ必要か
hrmstrsmgs
0
85
腕のある技術者はなぜ
hrmstrsmgs
0
160
疑似乱数の生成
hrmstrsmgs
0
82
構造化プログラミング
hrmstrsmgs
0
240
Other Decks in Programming
See All in Programming
PyConTW 2026 - AI Coding 不只是工具升級, 區域醫院醫療資訊系統協作開發與資訊團隊轉型實踐
cclai999
0
140
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
1k
Domain-Driven Transformation
hschwentner
2
2.3k
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
2
1.2k
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
3
1k
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
200
[JA] Domain Modeling with Vanilla Rails: 「操作」から再考するRailsの設計論
yasaichi
3
730
RAG の “R” を Swift で覗いてみる 〜「意味から探す」検索の仕組み〜
nao_randd
0
170
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
180
Workers Cache を知る
syumai
0
370
AmebaブログはKMPから卒業します
kmars0605
0
220
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
450
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
Facilitating Awesome Meetings
lara
57
7.2k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
740
The Cult of Friendly URLs
andyhume
79
7k
Ethics towards AI in product and experience design
skipperchong
2
440
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
870
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.9k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
560
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
270
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
430
Transcript
良い設計のプログラムを作 るには アジャイル時代に必要とされる設計
アジャイルの時代
アジャイル時代に必要とされる設計 目指すところはそんなに変 わらないですけどね。
アジャイル時代に必要とされる設計 ただ途中経過は結構違っ ているかもしれない。
アジャイルでプログラムはどう変わったか 少々の手戻りはどんとこい 変更はいつでも修正できる
アジャイルでプログラムはどう変わったか そもそも理想的な設計は 一つに決まらない
アジャイルでプログラムはどう変わったか 機能が変更されれば最適な設計も変わる
アジャイルでプログラムはどう変わったか テスト駆動開発では、内部 設計はリファクタリング時 に行う。 常にゴールが変 わる中で、常に 最適を保つ。
設計方針
DRY DRY Don't repeat yourself 絶対に二度書かない
DRY 本当に同じこ とは絶対に二 度書くな! 別に2回書く のが面倒だか らじゃないか ら。 影響範囲調べ る必要がない
コートにする。
DRY 厳密に絶対かと言えばさすがにそうじゃないけど。 たまたま同じ書き方になっているだけで違う意味の場合。 どう工夫してもその言語では絶対共通化できない場合。 無理やり共通化したほうが明らかに読みにくくなっている場合。
YAGNI YAGNI You ain't gonna need it いずれ必要にならない
YAGNI 必要にならなくても存在する以上は必ずコストがかかる。 必要になった時に当初想像していた仕様で問題ないことは少ない。 後で追加がよほど面倒な時はさすがに話が別だが。
オブジェクト指向設計 昔からの「正しい設 計」に近づけていく
抽象化 人間に対してプログラムを書く char*ではなく string型を使う “YYYYMMDD”では なくDate型を使う
識別子には適切な名前を付ける 解読しやすい 読めば分かるので解読する必要もない numberOfPeopleOnTheUSOlympicTeam maximumNumberOfPointsInModernOlympics checkTotal currentDate linesPerPage
識別子には適切な名前を付ける 辞書や類語辞典を使う 語順は正しい文法で 現在分詞や過去分詞をつかう 手を抜くな!!
推敲 門を推すというか敲くというか一晩考える。 もちろん文法は全部使えるのが当然です。 日本語の文章を推敲するのと全く同じ作業。