ExploreTrendingAnalytics
Nostr Archives
ExploreTrendingAnalytics
ChipTuner5d ago
To your point https://git.vaughnnugent.com/cgit/vnuge/plugins-essential… Usually I would gate this functionality behind a branch to avoid reassigning a variable. It's very rare for me to use a mutable variable except in a very controlled scope. In some parts of this library I've wrapped with getters and setters.
💬 1 replies

Thread context

Root: 870a287751bc…

Replying to: 00000f1fc4ef…

Replies (1)

hodlbod5d ago
Encapsulation assumes developers are dumb and will shoot themselves in the foot. They are, and they will, but I prefer my code to have affordances for me to do weird things. But a big part of that is the difference between being a one-man team with comprehensive knowledge of the codebase and being on a larger team with shared institutional knowledge. My complaint is less about const, which is a good idea, than about linters wasting my time by making me switch back and forth. The number of times const has saved me doesn't compensate for the busy work of pleasing the linter.
0000 sats