Skip to content
accelerando

Tag Archives: Java

Tired of all the powerpoint presentations…

23-Apr-08

Right now i’m in Wiesbaden, attending the JAX 2008 conference.

The mood is somewhat different compared to the DOAG i used to visit the last years. The people are more open minded, partially much younger and generally try to be much cooler. And for the sake of it, some are even more interesting and after all, there isn’t that ongoing whining about Oracle not engaging in Forms 6i Client Server any more (although, i must admit, i somewhat like Oracle Forms 6i, maybe it’s a love/hate relationship, trust me, i know both worlds, Java and Forms).

The sessions suffer from one big problem: Many of them just seem to play powerpoint karaoke: Throw in a bunch of crappy slides with a handfull code snippets and sing-a-long to that stuff which means basically: Hind behind the slides.

Let me tell you: This is so boring and pointless. In the past i tried to be polite and always stayed to the end of a session but the last 2 or 3 conferences i can’t stand it any more. I can read myself, thanks. If you haven’t got anything additionally to say, just pass me the slide and i’m fine.

The 3 most interesting sessions where the sessions spoken freely with the slides just illustrating the speech. I especially liked Brian Chans presentation of Liferay Portal, Rod Johnsons keynote on the future of J2EE and the most witty one, Ted Newards talk about the renaissance of languages. It was funny, included the audience, was well prepared and freely hold, not to forget the topic: It wasn’t about the nth framework around the corner but about the nearly philosophy topic about the “perfect programming language”.

I really wish that i’d be creative and intelligent enough to design a language that is not predestined to die an early death, but i ain’t. But i can distinguish a sharp tool from a spoon if i see one and i can adopt to it very easily. And in that sense i share Teds opinion that a discussion about abstracting things and about the tool itself is of much more value than implementing some arbitrary pattern (i.e. one be the GOF) in just another framework. For example, many implementations of some patterns in frameworks have been rendered obsolete by more powerful and more expressive languages and i’d like to see this trend go on.

JDBC: Autogenerated keys revisited.

02-Apr-08

Some months ago i wrote about retrieving auto generated values with JDBC from an Oracle Database: JDBC: Get autogenerated keys on a Oracle DB.

The solution i presented in the previous article doesn’t run in a Oracle Java Stored Procedure.

To accomplish this, use a callable statement like this:

final String sql = "BEGIN INSERT INTO foobar(id, b) VALUES (id.nextval, ?) RETURNING id INTO ?; END;";
CallableStatement cs = connection.prepareCall(sql);
stmt.setString(1, "bar");
stmt.registerOutParameter(2, Types.INTEGER);
stmt.executeUpdate();		
rv = rs.getInt(2);

This way you get the id generated by the sequence id without first selecting and then using it.

Feeling dizzy…

26-Mar-08

After staring at this

dummy

for about a day in various rotations and flips just to get Oracle GeoRaster work together with a homebrew GIS like application made me feel somewhat dizzy. To be cartesian or not cartesian, that is the question ;)

Otherwise, Oracle GeoRaster works quite well, at least for that bunch of german TK25 maps in GK3 coordinates that used to float around in the filesystem and are now being stored in the database.

Weird java generics…

07-Feb-08

Generics are not totally bad but one can write really creepy things:

final FutureTask<Collection<LeitungsachseTK25>[]> ft = new FutureTask<Collection<LeitungsachseTK25>[]>(
    new Callable<Collection<LeitungsachseTK25>[]>() {
        public Collection<LeitungsachseTK25>[] call() throws Exception {

Seems like XML and Java finally married… ;)

Workshops

25-Oct-07

Right now i’m in Frankfurt / Main, attending the iX Workshop Web Programming with Grails (Link in German).

The speaker, Dierk König, encouraged live blogging, so here we are:

Some ActiveRecord bashing and many, many windows machines around. People fiddling around with their Java Paths, IntelliJ IDEA, which should be way better and more impressive than Eclipse or my nifty little TextMate… In the meantime, everything works fine on a real OS (that is everything else than Windows, for that matter…)

I’m already bored and expecting something more to happen. Everything said in the last 3 hours or so has been written down somewhere on the Internet.

As i don’t want to bore anybody else, i’ll guess i have look at my feedreader.

Hey, the beat goes on, configuring some weird IDE has stopped…

Would anybody really read my live blogging? If a tree falls in a forest…

JEHOVA! He said G-String :)

So again, how are strings called in the Groovy JDK? G Strings?

Hm, breaks are wonderful… Too much to eat, too much coffee…

The guy next to me didn’t manage to get the command line version working neither any IDE… Help is not wished.

At least, there’s a recent issue of german magazin in the conference file… With the title story about Ruby on Rails, hrr, hrr ;) .
Sometimes i think the IT world needs more egomaniac, rockstar-like developers like Heinemeier Hansson

Why on earth does one guy write the code from the beamer down on a sheet of paper while he’s checking his emails at the same time?? Sometimes the outer world seems like a strange place to me. Strange and weird.

Funny thing: Received a 1&1 spam mail about some profiseller foobar this morning. There are two guys from 1&1 at the opposite desk… Well, i’m too good educated…

Is it a good idea to but lawyers and webprogrammers into the same hotel? ;)

“Divs are good for updating thingies on the page”

I guess its obvious that english isn’t my native language (can’t get the thought out of my head that tante is mocking me…), but language and spoken words always creates a frame for thoughts and far to often, a cage… And for that being said, one should pay more attention on how to paraphrase things.

I really hate it if the speakers machine is not prepared well. I really do enjoy giving little demonstrations but i’m fastidious to paranoid that everything is taken care of, tested and proved to be working… If their only 8 hours time, not working improvisation sucks.

I have to say, i really do like Groovy, it’s a chance to get some serious scripting into Java at home… err i wanted to say, at work. People tend to focus on just one language and limiting themselves, but with Groovy i can argue: It’s Java with some fancy things on top. And at least for me, it’s a good thing.

“Mit diesen Dingen kann man beliebig fancy werden” — Argh, my head schmerzts…

I should collect some pudding for the gay bar to see if this guy is really as witty as he writes. Would pudding suffer to pay you or do want some Hägen Dasz?

Party is over… Good night & good fight ;)

Close
E-mail It