Quantcast
Channel: Parameters to Service-level classes: Primitives or domain-specific types? - Software Engineering Stack Exchange
Browsing all 3 articles
Browse latest View live

Answer by Morgen for Parameters to Service-level classes: Primitives or...

Fundamentally, types exist to provide information about values. So, when designing an API, the general principle is fairly intuitive: Argument and return types should not lie about the values they...

View Article



Answer by MeTitus for Parameters to Service-level classes: Primitives or...

Well what type of domains are we talking about? If the consumer is going to be java based and the definition is java based as well, then I would use an enum, because your method has a set of static...

View Article

Parameters to Service-level classes: Primitives or domain-specific types?

We have an existing web service which is currently modeled as a single project, where the web/service/manager/model classes have gotten a bit confused and intermingled. As a refactoring, we're pulling...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images