~/talk

Getting yourself out of trouble with anti-patterns

github:nealio82
slides:none on file

Shows concrete fixes and tools for real PHP disasters: running copy-paste detector via Composer finds 35 clones and ~2,000 duplicated files, refactoring with a Template Method removes 450 lines and four clone groups; using git blame/log uncovers lava‑flow churn and duplicate commits so methods get rationalized to version1/version2; a broken DB helper opens 40–50 connections per page and is fixed by a config object plus connection reuse; large report blob splits into query‑builder, temporary‑table and metrics classes and becomes testable.

AI-written summary · about

  1. 0:00Start
  2. 2:12Design Patterns
  3. 3:42Spotting Anti Patterns
  4. 5:21Symptoms of Cut and Paste Programming
  5. 7:32Copy-Paste Detector
  6. 8:58Pluck Reusable Components
  7. 11:35Code Review
  8. 12:10Lava Flow
  9. 20:43Code Is a Mess
  10. 21:09Symptoms of the Spaghetti Code
  11. 22:47Commit Messages
  12. 25:44Database Connection Script
  13. 27:57Encapsulating Stuff with Getters and Setters
  14. 36:45Identify Relationships According to the Contracts
  15. 39:43Removing Couplings
  16. 40:28Remove the Coupling
  17. 45:07Project Management Antipatterns
  18. 46:59Declare Success at the End of the Project
  19. 47:56Fire Drill
  20. 49:02Final Notes
~/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.