Learning JavaScript Design Patterns
The source of the first edition of Addy Osmani's book, free to read online. It explains the classic patterns (module, revealing module, observer, mediator, facade, factory, singleton) in JavaScript, with the reasoning for when each helps and when it is overkill. The repo has not changed since 2021 and parts predate modern ES modules and classes; the second edition (O'Reilly, 2023) and patterns.dev cover the modern JavaScript and React versions.
GitHub repo
Web Development
Addy Osmani
Intermediate
Free
The source of the first edition of Addy Osmani's book, free to read online. It explains the classic patterns (module, revealing module, observer, mediator, facade, factory, singleton) in JavaScript, with the reasoning for when each helps and when it is overkill. The repo has not changed since 2021 and parts predate modern ES modules and classes; the second edition (O'Reilly, 2023) and patterns.dev cover the modern JavaScript and React versions.
Ready to start?
Opens on Addy Osmani in a new tab.
Stuck on something specific?
Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.
Follow along
New writing, resources and project ideas land here first.