Hacker News new | ask | show | jobs
by com2kid 228 days ago
Singletons are so useful in single threaded node land. Configuration objects, DB connection objects that have connection pooling behind them, even my LLM connection is accessed via a Singleton.