binding.bind();

It slowly dawns on me why people actually like Java. It is not the efficiency. And also not the elegance. Or readability.

No, it is "Die Freude am Fahren" (normally the BMW motto), i.e. the joy to really express oneself, best without pretending to have any agenda. And to do this as often and noisiest as possible:

Binding binding =
    Bindings.
    createAutoBinding(AutoBinding.UpdateStrategy.READ,
                      bindingSource,
                      bindProperty,
                      persontobeBound,
                      BeanProperty.create("bindfirstName")
                      );

Now, repeat the above for 15 more fields. Just for your exercise. Better than working out, right?

I am sure this must be a binding experience if finally you blindingly bind

binding.bind();

What is then the trick to regain sanity after a day of programming? Play a round of Warcraft?

Or watch another episode of The Smurfs?


And since we already bind here, recently I boundled over a bound entry worth bounding:

Kingdom of Nouns


And sure, it is much more fun to write

BlogFactory.instanceCloner.getCloserFactory.Closer.getClosingEvent.do()

than letting the object just go out of scope.

And it definitely justifies to buy another 21'' screeeeeeen. Better two, just one to keep JavaDoc open.

Posted In

s/BWM/BMW/ s/I recently I/I

s/BWM/BMW/
s/I recently I/I recently/

Anonymous (not verified) | Sat, 06/28/2008 - 14:24

Re: s/BWM/BMW/ s/I recently I/I

Do not argue with me.

rho | Sat, 06/28/2008 - 14:36

Attribution error and nobel prize

Robert, I thought we discussed that already :) What you are complaining about is the application of a technology. Yet, you attribute it to the technology itself. You can write bad code in any language. And since there is a lot of Java code out there, there is a lot of bad Java code out there. If you invent a programming language that allows any mind to write good programs, you are up for the nobel prize. They might even add the category "Computer science" just for that.

Robert Cerny (not verified) | Fri, 07/04/2008 - 07:36

Re: Attribution error and nobel prize

What you are complaining about is the application of a technology. Yet, you attribute it to the technology itself. You can write bad code in any language.

I'm not making that mistake, I write about absurdities in other languages as well. I have a deeper agenda here.

If you invent a programming language that allows any mind to write good programs, you are up for the nobel prize.

As Larry Wall uses to say: only a language which allows you to write horrible things also allows you to write beautiful code.

They might even add the category "Computer science" just for that.

The Turing Award already fills that role. I registered myself already, I guess I now just have to wait...

rho | Fri, 07/04/2008 - 09:15

Re: keyboard torturers

Just found another gem:

private ContextFactory contextFactory = ContextFactory.getFactory();

void reportMyMetric(float myMetric) {
      MetricsContext myContext = contextFactory.getContext("myContext");
      MetricsRecord myRecord = myContext.getRecord("myRecord");
      myRecord.setMetric("myMetric", myMetric);
      myRecord.update();
}

rho | Sat, 07/26/2008 - 12:54