223 reputation
18
bio website
location
age
visits member for 3 years, 6 months
seen 45 mins ago

9h
revised How another popular language would avoid having to use factory pattern while managing similar complexity as in Java/JEE?
deleted 6 characters in body
10h
comment How another popular language would avoid having to use factory pattern while managing similar complexity as in Java/JEE?
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.
10h
comment How another popular language would avoid having to use factory pattern while managing similar complexity as in Java/JEE?
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.
10h
awarded  Yearling
10h
revised How another popular language would avoid having to use factory pattern while managing similar complexity as in Java/JEE?
added 160 characters in body
10h
comment How another popular language would avoid having to use factory pattern while managing similar complexity as in Java/JEE?
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)
10h
answered How another popular language would avoid having to use factory pattern while managing similar complexity as in Java/JEE?
2d
comment Should I refund a client or not?
Do you mean "should" in an ethical or legal sense? If it's the former, then "no"; if it's the latter, that depends so much on where you live and what exactly you have agreed on that only a lawyer could tell you.
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?
Jan
20
comment How should I validate code when there is no one to do code review?
You said in a comment that your customer is your company, but who is/will be using the software?
Jan
19
comment Where are octals useful?
Option D: "blame PHP" is always the right choice, regardless of the problem
Nov
15
comment Making an algorithm more efficient
Notice that there is a difference between making an algorithm more efficient and choosing a more efficient algorithm.