8,384 reputation
23741
bio website google.com/+JoachimSauer1
location Austria
age 34
visits member for 4 years, 3 months
seen 2 days ago

I read code, I write code, I like code.


Dec
12
comment Who extends interfaces? And why?
@overexchange: I too don't get what you are trying to say. But it definitely seems to be unrelated to this question and answer. The question is about why the generics syntax uses extends when (potentially) referring to interfaces. Your comment seems to be about the unrelated topic of "should I use interfaces or classes". If you've got a specific question about that, please post that separately.
Sep
30
awarded  Explainer
Sep
16
awarded  Yearling
Jun
13
comment Summary of differences between Java versions?
@StevenL: very good point, not sure why I missed that. Edited now.
Jun
13
revised Summary of differences between Java versions?
added 16 characters in body
Apr
16
awarded  Good Answer
Apr
16
revised Is having two conditions in an IF statement faster than having two separate IF statements?
deleted 1 characters in body
Feb
26
awarded  Enlightened
Feb
26
awarded  Nice Answer
Jan
21
comment Are design patterns essential for good code?
Another related one: How to determine whether Design Pattern is implemented correctly?.
Jan
14
awarded  Good Answer
Jan
13
comment Can we live without constructors?
@Geek: a constructor can inspect its argument and decide if those would result in a working object (for example if your object needs a HttpClient then it checks if that parameter is non-null). And if those constraints are not met, then it can throw an exception. That's not really possible with the construct-and-set-values approach.
Jan
13
awarded  Nice Answer
Jan
13
comment Can we live without constructors?
Just as a note: the factory patern @superM mentioned is one way to implement Inversion of Control (Dependency Injection) is another one.
Jan
13
reviewed Approve How do you move beyond code examples without a project?
Jan
13
answered Can we live without constructors?
Jan
1
comment Why don't compilers support non-English keywords?
one main problem was that code written on a German version of excel 95 simply did not run in an English version. Only later versions of Excel fixed that (by always translating to English).
Jan
1
comment Why don't compilers support non-English keywords?
The Basic dialect in Excel 95 was localized. And that ... caused some problems.
Dec
29
comment Why execution time is different each time in java?
Your question is anwered at How do I write a correct micro-benchmark in Java? over on Stack Overflow. Basically because writing a meaningful microbenchmark is non-trivial.
Dec
23
comment Why did the team at LMAX use Java and design the architecture to avoid GC at all cost?
@kadaj: it doesn't really matter if the consumer is public or internal: if you make it accessible in a widely-known language, it will be more useful, even for internal development. If you start your (hypothetical) argument with: "Assume that everyone knows D as well as they know Java, ...", then you're probably missing something.