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
yKazihara
June 24, 2017
Education
4.9k
4
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
リファクタリングのススメ
2017/06/24のKANJAVA PARTY 2017!!!で発表したLT資料です。
yKazihara
June 24, 2017
Transcript
10 slides
リファクタリングのススメ らん(@run51502)(๑و˙o˙)و 2017/06/24
自己紹介 名前:らん(@run51502) 京都生まれ、大阪在住 業界12年目の遅咲きSE 歌えるSE目指してボイストレーニングに励む
ポケモンGO:レベル39(資料作成時点) はねろ!コイキング:ランク63(資料作成時点)
参考本
リファクタリングとは? ソフトウェアを理解しやすく、変更を容易に する為に行うもの 外的振る舞いは既存を保つこと リファクタリングの利点とは? ソースの構造理解ができる
リファクタリングはいつ行う? どんな風に? 本番リリース後、手が空いたら 機能追加時 コードレビュー時に検討してみる 3度目の正直
対象となる例: エビ if (a1 == true) { if (a2
== false) { if (a3 == true) { if (a4 == false) { if (a5 == true) { if (a6 == true) { return; } } } } } }
対象となる例: 君(変数)の名は オブジェクト1:「もしかして私たち・・・」 オブジェクト2:「もしかして俺たち・・・」 「「入れ替わってる〜!?!?!?」」 マトリョーシカ
詰め放題セール 対象となる例: 名家の家系図
対象となる例: 覚えられない呪文 その他: 世界一周の旅(クラス渡り歩き) 遠距離恋愛(変数の宣言と値設定が離れている) などなど・・・
最後に リファクタリング前にテスト作成 やめる勇気を持とう ペアプロで検討してみよう 常にリファクタリングを意識して、 良いコードを育てよう!
More Decks by yKazihara
See All by yKazihara
ダークサイドエンジニア
ykazihara
0
380
Other Decks in Education
See All in Education
DRUGS ACTING ON THE PERIPHERAL NERVOUS SYSTEM
pawan_pharm
0
240
Sekolah Sabat - Triwulan 4 2026 - Pelajaran 4
hiola
0
7.4k
Railsチュートリアル × 反転学習の事例紹介
yasslab
PRO
3
190k
Requirements Analysis and Prototyping - Lecture 3 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.9k
吉岡研究室紹介(2026年度)
kentaroy47
0
710
Human Perception and Cognition - Lecture 4 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.8k
Liburd and Stoll Farrell "Copyright Essentials From A to AI: A 2026 NISO Training Series, Session One: Foundations & Frameworks of Copyright"
baltimoreniso
0
250
Longitudinal research
aisw77
0
440
2026年度秋学期 統計学 講義の進め方と成績評価について (2026. 9. 28)
akiraasano
PRO
0
280
自己紹介 / who-am-i
yasulab
6
7.6k
クオリティエンジニアリング ーゲームの品質を支えるエンジニアー
segadevtech
2
1.6k
BRIEF OUTLINE OF IMPORTANT PLANT CONSTITUENTS
pawan_pharm
0
320
Featured
See All Featured
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
330
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
1
320
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
580
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
1k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
620
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
490
The Pragmatic Product Professional
lauravandoore
37
7.5k
The Curse of the Amulet
leimatthew05
4
17k
How to make the Groovebox
asonas
2
2.6k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.8k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1.1k
Ruling the World: When Life Gets Gamed
codingconduct
0
450