Reputation
15,792
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
20 44
Newest
 java
Impact
~457k people reached

1d
comment Project structure: Where to put object factories
This might be my opinion, but I don't see the point of factories as you describe it. Either you want to ensure invariant in class and use a constructor, use abstract factory to delegate creation to some other part of program or builder to encapsulate complex creation rules. I don't see advantage of passing a string and having same object with just different configuration.
1d
comment Project structure: Where to put object factories
So, the factories create same objects, but just initialize them differently? What is their point then? Wouldn't it be simpler just to initialize them in place where they are needed?
1d
comment Project structure: Where to put object factories
What do you mean by factory? Abstract factory? Builder? Or just a method that calls another class's constructor?
Feb
6
comment Developing a system that connects to any datasource without much/any source-specific code
You are basically asking for an AI that will do programmer's work. So no, this doesn't exist. Yet.
Feb
3
comment What is the most elemental workflow for TDD?
How does TDD, branching and java directory structure even relate? They are completely unrelated concepts.
Feb
2
answered Dependency Inversion Principle - No deriving from concrete classes?
Feb
1
answered Domain Driven Design and Cross Domain interaction
Feb
1
comment Is using interfaces for datatypes an anti-pattern?
"Interfaces that only carry properties should be avoided" I disagree. Provide reasoning why do you think so.
Feb
1
answered Does such a design pattern exist? (Multi-Strategy/Multi-Traits)
Jan
29
comment Advice on program performance after changes
I actually think the problem might be database related. Your query is pretty simple and server shouldn't have problems with it unless you have billions of rows.
Jan
29
comment How do you evaluate automated testing for a particular product/project?
@RobbieDee Well, I don't perceive them. To me, they come from lack of experience with automated testing. But that might be just my bias.
Jan
29
comment Advice on program performance after changes
Are you sure you are not having problems with indexing? You should look into SQL profiler and see if there is no way to improve performance of the queries from server side.
Jan
29
comment How do you evaluate automated testing for a particular product/project?
I have to disagree with all the "perceived disadvantages" except maybe "higher developer skill" and even that has much worse consequences than automated testing.
Jan
21
comment Can I enforce the overriding of GetHashCode() and Equals() methods for users of a generic container class?
GetHashCode and Equals are implemented on every Object by default. Eg. reference equality for classes and value equality for structs. It should be on the user of your class to decide if default equality is valid or not.
Jan
20
comment Parallel hierarchies - partly same, partly different
Do Canvas or SVG classes contain additional state or data that is not in Common? How do you use the classes? Can you show some example code showing how could these hiearchies be used?
Jan
17
answered Command pattern and open-closed-principle
Jan
15
comment Parameterization vs subclassing
@ErikEidt The original design is in Java (or C#). And even if it is "standard" in C++ doesn't mean you won't get advantages for making your design like that. It makes dependency tree shallower, allowing for better partial or parallel build.
Jan
15
comment Parameterization vs subclassing
@Q126y No. In Uncle Bob's design, new payment classifications can be added without recompile. For example it can be in new library.
Jan
15
answered Parameterization vs subclassing
Jan
15
comment Trying to get a better understanding of object-oriented design's performance pitfalls
@Jack Modularity and extensibility are more clearly defined than your feelings. See SOLID