~/talk

Object Oriented Programming Best Practices

Talkat XtremeJS 2021 · on Thursday, 2021-12-23· [javascript, software-architecture]
slides:none on file

Advocates defining private class fields and pairing them with getter/setter methods so assignments run validation, using JavaScript’s class accessors as classic properties; insists to call super in constructors so parent initialization and future changes apply to subclasses; recommends a toString per class and to define custom exception classes (throw objects not strings); argues SOLID principles improve maintainability and that adopting TypeScript yields clearer, safer OOP.

AI-written summary · about

  1. 0:00Start
  2. 1:32Best Practice
  3. 3:30Code Sample
  4. 15:10The toString Method
  5. 15:44Exceptions Classes
  6. 17:38The SOLID Design Principles
  7. 17:56Single Responsibility
  8. 19:33Open Closed
  9. 22:23Liskov Substitution
  10. 24:29Interface Segragation
  11. 25:27Dependency Inversion
~/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.