| ▲ | CyberDildonics 2 hours ago | ||||||||||||||||
Does one need one's separation of concerns if one's concerns shouldn't be separated in the in the first place? Anytime one has access to a database one has access to one large global data structure that one can access from anywhere is a program. This same concept goes for one's global state in one's game if one is making a game. | |||||||||||||||||
| ▲ | JanisErdmanis 2 hours ago | parent [-] | ||||||||||||||||
Separation of concerns is still a valid paradigm with a single global datastructure like GUI, Microservice, Database and etc. In such situation one can still seperate concerns via composing the global datastructure from a smaller units and define methods with respect to thoose smaller units. In that way one does not need to wonder whether there are some unattended side effects when calling a function that mutates the state. | |||||||||||||||||
| |||||||||||||||||