Top
Best
New

Posted by handfuloflight 12/11/2025

Patterns.dev(www.patterns.dev)
627 points | 153 commentspage 3
PUSH_AX 12/12/2025|
I don't think I've thought about patterns in over a decade, maybe I use one or two without realising it's a "pattern".
css_apologist 12/11/2025||
a lot of these are misleading, or ungrounded

see the prototype, and observable pattern

they explain the basic concept, but in the only way you would never use it in real life

dkersten 12/11/2025||
I hate that singleton is first.

Singletons are just globals with extra steps, and have all the same problems globals have, just people (especially juniors) think they somehow are better.

In reality they’re worse because they conflate global access with enforced single instance. You almost never need to enforce a single instance. If you only want one of something, then create only one. Don’t enforce it unless it’s critical that there’s only one. Loggers are often given as an example of a “good” singleton and yet we often need multiple loggers for things like audit logs, or separating log types.

Instead of singletons, use dependency injection, use context objects, use service locators, or… just use globals and accept that they come with downsides instead of hiding behind the false sense of code quality that is a singleton.

Simplita 12/11/2025||
This resource aged surprisingly well. Still one of the clearest ways to understand common frontend patterns.
lacoolj 12/12/2025||
I'm reading these articles in Addy's voice. It's quite wonderful
tigrezno 12/11/2025||
Too bad the examples are not Typescript, because it's a totally different beast.
sh4rks 12/11/2025||
This looks like an excellent resource for interview preparation. Bookmarked.
bmiekre 12/11/2025||
Did this get an update? It's been around for a while.
1970-01-01 12/11/2025|
Thanks, I was looking for something just like this today!
More comments...