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

Mar
12
comment Working with two different database types for one application
I can attest that this can be accomplished using Hibernate. To switch data sources, switch your Hibernate data source configuration. Using JPA w/ Hibernate works the same way.
Mar
11
comment Is logging next to an implementation a SRP violation?
+1 OP is taking it too far.
Mar
9
comment Robot in a grid
You probably mean "breadth-first search".
Mar
6
comment Calling Web API vs adding reference to underlying dlls
I disagree, but naming the design is irrelevant to the question, so I'll just say that I agree with the heart of your answer and leave it at that.
Mar
6
comment Calling Web API vs adding reference to underlying dlls
They certainly are, but simply using web service calls to access some functionality doesn't mean that the OP is using a distributed objects architecture.
Mar
5
comment Calling Web API vs adding reference to underlying dlls
Good answer from a theoretical standpoint, but it might be overkill. An HTTP request is always going to be slower than calling into a DLL, so until you need to support both, I'd stick to the clear winner.
Mar
5
comment Calling Web API vs adding reference to underlying dlls
This question doesn't describe distributed objects in the way that Fowler describes in Pattern of Enterprise Application Architecture, but I agree with the heart of your answer: making HTTP calls is going to be orders of magnitude slower than calls into a DLL.
Feb
12
comment Is throwing an exception an anti-pattern here?
At least with Guava's Optional, trying to put a null in results in an exception. You'd have to use Optional.absent().
Jan
5
comment Taming the 'utility functions' classes
If it feels like you're passing it around too much, maybe it does too much.
Dec
29
comment Is anyone capable of becoming a programmer and having a career?
You can do it!!
Dec
19
comment Where would you put configurable data to minimize Change Management slow downs?
Inserting or updating rows in your configuration database would require DBA assisntance?
Dec
8
comment A separate endpoint specifically for sync in a REST api
If your update logic is well encapsulated, you should be able to use the same e.g. class behind multiple endpoints. In any case, the decision should really come down to whether adding an aggregate endpoint improves performance enough to warrant the downsides, some of which you listed.
Dec
8
comment A separate endpoint specifically for sync in a REST api
I'll add the obligatory "are you sure this is a necessary optimization?" As @Cormac points out, caching may do everything you need if you set headers properly in your requests and responses.
Dec
8
comment A separate endpoint specifically for sync in a REST api
Good points, however adding an aggregate endpoint doesn't preclude individual resource endpoints as needed.
Dec
3
comment Extend, wrap, or both to add generics to a class that should have had them?
@JimmyHoffa: probably because of the "nightmarish type checking throughout the code".
Nov
6
comment How to deal with no code reviews in my new place when I come from that practice?
Read chapter 20 of Code Complete for a thorough treatment of code reviews, and the studies and statistics that support their use. Here are a couple of good summaries: Jeff Atwood's blog and another guy
Nov
6
comment Why do we use non-descriptive internal codenames?
This question appears to be off-topic because it is unrelated to software development.
Oct
15
comment Is there a limitation when using the Bloch's Builder Pattern with mandatory fields?
One possible drawback to re-using the builder in this way is that if an optional attribute isn't specified while building a later object, it will inherit the value(s) specified while building earlier objects.
Oct
10
comment IoC as service locator
Yes, it sounds like you need to split this class up into several, better-focused classes.
Sep
18
comment How to translate SQL query into REST API requests?
At the beginning of the question you say that user queries would be in SQL or a similar query language, but your example is "names of active projects of Chuck Norris". Is this a real example of what you'd have to parse?