Mantra of over engineering

Look at this: Hibernate is more complex than the problem it tries to solve I’ve to agree with that. There seems to be over engineering mantra embedded in to Java world. If something is not re-factored into ”enterprisy” complexity, then technology is not considered good. In other words this is known also mantra of job…

Read more

What you did on your weekend?

Well, frankly I can’t know that. But I know what I did. Due to some defects in standard java RMI protocol, I decided to write my own custom protocol. Must be noticed that I didn’t do this completely from the scratch, but concept is based into earlier custom wrappers for normal RMI to allow passing…

Read more

Changing religion

I’ve believed into holy ant since it has been simply the best build system for java. However, my faith is now tested, and I’m failing. I’m changing my religion, since now I’ve found system which is even better than ant, but still provides equivalent functionality. I’m starting to hail for holy gradle and share it’s…

Read more

Advanced Exception Throwing

Lets consider following sample: [code lang=”java”] public class Test { static class FooException extends Exception { } static class BarException extends Exception { } static Z rethrow(Throwable e, Class a, Class b) throws T, E { if (a.isAssignableFrom(e.getClass())) { System.out.println(”throw ” + a.getName()); throw (T)e; } else if (b.isAssignableFrom(e.getClass())) { System.out.println(”throw ” + b.getName()); throw…

Read more

JSON your joints

After RESTing, you may want to JSON your joints. For example, jsonrpc4j – JSON-RPC for Java has interesting tingle in the name. One shall only see if problems known for XML-RPC perish also here. Good point, however, sounds to be that integrating calls into script languages can be more smooth. Of course benefits of RPC…

Read more

REST in pieces

Should go forward or back, or just REST in one place. Who knows what way to go. I have to admit that I didn’t even know that HTTP spec had methods like DELETE… well, or perhaps I’ve heard about them but due to lack of need for such they have faded into oblivion. Update: 9.3.2012…

Read more

Fun for living

It’s nice to live experimental life, isn’t this whole world just experimental beta version, which hopefully will be revised to 1.0 version in sometime. Well, while waiting that, must do own experiments. Like doing profiling: Photo Album (access rights, and concerning privacy laws apply, so beware) I kicked in profiling into prototype, and not so…

Read more

Once upon a time there was java…

Little java jumped around, and growed eventually so big that it hide even the sun. And so little java became older and fatter. I tried to exercise, but big boys were teasing it and pushing it in the playground, but java continued furiously ahead, believing to that it will be The One… so story goes,…

Read more

SQL vs. O-O

Interesting question to ask, at this time and date, is if using SQL DBs make much sense if anything more than very simple object hierarchies are stored into DB. Plain fact is that there is huge mismatch in models used in relational DB and O-O (like java). Mapping Object structures into DB lead very easily…

Read more