Reputation
4,338
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
10 28
Newest
 Yearling
Impact
~130k people reached

Aug
24
comment REST autocomplete endpoint design
Idempotency in this context is a property of HTTP methods, meaning that the side-effects of N > 0 identical requests is the same as for a single request. Executing a GET request for a specific resource should always return the same resource without side-effects; the content of that resource may change, but it should be the same resource.
Aug
24
comment REST autocomplete endpoint design
I hadn't thought of a sub-resource being a set of suggestions, but that's a good option.
Jul
22
comment Who should write Unit Tests?
New components in legacy codebases can often be written to be testable, and writing tests before or after that has worked in my experience.
Jun
26
comment How to avoid …Helper or …Manager classes
Agreed. All three of "Helper", "Manager", and "Service" are ways that we group methods to avoid tons of super-specific classes with a single method, but "Service" has a little more meaning, as you described. I would add that it implies that the class is part of the service layer interface, helping to simplify access to the business logic (which may be made up of many more specific classes) for a given domain class. Whether the suggestion logic should be in a separate class from the add/remove logic depends on how complex the suggestion logic implementation is.
Jun
26
comment How to avoid …Helper or …Manager classes
Changing the suffix from "Helper" to "Service" doesn't make it any easier to get an idea of the class's responsibility by its name, which I think is the heart of the question.
Jun
25
comment Repository pattern vs DAO managing Entities
Patterns of Enterprise Architecture has a great section on data access patterns. If I remember correctly, Fowler's Table Data Gateway is analogous to a DAO, so a lot of the patterns he describes in the book have been implemented in ORM libraries.
Jun
19
comment Modern frameworks method conventions
That's often called a "fluent" style.
Jun
15
comment How to quantify the work perfomed by a developer/programmer?
The team should strive to avoid taking on difficult to develop features that don't add as much value to the business.
Jun
5
comment Tomcat Backend & Java Desktop Client
If you want to avoid web services, look into exposing a JMX service.
May
29
comment How can I create a model to efficiently answer the question of - where to place my db-interaction code I am about to write?
Fowler outlines various techniques in Patterns of Enterprise Application Architecture. It's worth the read.
May
20
comment REST API design: POST (implicit userId) vs PUT (explicit userId)
We're in agreement on server-side authorization. Accepting a userId filter as in your example for a news resource is confusing at best; collection filters don't belong in the path, they belong in a GET parameter. If an ID is supported as a child resource of a /news resource, it should be interpreted as a specific news ID.
May
20
comment REST API design: POST (implicit userId) vs PUT (explicit userId)
Filtering has to happen on the server side based on authentication info, otherwise a user sending requests outside of the UI would be able to access to more than they should.
May
18
comment Design suggestions for converters in Java
Could you provide an example?
Apr
24
comment Automatic builders/chain setters for Java?
Project Lombok has (along with lots of other great annotations) @Builder.
Mar
18
comment Does sending system-profile information with HTTP GET request conform to RESTful practices?
Looks like it's URL parameters.
Mar
18
comment Does sending system-profile information with HTTP GET request conform to RESTful practices?
In what way does Sparkle include system-profile info with the GET request? E.g. as a request body, as a URL parameter, etc?
Mar
18
comment Does sending system-profile information with HTTP GET request conform to RESTful practices?
REF 7321 appears to be Cryptographic Algorithm Implementation Requirements and Usage Guidance for Encapsulating Security Payload (ESP) and Authentication Header (AH) - is that the RFC you're referring to?
Mar
18
comment Handling DomainExceptions using REST endpoint
Related: programmers.stackexchange.com/a/237239/34183
Mar
13
comment Understanding basics of object declaration in Java
In that case, a more accurate word might be "verbose".
Mar
13
comment Laravel 5 Multi-App
This question centers on a specific version of a specific framework, so you might get more attention on a forum specific to that framework.