Reputation
2,801
Top tag
Next privilege 3,000 Rep.
Cast close & reopen votes
Badges
13 37
Impact
~74k people reached

Apr
14
comment Using mocks to set up object even if you will not be mocking any behavior or verifying any interaction with it?
I want it to match the instance specifically. If I use any the functionality could swap in an entirely different instance and the test would still pass.
Apr
14
comment Using mocks to set up object even if you will not be mocking any behavior or verifying any interaction with it?
The example does not stub any behavior either.
Jan
29
comment Declarative caching on Collections
Yes, I was kind of hoping there were an existing extension to Spring (or a trick) that would provide support for this or that there was a design pattern that I could utilize behind this method that would assist me.
Jan
23
comment Declarative caching on Collections
@RobertHarvey The cache would not be stateless. I just want the example object to remain stateless so that I can use it as a Singleton in the app (ex/ no temporary class level attributes that represent the current data being loaded). The cache is lazy...it will only be populated when get is called (method level caching). I would leave the eviction policies to the implementation I end up choosing...this is only referring to the abstraction.
Sep
11
comment In need of a more technical answer for an interview question about how the internet works from beginning to end
What is the nature of the positions you were interviewing for?
Aug
23
comment Good, simple reasons for having multiple environments
"changing habits, breaking prejudices, and ultimately about opening potentially closed minds to greater possibilities" - in retrospect this was the key and I cannot point to any single reason as to why it eventually happened
Aug
23
comment Good, simple reasons for having multiple environments
For anyone who cares... it has been two years since I asked this question and we have a clear separation of environments now. It happened because of repetition. We continually said we needed it and we lost some employees who were against it and won over others. Slowly the tide turned. I wish there were a formula to get it, but I guess the culture just had to naturally adopt it.
Jul
3
comment What to do when I just don't know what's wrong?
@MaciejPiechotka Yes definitely, you still do need to know how to fix it. It has been my experience that a proper test plan lessens the need for traditional debugging dramatically. Usually a failed test will immediately tell the developer what is wrong.
May
7
comment Where should I parse data obtain with a DAO
@RobertHarvey Unmarshalling has been done and redone. I prob won't do it justice in a few lines on stack exchange so I linked to some well known examples to try and satisfy your concern.
Apr
16
comment How can I deal with a team member who duplicates code?
You're going to find many reasons to give him in the referenced links. If you want to stop hearing the excuse that you mentioned, use static code analysis (specifically, a copy/paste detector). The build can fail immediately when dupe code is present and he can fix before he moves onto something else.
Apr
8
comment Term for accidental features
@MarkJ For sure. If I used the term "undocumented feature" with my business, they wouldn't bat an eyelash. At best they would prob be annoyed because it gives them the false impression that we didn't document properly.
Apr
7
comment Term for accidental features
Very good. But what if you were talking to another developer?
Apr
7
comment Term for accidental features
Yeah, I have heard this one. What do you call intended features that are not documented?
Feb
26
comment Engineering interview candidate refuses to use whiteboard
@Tyanna Yes, that was the root of my trepidation. Seems as though most disagree though, so perhaps I am being overly cautious.
Feb
25
comment Engineering interview candidate refuses to use whiteboard
(Please migrate if this is not the correct stackexchange site)
Feb
14
comment Architecting an application with a single page javascript driven UI
@Rocket04 When it comes to security (among other things) the answer often lies in AOP. have you eliminated that as a possibility?
Feb
13
comment Architecting an application with a single page javascript driven UI
@RobertHarvey I believe the user is already authenticated in this scenario. Maybe you mean "Perform authorization checks on your ajax requests"?
Feb
13
comment Architecting an application with a single page javascript driven UI
Allow the client to pass in a userId in the request and just validate that the userId matches the userId in the session object (if that is what is required for authorization). AOP can help you do this without muddying up your business logic.
Jan
30
comment What defines “software developer” role
also according to this
Jan
7
comment Advice: Developing two projects where one is an extension of the other
@LazyBadger Ah, I would suggest that the model not be taken to that level of literal detail. A feature set dev branch usually soon follows.