~/talk

Learn to write better code with JMAC

Talkat Laracon Online 2019 · on Wednesday, 2019-03-06· [developer-experience, career-development]
slides:none on file

Ten concrete refactors: enforce PSR-2 formatting with PHP_CodeSniffer or StyleCI; remove commented and unreachable code via PHP Mess Detector or PhpStorm inspections; collapse nested conditionals into guard clauses and early returns; replace primitive clumps with value objects (Money, Range) and small enums/bitwise flags; break large controller methods into Form Requests, named constructors and model methods; prefer reasonable empty returns (empty arrays or Guest objects); follow the rule of three; aim for symmetry in names and CRUD signatures.

AI-written summary · about

  1. 0:00Introduction
  2. 0:23Bad code and over engineering
  3. 3:31Coding with empathy
  4. 5:16Ten practices for better code
  5. 5:37Practice 1: Formatting
  6. 9:08Practice 2: Dead code
  7. 13:41Practice 3: Nested code
  8. 18:36Practice 4: Using objects
  9. 23:56Practice 5: Big blocks
  10. 30:26Practice 6: Naming
  11. 34:42Practice 7: Removing comments
  12. 41:44Practice 8: Reasonable returns
  13. 45:18Practice 9: Rule of three
  14. 47:44Practice 10: Symmetry
  15. 54:38Summary of practices
  16. 55:21Q&A
~/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.