You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code in house.go seems to use a lot of global variables. Why not use more encapsulation to create simple, pure functions with a clear input and output, rather than relying on global state?
Is this global state (indicated by the global variables) an intentional design decision? If yes, why?
Is it a pattern recommended by Go? If yes, can you show me docs?
The text was updated successfully, but these errors were encountered:
The code in
house.go
seems to use a lot of global variables. Why not use more encapsulation to create simple, pure functions with a clear input and output, rather than relying on global state?Is this global state (indicated by the global variables) an intentional design decision? If yes, why?
Is it a pattern recommended by Go? If yes, can you show me docs?
The text was updated successfully, but these errors were encountered: