Top all-time · #18635
Klemens Schreiber
Personal blog · k94n.comprogrammingweb
Klemens Schreiber writes k94n, a personal blog at k94n.com about programming and web. Since 2016, 4 different Hacker News readers have linked it 4 times, most often “Gordux.js – The redux pattern in vanilla JavaScript”. The last post was in 2016, but the archive is still widely read.
Too few sampled comments (1) to say how often HN recommends it.?
Why HN links it
Linked for a post on designing very large JavaScript applications, where a commenter discusses dependency injection and sharing singletons through module exports.
Summarised by Claude from a sample of 1 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Senior Frontend Developer - Building fast, accessible web experiences
Most-linked posts?
- Gordux.js – The redux pattern in vanilla JavaScript3 people · 3 mentions · first linked 2016-03-26
What Hacker News says?
Yes, that is DI too, you can think of it something like 'injecting a shared singleton service', and yes the passing into a constructor is the basic approach you might call 'manual DI'. And yep modules can let you avoid the need for that, you can share singletons by exporting an instance from a module, and then if you import that module from 2 other modules, both will get the same instance [1]. Though tbh that still…
Comment linking /es6-modules-single-instance-pattern
on “Designing very large JavaScript applications”Submitted Gordux.js – The redux pattern in vanilla JavaScript as a story · 4 points
HN discussionSubmitted Gordux.js – The redux pattern in vanilla.js as a story · 2 points
HN discussionSubmitted Gordux.js – The redux pattern in vanilla.js as a story · 1 points
HN discussion