A service that can serve some clients, and often this is an SOA specific entity. The helper provides a set of methods that are usually pure functions .
From my point of view, if a class that provides GUID generation functionality stores or uses this GUID for further needs, this is the Service class, otherwise I would say that it is Helper
, because it is simple to work on the principle of doing and forget / generate and forget.
Often, if you can make a static method a helper method, it does not depend on any state of the class and does not affect it either.
source share