233 reputation
19
bio website
location
age
visits member for 3 years, 11 months
seen Sep 10 at 11:54

Sep
10
comment Why did the creators of the Internet Protocol decide to use IP addresses to identify a particular computer?
"Why is the Internet Protocol address used to address computers via Internet Protocol?" Because if something else was used, that would have be called IP address now. I think the question should be rephrased into something like "Why are IP addresses not hard-coded in hardware?"
Sep
2
awarded  Popular Question
Jul
9
comment Designing database related methods, which is better to return: true/false or row affected?
Is there a semantic difference between "unsuccessful" and "zero rows affected"? Eg, when deleting all orders of a customer, there is a difference between "customer does not exist" and "customer has no orders".
Jun
4
answered Design for an interface implementation that provides additional functionality
Apr
16
revised How would another popular language avoid having to use the factory pattern while managing similar complexity as in Java/Java EE?
deleted 6 characters in body
Apr
16
comment How would another popular language avoid having to use the factory pattern while managing similar complexity as in Java/Java EE?
A factory can often also be configured after creation. The major difference, afaik, to a builder is that a builder is typically used to create a single, complex instance, while factories are used to create many similar instances.
Apr
16
comment How would another popular language avoid having to use the factory pattern while managing similar complexity as in Java/Java EE?
True, but it is a property often found in dynamic languages. I mentioned the need for first-class function in the beginning of my answer.
Apr
16
awarded  Yearling
Apr
16
revised How would another popular language avoid having to use the factory pattern while managing similar complexity as in Java/Java EE?
added 160 characters in body
Apr
16
comment How would another popular language avoid having to use the factory pattern while managing similar complexity as in Java/Java EE?
Read past the second paragraph and you will get to the "how other languages do it" part. (PS: the other answer also doesn't show alternatives)
Apr
16
answered How would another popular language avoid having to use the factory pattern while managing similar complexity as in Java/Java EE?
Mar
21
revised Is a programmer professionality bound to the language?
added 11 characters in body
Mar
21
answered Is a programmer professionality bound to the language?
Mar
6
comment Why define a Java object using interface (e.g. Map) rather than implementation (HashMap)
No, SortedMap is not an implementation, that's exactly the point. It is the interface for maps that sort by key.
Mar
5
comment Why define a Java object using interface (e.g. Map) rather than implementation (HashMap)
When you need a map that is sorted, the parameter type should be SortedMap‌​, not TreeMap.
Feb
11
answered How to describe an n-dimensional cube?
Jan
30
comment How to unit test a missing case in a switch statement where all cases are true
So basically, if you add an element the analyzer will tell you to fix the Error method? What happens when the enum comes from a libary and gets a new element with the next release, but the method in question is not updated yet? I'm asking, because that is the reason why the static analyzer of Java forces you to cover the default case, even if it seems "impossible" to reach.
Jan
29
comment How to unit test a missing case in a switch statement where all cases are true
What happens in Erlang when you add another enum element?
Jan
29
answered How to unit test a missing case in a switch statement where all cases are true
Jan
23
comment Are there any ultra high level languages out there?
Does HQ9+ count?