Reputation
4,297
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
9 28
Newest
 Cleanup
Impact
~125k people reached

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
12
comment Is my mentor's concern for code quality excessive?
First-line quote attribution: stackoverflow.com/a/878436/421245
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 data 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.
Mar
13
comment Understanding basics of object declaration in Java
Object creation (in Java at least) is not expensive: programmers.stackexchange.com/a/149569/34183