All Questions
2 questions
1
vote
2
answers
163
views
Is passing an ErrorMessage to be populated inside the receiving method an anti-pattern?
I come from a Java background, and my colleague is from .NET. We are working on a Java project and I saw him create a method like this:
public Object myMethod(Object[] param1, ErrorMessage ...
9
votes
2
answers
5k
views
Is implementing an interface defined in a subpackage an anti-pattern?
Let's say I have the following:
package me.my.pkg;
public interface Something {
/* ... couple of methods go here ... */
}
and:
package me.my;
import me.my.pkg.Something;
public class SomeClass ...