Reputation
4,348
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
10 28
Newest
 Yearling
Impact
~131k 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.
Aug
24
answered REST autocomplete endpoint design
Aug
13
awarded  Yearling
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
8
awarded  Cleanup
Jun
8
revised Way to organize repetitive text in Java
rolled back to a previous revision
Jun
8
revised Way to organize repetitive text in Java
removed comments
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
22
answered How should an API or server respond when a device connects with a different account than it is bound to?
May
22
revised How should an API or server respond when a device connects with a different account than it is bound to?
grammar
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?