~/talk

7±2 Reasons Psychology Will Help You Write Better Code

Talkat JSConf Budapest 2022 · 2022-06-02..06-03· [developer-experience]
github:moranw
slides:none on file

Shows that cognitive tricks change concrete code decisions and catches real bugs: uses the stroop task and the gorilla selective attention demo to prove surprises hide in plain sight, cites the 7±2 working memory limit and uses chunking to simplify long parameter lists, reports a production bug caused by an http postMessage and fixes it by renaming to isReadyWithSideEffects, argues for mandatory cold code reviews rather than explained walkthroughs and demonstrates linters cannot replace clear naming.

AI-written summary · about

  1. 0:00Introduction
  2. 0:58The Speaker's Background
  3. 2:20Conveying Clear Intent
  4. 2:49Cognitive Psychology in Code
  5. 4:39Creating Better Names
  6. 6:53Framework Naming Examples
  7. 7:37Limiting Working Memory
  8. 9:07The Technique of Chunking
  9. 11:42Applying Chunking to Code
  10. 14:03Filtering Data and Noise
  11. 15:34Two Modes of Thinking
  12. 17:51Predictable Code
  13. 20:02Importance of Code Reviews
  14. 21:26Selective Attention Illusion
  15. 23:12Blind Spot in Reviews
  16. 24:02Monkey Business Illusion
  17. 25:53Psychology and Coding
  18. 27:28Conclusion
~/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.