286 reputation
410
bio website
location
age
visits member for 2 years
seen May 27 at 16:15

Jan
14
awarded  Notable Question
Dec
10
awarded  Notable Question
Oct
31
awarded  Notable Question
Aug
1
awarded  Popular Question
Jun
25
awarded  Popular Question
Jun
20
awarded  Yearling
Apr
3
awarded  Popular Question
Feb
27
comment Are design patterns really essential nowadays?
@pdr The statement "here's a pattern that solves your problem" can be spoken in 3 scenarios. 1. Someone comes to you and asks you whether an existing pattern can solve their problem or 2. You make a suggestion to someone that they can use XYZ pattern to solve their problem or 3. You are talking to the computer. In either case, you are mapping a pattern with a problem statement which contradicts your opening statement - "It's rare that I sit wondering which pattern I should use in a given situation". Your answer is logically incorrect!
Feb
27
revised Designing status management for a file processing module
added 21 characters in body; edited title
Feb
27
comment Designing status management for a file processing module
@LokiAstari I have edited my question and rephrased it so that I can get the help I am actually looking for rather than spend time debating. ;)
Feb
26
comment Are design patterns really essential nowadays?
@Vitor I totally agree with you. I personally know people who think that looking out for a design pattern that fits your problem/scenario is a bad idea! They prefer reinventing the wheel. I fear that they may wake up one day and ask me not to use the Java IO classes and write my own IO handlers!
Feb
26
comment Are design patterns really essential nowadays?
@pdr By telling someone to "Use a strategy for that", aren't you doing exactly the opposite of what you have explained in your answer? Aren't you asking someone to use a design pattern you think fits well for a particular solution?
Feb
26
comment Designing status management for a file processing module
@Loki The answer that you linked me to is flawed! The user pdr says "Use a strategy for that". So it's ok to tell someone to use a design pattern but it's not okay to ask someone what design pattern to use? That doesn't sound right to me!
Feb
26
comment Designing status management for a file processing module
@Loki Every object oriented programmer has heard of the book called "Design patterns - Elements of reusable object oriented software". If we should not reuse a design patterns, then what is the point in documenting them?
Feb
26
awarded  Commentator
Feb
26
comment Designing status management for a file processing module
@Loki With all due respect, you are suggesting that I should reinvent the wheel so that someday when I decide to come out of my cave, I can compare my wheel with others and sa hey look my wheel llooks something like yours?
Feb
26
asked Designing status management for a file processing module
Feb
25
accepted How to use Dependency Injection in conjunction with the Factory pattern
Feb
24
comment Generic file parser design in Java using the Strategy pattern
I have one more question for you. I am not going to use a Context that is a part of the Strategy pattern. Will that be alright? I am also getting rid of the generic parameters and returning Object in the parse method in the Parser interface. This is to avoid classes that use the Parser to be declared with a type parameter.
Feb
23
comment How to use Dependency Injection in conjunction with the Factory pattern
If a class depends on a Factory, you will need to mock the factory when unit testing that class. How do you go about doing that? Let the class depend on a factory interface?