logoalt Hacker News

JanisErdmanistoday at 11:51 AM1 replyview on HN

With 100 functions and one datastructure it is almost as programming with a global variables where new instance is equivalent to a new process. Doesn’t seem like a good rule to follow.


Replies

embedding-shapetoday at 12:42 PM

The scope of where that data structure or functions are available is a different concern though, "100 functions + 1 data structure" doesn't require globals or private, it's a separate thing.

show 1 reply