Music.. Possy.. Emma..

January 22, 2010

At last, something about programming…

But not so fast. The topic I would like to share came indirectly from music. Or better say Xpress Music. As I was sitting and playing with my mobile, suddenly I saw program called pod-casts. I knew what that meant , but never tried it so far. So I pressed the button… I was deeply impressed by the numbers of channels there. The topics vary from absolute stupidity to very hard philosophy. But more impressed by the name of the first channel – Java Possy. Well this may sound confusing… but Java was the keyword for me. So I tapped there. After several seconds I was listening to an interesting discussion about software testing and QA. Podcasts may be useful…

One of the things that have been discussed was the test coverage and the useful tools. Then I suddenly remembered my experience on the topic. The tool we were using in our last project was Emma.  I found it very useful. Actually this changed my opinion on unit tests. I have only few years in programming, but I know that writing unit tests is not so easy. I mean technically this is not that hard. But question is, will this tests guaranty that all aspects, states of given code are well tested… sometimes it is not easy to say. To make it easier to say, the test code coverage tools can be very useful. For example Emma provides very extensive statistics about tests for your code. It can give you even more detailed view, directly highlighting the code which is covered by tests and which is not.

This helped me a lot. I see these tools as “Must Have!!!”

Advertisements

So, here are some photos from the event. Not the best quality… I have the feeling that my camera is getting too old… But still, hope you enjoy them)))

P6060044

P6060050

P6060043

P6060049

Yesterday was a really wonderful day. I have visited the lecture of the creator of Wikipedia Jimmy Wales! It is really cool to see one of the 100 most influential people in the world just from 4-5 meters.

So… the impressions. Well, he is cool! He works very nice with his audience. Very informative and with lots of humor. This makes you fill comfortable and you really do not recognize the time. He said many really good jokes. My girlfriend has recorded them. I will post a link to her blog as soon as she publishes them (and if I am allowed).

Now about the content of the lecture. I can’t say I’ve discovered something absolutely new… all the statistics he gave could be easily found over the net. He said, that his mission was to populate the Wikipedia her in Bulgaria, but as he mentioned this is not the right place – it is already popular here, or better to say very popular)) . For me it was more interesting to understand the social and philosophical aspects of wiki. And I think I did. First – the role of Jimmy in the project. I think his job is just to be a generator of ideas and a good manager. As he said it is not his job to know how it’s technically implemented. Although I think he does understand the technologies being used. He also has this social feeling. I mean he can understand what people like and do not, in he can quickly adapt. Second – the role of the community. The way it’s treated. I mean, in which frames it can be the most productive and involved. Or better to say how strict the rules must be. I think here Jimmy has found the right formula! He told us about the Nupedia and why it failed, and why the wiki has succeeded (actually, this was my question (shy…)).

Actually, the second part of the lecture, where he answered the questions was the most interesting. Some of them, like connected with copyright, license or the ownership of information were really good. I liked his joke: on the question “who owns the information, owns the world. Who would be the next master of the world?”, he answered politely – “well, that would be me…”.

It is hard to describe the whole lecture here. You could try to find it over the web, and make your own conclusions. But it was really cool to participate. The atmosphere was very friendly. It was interesting to try to understand his philosophy and the way he thinks.

Simply, one of the greatest!

Don’t miss this kind of lectures! If you have the smallest possibility – just go!

p.s. I will try to post some photos later))

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