First useful info…

June 4, 2009

Well, maybe not so useful, and not that new… but I will post it. On my last project we were restricted to use special plug-ins for eclipse for code like PMD and CheckStyle. First it was awful!!! All your coding style, built with years goes to hell! A lot of rude words were said…

As some time passed, I found out that it is not that bad. Just follow the rules… after some more time, I saw that the code I write is much more readable and secure. Yeah, exactly – secure! This is achieved mainly with control of visibility, mutability and inheritance denial. Or with java syntax – use of “private final”. Now I think I will use these methods in all my projects , even although they are not required.
For all programmers, that love good readable code, in my opinion it is highly recommended to use these tools. Visit http://pmd.sourceforge.net/ and http://checkstyle.sourceforge.net/ for more info.

And you could try some of my configurations. They are used for webapps, that’s why System.out.println is forbidden. Useful critics accepted)))

Checkstyle.xml

Pmd.xml

Well, donno… this was quite unexpected even for me… I always thought that a “blog” is just a waste of time… better read a book or play a game)) People just sit wondering what to do. Then suddenly they begin to write something. Sometimes something really stupid. Then I saw some blogs with really cool content. Very very clever people share their experience in various topics. In one moment I thought that could also share something, but I found out I got just nothing to say. This was a few years ago. I think, as I started to work, have a University behind me, I have gathered some stuff that could be useful for some one. And I want to try to share it. And maybe not things connected with my job. Something I thing worth being posted… This is an experiment for me. I will first try it on free services like this. If I keep on posting, maybe I would even pay for hosting and domain. So! “POEHALI!!!” As Gagarin said))