47 Refactorings in 45 minutes
summary
Live-coding shows 47 refactorings in 45 minutes inside IntelliJ IDEA using the K2 Kotlin plugin while counting changes with a refactoring counter and running test and commit and revert so passing tests auto-commit and failures auto-revert; examples include converting properties to initializers or lazy, inlining single-use values, converting parameters to receivers, renaming for clarity, extracting and collapsing lambdas, the Alt-Enter reveals hidden refactorings trick, and several switcheroo moves that preserve behavior while simplifying design — all verified by running the test suite.
AI-written summary · about
chapters (27)
- 0:00Introduction
- 1:03Project overview
- 2:49Reformatting entry point
- 3:54Property to initializer
- 5:17Inlining env variable
- 5:58Infix to regular function
- 6:39Removing duplicates
- 7:42Renaming server functions
- 8:25HTTP handler exploration
- 9:51Reordering handlers
- 10:32Function reference to lambda
- 11:59App class dive
- 13:23Flattening flat maps
- 15:31Inlining single-use functions
- 16:58Price stock loader review
- 18:26Reducing concurrency scope
- 19:30Reordering app fields
- 20:53Moving URL to constructor
- 21:54Removing redundant DB config
- 22:37Refactoring item type
- 24:05Functions to class methods
- 25:51Switcheroo technique
- 27:17Item type to functional
- 28:43Object to value
- 30:26Anonymous to named function
- 31:53AI-assisted refactoring
- 34:27Summary
related talks
41m43 Refactorings in 40 minutes
46mHow we’re improving performance of IntelliJ IDEA Kotlin plugin
01h 14mLimited Work-in-Progress for Developers
42mGilded Rose Refactoring Kata
44mBe more productive with IntelliJ IDEA
54mProject needs refactoring? Here’s the IDEA!
44mThe Art of Refactoring
58mAtomic Refactoring in IntelliJ IDEA: Bending the IDE to Your Will
