~/talk

Clean Code vs. Dirty Code: React Best Practices

Talkat BuzzJS 3.1 2018 · 2018-06-14..06-15· [react, developer-experience]
slides:none on file

Argues that clean React code is a consistent style that speeds future work, shows live edits in CodeSandbox demo converting duplicated emoji JSX into a single reusable component, and refactors stateful containers into presentational SFCs using defaultProps. Demonstrates ES6 features—arrow functions, destructuring, rest/spread—and a reverse-string demo that fails on multi-byte emojis, highlighting a real bug. Recommends strict linting in CI, triple equals, small single-responsibility functions, and fewer comments.

AI-written summary · about

  1. 0:00Introduction to clean code
  2. 1:27Defining clean code
  3. 2:55The smell test and taking breaks
  4. 5:16Don't repeat yourself (DRY)
  5. 7:02Live coding: DRY application
  6. 12:24Meaningful naming conventions
  7. 14:55Writing self-documenting code
  8. 18:01Design patterns and principles
  9. 20:05Avoiding leaky abstractions
  10. 21:17Long-term benefits of clean code
  11. 23:01Practical React refactoring
  12. 29:18Advanced ES6 features
  13. 32:31Q&A and final thoughts
~/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.