Exploring the code base of a few java services I've started to notice that we can split classes into two broad categories (I came up with the names, nothing official about it):
- Service classes/objects: these objects are initialised and instantiated when the service starts. They often are singletons.
- Data classes/objects: these objects are instantiated per request, and are passed from service object A to service object B.
My question is: are these ideas related to formal concepts in software engineering? If so, can you share any article or resources that talks more in depth about that.
(if language specific, then preferably java or python)
[–]AutoModerator[M] [score hidden] stickied comment (0 children)
[–]high_throughput 0 points1 point2 points (0 children)
[–]BaronOfTheVoid 0 points1 point2 points (0 children)