Jeremy Rayner on java and other stuff.

All | AudioDrama | Chatter | Fun | Groovy | Java | Life

London java meetup - oct 2003 review
Posted on 20 Oct 2003
This evening, the London java meetup went extremely well, thanks to all the tech-heads that turned up. I'll put some pictures up on the main page, all taken by Mr. Purdy, who delighted the crowd with his coherence after many beers. (isn't it a crime to blog from the pub Mr.P?)

Unfortunately because we hit double figures in attendance, I found myself timeslicing between most conversations and won't have my usual splurdge for you, but this is what I did pick up...

Pratik - (Raible's) AppFuse, and how he's gonna take it to the next level.
Richard - JFreeChart is really very, very useful.
Charles - SLEE is interesting to look at... (JAIN related, I'll google for this stuff later)
Sam - Has an irresistable urge to share anything he learns with the world.
Max - is going to have a look at blogmento, yay a potential user, now for the rest of ya...

The debate between web frameworks hotted up, with struts and webwork2 slugging it out, no idea who's winning... Has anyone out there actually used both, and can give an objective overview of the differences, mostly in regard to the code creation and ongoing code maintainence of these two?

I can't remember much more, but I had such a good time that it doesn't matter.

Cheers for turning up lads, maybe we'll do lunch sometime...

20 Oct 2003 |

London Java Meetup - tonight
Posted on 20 Oct 2003
Just a quick heads up, at least ten javabloggers (including myself) should be going to a London pub tonight to talk techie, it would be great if you, yes you lurking out there, were to come along too...

Details at the London Java Meetup site.

see you there...

20 Oct 2003 |

braindump("Java Properties are a faff")
Posted on 09 Oct 2003
Problem: Standard JavaBean properties
this is currently a bit of a faff!! (I told you I was lazy)

private String foo;
 
public String getFoo() {
return foo;
}
 
public void setFoo(String foo) {
this.foo = foo;
}

Most of the time I want to code this in one line (Java Language change!) so the above would become the succinct:

String -rw foo;

How: implement as a pre-processor...
Why Not:
is this in xdoclet/groovy/ant regexp task/generic pre processor already?
No point creating non-standard language features
Maintainence burden increased as yet another oddity introduced to your codebase
'cos I'd be biled for being silly :)

What modifiers do I propose?

 nonegetsetget+set
private--r-w-rw
protected##r#w#rw
package**r*w*rw
public++r+w+rw

Why not try to create solution in Valid Java
try for valid java?

String foo-rw; --> private String foo
String foo*rw; --> public String foo // this is probably not valid
 
foo-rw += foo-rw; --> setFoo(getFoo() + getFoo()); // hard transformation...

invalid java?

String -rw foo;
String +rw foo;
 
foo += foo; --> setFoo(getFoo() + getFoo()); // hard ...
 
setFoo(getFoo() +getFoo()); // no transformation, but won't compile/editors barf...
Either way we still have issue with usage of getters/setters, so assume that the usage of getters/setters is outside scope of preprocessor, the choice is between which looks nice and which will not be highlighted as a problem in editors.

Additional issues

  • Collection properties
  • boolean properties
  • Could also indicate that property is parameter to constructor

Suggested Implementation

  • Implement a preprocessor that takes a single java file from a URI as input and a destination URI as output.
  • Wrap ant task around preprocessor that basically does :-

    <target name="compile" depends="init" >
    <!-- This is the new ant task being called -->
    <jpp include="${src.dir}/**/*.java"
    outputdirectory="${pre.processed.src.dir}"/>
     
    <javac srcdir="${pre.processed.src.dir}"
    destdir="${build.classes.dir}"
    classpathref="project.classpath"/>
    </target>

But really, why bother?
so that this sort of thing...

package com.foo.bar;
public class FooBar {
private String foo;
protected boolean bar;
 
public String getFoo() {
return foo;
}
 
public void setFoo(String foo) {
this.foo = foo;
}
 
public boolean isBar() {
return bar;
}
}
becomes the lazy but readable...
package com.foo.bar;
public class FooBar {
String -rw foo;
boolean #r bar;
}
foo property has private access, has a getter and setter
bar property has protected access, only has getter

Questions to the reader of this braindump...

What do you people think?
Has this been done already?

09 Oct 2003 |

London:Apache J2EE (Geronimo):Free meetup this Thursday
Posted on 07 Oct 2003
On Thursday 9 October there is going to be a Geronimo meetup in High Holborn, London. This will be a session attended by (hopefully) at least four members of the Core Developers Network. (DainS, JeremyB, JulesG and JamesS)

The session will kickoff about 7pm, and will be your chance to meet the visionaries and discuss the existing Geronimo codebase. Details of how to get to the Mansfield Suite are at the CDN training page

Please try and come along, I'm sure it will be worth your while, if nobody else turns up you can go down the pub with some clever chaps, but if the session is oversubscribed you can scare residents of the Marriott hotel with your Jira t-shirts and Bileblog baseball caps.

07 Oct 2003 |

Interstella 5555
Posted on 01 Oct 2003
The full animated film Interstella 5555 from Daft Punk is coming out in December on DVD, yay.

This film was warmly received at this years Cannes film festival, and I've been itching to watch more myself since seeing the wonderful videos to 'One more time', 'Aerodynamic', 'Digital Love', and 'Harder, better, faster, stronger'.

This is going to look so good on DVD, but more than that,it is going to sound so good, Discovery is a kicking album, and the whole film is set to these tunes.

Roll on Christmas, and turn up the surround sound :)

 

01 Oct 2003 |

 

 
October 2003
SunMonTueWedThuFriSat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Prev | Today | Next

rss:subscribe (All)



What I'm reading
my feed aggregator ->box

My websites
London Java Meetups
Programming Projects
Elite in Java
megg
Blogmento
Jez's Photos
Fantasy Stock Market
Cool Saxophonist
Doctor Who Audios
Pisces Audios

Other Blogs
Mike Cannon-Brookes
James Strachan
Joe Walnes
Sam Dalton
Simon Brown
Cameron Purdy
Mike Roberts
Erik C. Thauvin
John Martin
Manfred Riem

B5 d++ t++ k s+ u- f
i+ o+ x-- e+ l- c--

powered by blogmento