~/talk

The Importance of Clean Code

Talkat ConFrontJS 2019 · on Saturday, 2019-12-07· [developer-experience]
slides:none on file

The talk argues for concrete practices to keep JavaScript/TypeScript code clean: write very small functions (≤2 indent levels), minimize arguments by extracting objects, follow single-responsibility and avoid side effects, and use fast tests with a red-green-refactor cycle for CI. It also recommends removing unhelpful comments in favor of descriptive names, apply the Boy Scout rule to always leave code cleaner, and consider TypeScript interfaces and automated checks to make refactoring and onboarding easier.

AI-written summary · about

  1. 0:00Clean code welcome
  2. 1:56Why clean code matters
  3. 3:42Reason to write clean code
  4. 5:08Boy Scout Rule
  5. 6:14Clean code impact
  6. 6:37Single Responsibility Principle
  7. 9:52Function arguments
  8. 12:42Function size
  9. 14:30Avoiding side effects
  10. 16:35Exception handling
  11. 17:16SRP for classes
  12. 18:19Code comments role
  13. 20:26Testing foundation
  14. 22:11Red-Green-Refactor
  15. 23:39Automated testing benefits
  16. 24:46Testing timing
  17. 25:51Consistency and rules
  18. 27:15Clean code tools
  19. 28:00Q&A
~/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.