TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: If global variables are bad, why are JavaScript data stores okay?

1 pointsby Pistos2over 5 years ago
By &quot;stores&quot; I mean things like Redux, Vuex, ngRx.<p>I&#x27;ve been using Vuex for a while now, and haven&#x27;t had any major problems (yet), so, instinctively, based on experience, I feel like these centralized data stores are okay. Yet, I don&#x27;t think I could make a solid, detailed argument in their favour given the reasons why global variables are bad (e.g. globals increase coupling; globals increase number of potential culprits when debugging).

no comments

no comments