~/talk

Code Refactoring Workshop

Talkat Laracon India 2024 · 2024-03-23..03-24· [developer-experience]
slides:none on file

Covers six submitted Laravel code samples; runs Pint to normalize style, removes dead code (shrinks a file ~30–40%), inverts nested ifs to early returns, moves dependencies into action-method injection, replaces array_column+array_combine with pluck, swaps helper dispatch for static job dispatch, uses abort_if instead of nested guards, prefers request injection over facades, converts array logic to Collections (map/keys/join), and demonstrates unit tests with artisan make:test and RefreshDatabase.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:02Normalization and dead code
  3. 3:54Deep cleaning techniques
  4. 6:41Improving readability
  5. 11:53Leveraging Laravel features
  6. 15:44Refining controller logic
  7. 18:21Streamlining workflows
  8. 21:01Optimizing with collections
  9. 26:58Testing in isolation
  10. 33:36Q&A session
~/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.