8,172 reputation
23640
bio website google.com/+JoachimSauer1
location Austria
age 33
visits member for 3 years, 10 months
seen Jul 9 at 20:01

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


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 suggested edit on 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.
Dec
23
comment Why did the team at LMAX use Java and design the architecture to avoid GC at all cost?
I know very little about this project, but it seems it is some kind of framework that others can build upon. And if you manage to write that in Java (and allow others to code in Java and reap the benefits), then you'll have a MUCH larger "customer base" than if you'd have written it in D.
Dec
13
comment Is double password protection safe for admin authentication?
I don't think it's a stupid question. Also: if the two passwords are always required and effectively act as one, then it's needlessly complicated. If they actually have different effects (for example one for "normal" operations, both for "risky" operations), then it might actually be worth looking into (but I'd consider other, stronger security mechanisms anyway).
Dec
13
comment Is double password protection safe for admin authentication?
Let's put it this way: what's the difference between requiring two passwords and requiring one password with double the length?