1,723 reputation
511
bio website dgronau.wordpress.com
location Germany
age 40
visits member for 3 years, 6 months
seen Dec 2 at 15:21

Java Software Developer located in Germany, hobby programming language is Scala.


Mar
26
comment Benefits of combining programming languages
@jwenting: Most mainstream programming languages strive to be "all-purpose" languages, and even those who don't tend to widen their scope over time (e.g. Erlang). Sometimes the result of an extension are good, sometimes they are bad, but its rare that language designers withstand the pressure for including new features.
Mar
26
answered Benefits of combining programming languages
Mar
21
awarded  Nice Answer
Mar
1
comment Throwing an exception inside finally
If this is Java, and you can use Java 7, check out if ARM blocks can solve your problem.
Feb
22
comment The suffix Exception on exceptions in java
You can't throw non-Throwables in Java, either. However you may deal with exception not only in try-catch-settings, e.g. you might collect exceptions when you make some kind of validation for complex objects (when you want to know all related problems, not only the first one). In such cases you should be aware that you can e.g. re-throw the things you have in your list, so it would be bad to call them i.e. ValidationIssue instead of ValidationException.
Feb
21
answered The suffix Exception on exceptions in java
Jan
16
comment How to increase the efficiency of an Immutable Queue in java?
Informally: You have to clone the whole underlying data structure on every single operation, I just do a reverse now and then, reusing what I have with very little changes. For complexity analysis I'd rather like to refer you to cs.cmu.edu/~rwh/theses/okasaki.pdf (chapter 3.1). Generally, if you are seriously interested in immutable data structures, Chris Okasaki's work is a great starting point
Jan
16
answered How to increase the efficiency of an Immutable Queue in java?
Jan
16
comment How to increase the efficiency of an Immutable Queue in java?
Usually you take two immutable (linked) Lists and glue them together.
Dec
4
comment Why would it ever be possible for Java to be faster than C++?
@Morg I find it very strange how you seem to focus just on OSs. This simply can't be a good measure, for several reasons. First, the requirements of OSs are crucially different from most other software, second you have the Panda thumb principle (who wants to rewrite a complete OS in another language, who wants to write his own OS if there are working and even free alternatives?) and third other software uses the features of the OS, so there is no need to ever write a disk driver, task manager, etc. If you can't provide some better arguments (not based entirely on OSs) you sound like a hater.
Dec
1
comment Why would it ever be possible for Java to be faster than C++?
@Morg A lot of financial software is written in COBOL, a lot of web applications are written in PHP, Apple uses ObjectiveC (which is IMHO an abomination). Does this say much about the quality of the underlying language? You can write good OS's in Java (JavaOS, Android) or C# (Singularity).
Nov
23
comment null values vs “empty” singleton for optional fields
And you have Option.option2Iterable, so you can use Options in enhanced for-loops.
Nov
21
comment Why would it ever be possible for Java to be faster than C++?
@Morg: Or you can read it that way: Java is for people who like to get things done instead of wasting their time with bit twiddling and manual memory management.
Nov
17
answered Working alone vs with others
Oct
21
answered Is perfectionism a newbie's friend or enemy?
Oct
21
answered Do unit tests sometimes break encapsulation?
Jun
11
awarded  Yearling
Mar
26
awarded  Enlightened
Jan
16
awarded  Nice Answer
Jan
16
answered Why does a Java source file bear the name of the public class it contains?