News for hackers. Stuff that matters.
Re:It's not what programming languages do, it's what they sh... by codr7 on Friday March 27, 2020 @12:51PM (#22704507)
The more local the state is, the easier it is to reason about since less code can reach it. And invalid state is a major source of bugs.

And the more global the state is, the less modular the system becomes, which makes it more difficult to test and adapt to new requirements.

That being said, it's more important to know why than memorizing/following rules, every good decision is some kind of compromise.

There are no comments on this comment yet.