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
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
37
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
79
QA素人がゼロからQA組織を立ち上げるno
rysh
0
170
Featured
See All Featured
Scaling GitHub
holman
464
140k
Google's AI Overviews - The New Search
badams
0
1.1k
Balancing Empowerment & Direction
lara
6
1.2k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.3k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
440
The browser strikes back
jonoalderson
0
1.4k
Optimising Largest Contentful Paint
csswizardry
37
3.8k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
180
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
410
How Software Deployment tools have changed in the past 20 years
geshan
0
34k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.8k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.1k
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