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
Essential Refactoring for Scala with IDE
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Ryuhei Ishibashi
July 02, 2021
42
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Essential Refactoring for Scala with IDE
Ryuhei Ishibashi
July 02, 2021
More Decks by Ryuhei Ishibashi
See All by Ryuhei Ishibashi
Scalaエンジニアなら知っておきたいJVMの話
rysh
0
110
QA素人がゼロからQA組織を立ち上げるno
rysh
0
180
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.1k
Mind Mapping
helmedeiros
1
400
YesSQL, Process and Tooling at Scale
rocio
174
15k
Practical Orchestrator
shlominoach
192
12k
Balancing Empowerment & Direction
lara
6
1.3k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
2.9k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
710
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.9k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
410
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
330
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.7k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
Transcript
Essential Refactoring for Scala with IDEA twitter: @cactaceae
突然ですが、
リファクタリングしてますか?
IDEの機能つかってますか?
体の一部のように IDEを使いこなして欲しい
思考を中断せずに リファクタリングして欲しい
息をするように リファクタリングして欲しい
ショートカットを覚えよう!
どんな機能がある?
ScalaIDE http://scala-ide.org/docs/2.0.x/features/refactoring.html
Intellij IDEA https://www.jetbrains.com/help/idea/2017.1/refactoring-source-c ode.html
リファクタリング四天王
• リネーム • メソッド抽出 • 変数抽出 • インライン化 リファクタリング四天王
4つの操作を組み合わせると 安全にロジックを変形できる
リネーム
リネーム IntelliJ IDEA Help : Rename Shift + F6
メソッド抽出
メソッド抽出
メソッド抽出 IntelliJ IDEA Help : Extract Method Option + Command
+ Method
変数抽出
変数抽出 IntelliJ IDEA Help : Extract Variable Option + Command
+ Variable
インライン化
インライン化 IntelliJ IDEA Help : Inline Option + Command +
N
ローカル変数のインライン化
メソッドのインライン化
引数つきメソッドのインライン化
Inline of functions with parameters is not supported!!!
インライン化
インライン化
TODO: comment と vote する https://youtrack.jetbrains.com/issue/SCL-208 4 https://youtrack.jetbrains.com/issue/SCL-895 1