~/talk

Design Principles for Better FrontEnd Code

slides:none on file

Argues frontend JavaScript becomes maintainable by applying concrete rules: use === not ==, avoid var and prefer const/let with "use strict" or modules, and favor functional style plus SLAP (single level of abstraction). Demonstrates rewriting imperative code to functional then extracting isEven/double/add, runs Plato and sees maintainability metrics move from ~65% to ~93% and then 100%, uses ESLint to block bad patterns and runs Plato/ESLint (and Jest) in CI to fail builds below ~70–90%. Tools help but sometimes overstate quality.

AI-written summary · about

  1. 0:00Introduction to front-end code quality
  2. 1:57Software design principles in JavaScript
  3. 7:56Avoiding JavaScript pitfalls
  4. 15:15JavaScript's legacy and quirks
  5. 27:15Functional vs imperative style
  6. 31:34Measuring code quality with tools
  7. 44:04Single level of abstraction principle
  8. 48:00Clean function parameters and structure
  9. 53:42Code reviews and team practices
  10. 56:31Unit tests and continuous improvement
  11. 1:00:26Q&A and closing remarks
~/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.