News for hackers. Stuff that matters.
Re:You Want Modules, Not Microservices by nottorp on Wednesday January 04, 2023 @04:40PM (#34252172)
> you shouldn't do that, instead just inline Func1 and Func2 and comment it better.

Frankly It Depends(tm). Sometimes you can do this and not pass too much state, sometimes you can not. Sometimes your state is in a class, or global, and you just pass the class around.

I have somewhere a 3000 line state machine with the app state in a class - i just pulled out logically connected states in auxiliary files when it went over 1k lines. In my case it's easy to comprehend because groups of states are kinda separated logically.

There are no comments on this comment yet.