Reputation
1,738
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
6 13
Newest
 Yearling
Impact
~226k people reached

  • 0 posts edited
  • 0 helpful flags
  • 30 votes cast
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
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