↓ Skip to main content

Annotate

·160 words

I have seen the first place where annotations are useful on this blog by Reinier.

It is an annotation which removes the traditional Java getters and setters from the code.

private @Get @Set(Access.PROTECTED) String field;

You end up with something which is very similar to C# Properties but using standard Java syntax.

Another one which is slightly more complex is MOX, an annotation based XML parser (you can Digg! it if you like).

I can see where this comes handy, if you need to parse XML in Java. In Python I would usually use something like xmltramp or whatnot.

A cross-platform Javascript solution which provides the same results would be pure heaven. I would have to look into this.

Annotations are dandy to use, but from what I have seen slightly annoying to write (same goes with generics). So we have to wait and leave the heavy lifting to the pros and then we can use the resulting library goodness.

Alper Cugun
Author
Alper Cugun

Related

Ajax Everywhere

·68 words
On my work there exists a slight tendency to use Ajax just for Ajax’s sake. So drag and drop controls, the most outrageous refreshes and hyper-dynamic webpages. Little thought is spent on the eventual user experience. I do not mind really, playing with Javascript is fun if you get paid for it.

Internet

I am currently following a course on internet technology aptly named “Internet Technology”. The contents of the course are unfortunately horribly outdated and detached from reality.