~/talk

Why refactoring is the best tool to write better code

Talkat Laracon Online Summer 2021 · on Wednesday, 2021-09-01· [developer-experience]
slides:none on file

Argues that small, test-backed refactorings make code simpler and safer, then demos it by adding a weekly summary tweet to a Laravel app: renames files for consistency, extracts a scope scopeFromLastWeek, replaces DB pulls with a count call, and uses a Twitter fake in PHPUnit. Adds a test that prevents tweeting when there are zero streams, runs the suite until 119 tests green, 6 ignored, and shows the feature working without breaking existing behavior.

AI-written summary · about

  1. 0:00Intro
  2. 11:45What is better code
  3. 13:16Why do we need refactoring
  4. 15:00Testing and refactoring
  5. 15:53Live demo
  6. 16:17Livestreams demo
  7. 19:05File names
  8. 21:32Tests
  9. 33:37Conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.