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.


Sep
2
comment How to increase the efficiency of an Immutable Queue in java?
@The_Lost_Avatar : Of course you can do that, but then you have a mutable queue. My implementation is immutable, a variable holding a reference to it will never observe any change, all you can do is to get a new, changed immutable queue back. If you are interested in this topic, I highly recommend reading the paper mentioned before ( cs.cmu.edu/~rwh/theses/okasaki.pdf )
Aug
25
comment Is Haskell good at teaching fundamentals of mathematics?
@nomen May be, but this wasn't the question.
Apr
16
comment What to do if a team member delivers bad quality code?
"I work as a kind of mixture of a Scrum Master and a team lead." - that's a bad idea, and makes it harder to find a solution.
Mar
27
comment Benefits of combining programming languages
On the other hand closure are an important part of any modern mainstream language. The reason why it was finally pushed into Java was that the very important and "fundamental" fork-join framework was pretty much unusable without. I would have preferred if they had given Java a general syntax overhaul (even with breaking compatibility) and a better type system first, but I still think the advantages and possibilities of closures outweigh the ugliness (closure syntax itself isn't too bad, but it just doesn't "blend in") and complexity.
Mar
26
comment Benefits of combining programming languages
@jwenting: True, but I would still prefer to code in hideous Java 8 than in "simple" Java 1.2 (at least until a Scala job comes along). That's the circle of life...
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
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.
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
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
18
comment What is the good explanation of Tennent's Correspondence Principle?
Ruby doesn't obey this principle: Assume expr gets the current stack trace.
Nov
13
comment What language should an 11-year old start with to learn game programming?
I think the reason to suggest these is so blindingly obvious that I left it out: These learning environments are made for kids, they are fun to use, and don't contain initial hurdles like professional languages do.
Oct
19
comment What's the best Java equivalent to Linq?
@back2dos: Thanks for the great link, I took the freedom to include it.
Oct
7
comment What are the biggest differences between F# and Scala?
@missingfactor: I need new glasses 8-)
Oct
7
comment Why was Rails written in Ruby?
+1 for the last sentence :-)
Oct
6
comment What are the biggest differences between F# and Scala?
One additional important difference is that Scala has implicit conversions, which allows to simulate Haskell style type-classes.