Archive for the 'Java' Category
Hg gets rebase. Though from the comments it’s not yet up to git, add “Killer features for Git are git rebase […] ;s/Git/Mercurial/g” to the Mercurial part of my comparison post and remove “[…] no rebase […].”.
Response to the critique for my last post and OneElementIterator
10 Comments Published August 8th, 2008 in JavaI’ve wrote an update to the post where someone suggested in a trackback to use the JDK for an one element iterator.
I got interested in aa OneElementIterator, which optimized - not sure how fast try is - could look like this:
public class OneElementIterator[T] implements Iterator[T] {
private T element;
public OneElementIterator(T element) {
[…]
“For” hack with Option monad in Java
20 Comments Published August 6th, 2008 in Haskell, Java, Maybe, Monad, Null, Option, ScalaThere has been some discussion going on in the blogosphere about monads, and especially about the Haskell Maybe monad or the Scala option class. Those are ways to prevent problems with NULL and NPEs that Java lacks. Java returns NULL form many methods to indicate failure or no result. Suppose we have a method which […]
After my unpleasant experience with setting up Git, I’ve had some time to play around with Git and use it in a project. Git is really nice for a DVCS. What I like was the git status view, especially with colors turned on. Grouping added and modified files is much nicer than the Subversion style […]
I want to meet Cameron Purdy ;-) Who do you want to meet?
10 Comments Published July 30th, 2008 in Cameron Purdy, Cedric Beust, Crazy Bob, Java, RickardPartially because of the good discussions on TSS about Coherence and the knowledge he has, but mostly because of this recent presentation. It’s about “The Top 10 Ways to Botch Enterprise Java Application Scalability and Reliability”. I’ve enjoyed the video very much and laughed several times so loud my colleague looked up. Cameron made a […]
Funny, I wrote that more than a year ago.
Using Google Guice Providers to Solve Law of Demeter Problems
2 Comments Published July 24th, 2008 in Google Guice, IoC, Java, TestingA post on the Google testing blog made me think. Their post presents an example of a class
class Mechanic {
Engine engine;
Mechanic(Context context) {
this.engine = context.getEngine();
}
}
which depends on an object Context in the constructor, when indeed it only depends on Engine, a violation the law of demeter. This often […]
I’m too stupid for git. I’ve run several SVN servers over the years but a Sunday afternoon isn’t enough for me to get git working.
Debian stable has git 1.4, for git init one needs 1.5. Some major reconfigurations later (think Debian backports) and updates and updates I had 1.5 working
Lots of “fatal” errors during […]
Carl did a short interview with some software engineering guys and me in February, the results are up now:
“Java Experts: Server Side is Where Java Shines”.
Compared to the others my answers are rather short. That’s what people sometimes complain, my answers and mails are too short ;-)
Take for example this recent post on hacker news with the title “Amazon and Google Discover Erlang (IMDB is switching from Perl to Erlang)”. There in the comments someone gives a source for the IMDB claim: “IMDb on Java/Erlang (a job posting)”. Going to the job listing results in
We are currently working in Perl […]