~/talk

47 Refactorings in 45 minutes

Talkat droidcon London 2025 · 2025-10-30..10-31· [developer-experience]
slides:none on file

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

  1. 0:00Introduction
  2. 1:03Project overview
  3. 2:49Reformatting entry point
  4. 3:54Property to initializer
  5. 5:17Inlining env variable
  6. 5:58Infix to regular function
  7. 6:39Removing duplicates
  8. 7:42Renaming server functions
  9. 8:25HTTP handler exploration
  10. 9:51Reordering handlers
  11. 10:32Function reference to lambda
  12. 11:59App class dive
  13. 13:23Flattening flat maps
  14. 15:31Inlining single-use functions
  15. 16:58Price stock loader review
  16. 18:26Reducing concurrency scope
  17. 19:30Reordering app fields
  18. 20:53Moving URL to constructor
  19. 21:54Removing redundant DB config
  20. 22:37Refactoring item type
  21. 24:05Functions to class methods
  22. 25:51Switcheroo technique
  23. 27:17Item type to functional
  24. 28:43Object to value
  25. 30:26Anonymous to named function
  26. 31:53AI-assisted refactoring
  27. 34:27Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.