Questions tagged [design-patterns]
A design pattern is a general reusable solution to a commonly occurring problem in software design.
1 questions from the last 7 days
-2
votes
1
answer
82
views
Are there any good and modern approaches, to have variables that feel global (no need to pass them around explicitly), yet are local to an instance?
I'm developing a library in JavaScript (TypeScript, actually) which is split into several modules. It's meant to run both on the web and in non-web environments like Node.js.
The library is meant to ...