Reputation
1,167
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
8 23
Newest
 Curious
Impact
~15k people reached

  • 0 posts edited
  • 3 helpful flags
  • 84 votes cast
Jan
25
comment Is there an established pattern for associating a database entry with a Java class that executes on that data?
Very cool. In JPA I'm used to associating a single entity with a single table, but once I researched the JPA discriminant column like you described it makes perfect sense. I think an enum is the best way to identify the implementation. Basically a TaskType relationship table. Does that sound like what you were giving as an example?
Jan
25
comment Is there an established pattern for associating a database entry with a Java class that executes on that data?
What would be stored in the discriminant column, or tables with specific attributes? I don't have additional state to load. It really is just a different implementation. I guess I'm asking what that "identity" would be, and how I might initialize and cache the instance (in a theoretical sense).
Nov
2
comment How to test issues in a local development environment that can only be introduced by clustering in production?
@RossPatterson Do you find that the Apache equivalent sheds significant light on most problems, or is it hit and miss?
Nov
1
comment How to test issues in a local development environment that can only be introduced by clustering in production?
While this is the optimum solution I do wonder about the cost effectiveness. Our network operations finally received the budget for a staging instance of our load balancer, but that was an expensive decision. I'm curious if there are open source load balancers that emulate their higher load professional counterparts. I know it still isn't entirely 1-to-1, but maybe a little closer?
May
29
comment Is writing software in the absence of requirements a skill to possess or a situation I should avoid?
"The skill isn't to write software without requirements. It is instead to elicit requirements from the project owner regardless of whether there is a formal requirements documentation or not." This is also something I've been thinking a lot about. It's almost like being a good detective, or knowing how to interview someone and ask the right questions. In this situation I find the question, "Can you tell me what you want to do?" works much better than "Can you tell me how it should work?"
May
4
comment Why would I write a DSL instead of a form based RIA?
@sebastiangeiger Ruby is not a DSL, and neither is Sinatra. See the answer to this question: stackoverflow.com/questions/2822002/why-is-rails-called-a-dsl. All you have to ask is a simple question: what is the domain? If it is general purpose (web application framework development), then it is a GPL. See the answer that FrustratedWithFormsDesigner gave in the comment above. That would be a better example of a domain.
May
4
comment Why would I write a DSL instead of a form based RIA?
Michael, can you provide an example of a problem domain where the amount of logic might make it better suited for a DSL?
May
4
comment Why would I write a DSL instead of a form based RIA?
@Telastyn I could have just as easily not said RIA, but just said form-based web application. An RIA and a DSL can both be about "information discovery".
Sep
20
comment Is it possible to evaluate the efficiency of a testable algorithm against alternative solutions that aren't already built?
@MatthewFlynn It was home grown.
Aug
18
comment What would motivate you to do free programming work for work after work?
@Iterator How many owners will let employees think like an owner without trying to "out owner" them? I would love it if more owners just said, "Run with it!" Unfortunately, the micro manager mentality kicks in and they want to take full ownership.
Aug
18
comment What would motivate you to do free programming work for work after work?
Thank you for the idea and contribution.
Aug
15
comment What would motivate you to do free programming work for work after work?
@Thorbjorn Actually, I never thought about that, but that is a great question. I'm not sure I would know the criteria to reward them outside of work-related programming. For example, should they be rewarded for contributing to an open source project?
Aug
15
comment What would motivate you to do free programming work for work after work?
@Thorbjorn and for user272735, just to make things crystal clear here, I am NOT trying to figure out how to get coworkers to do free work. As a matter of fact, I WANT them to be rewarded. The crux of the question is do programs or initiatives exist so that they can be rewarded.
Aug
15
comment What would motivate you to do free programming work for work after work?
@Thorbjorn In case you're wondering, I'm not a manager trying to squeeze free work out of employees. Instead, I'm a lead trying to determine what my options are with regard to making recommendations to management.
Jul
22
comment Is a programmer's gut instinct an acceptable answer with regard to design decisions?
@Falcon What do you mean tricked you in similar situations, like you thought you were right, but it turned out you were wrong?
Jul
22
comment When to favor ASP.NET WebForms over MVC
As a Java "observer" from the outside, I'm very interested in this answer as well.
Apr
9
comment What are the organizational benefits of TDD over functional development backed by unit tests?
This is a good response, but I have to disagree, but only when it comes to TDD. For agile (Scrum) or OOP, where the affects can be felt by other developers, it is necessary to get on board. However, I honestly feel as if TDD is an area where testing/fail first is a "personal belief" in a programming practice and should not be enforced for the entire team.
Apr
8
comment What are the organizational benefits of TDD over functional development backed by unit tests?
@S.Lott: I think it comes down to how I would classify TDD over just writing unit tests. Even though a developer can certainly write a bad unit test, for the most part the practice helps support all developers (the organization). However, TDD involves a "fail first" paradigm shift in thinking and individual development coding practices. You're still writing unit tests (which benefits everyone), but now you have to do it the TDD way, which may not be as efficient for every individual.
Apr
8
comment What are the organizational benefits of TDD over functional development backed by unit tests?
Who is to say that every individual using TDD is going to do better? Isn't that a broad generalization about how programmer's work best?
Mar
18
comment How might one teach OO without referencing physical real-world objects?
@S.Lott: That is the essence of the question. How would it improve how we understand OO? It might, and it might not, but if there is another way then I'm interested in hearing about it.