Tuesday, June 21, 2011

tomcat class loading thining

In the last couple years, I have been working with TOMCAT, we always use fat war file, which each web application use their own lib, there are very few library in common tomcat lib directory.

Good: Different application can use different version library, easy to configure, no library conflict issue.
Bad: I guess memory might be a issue. As every web application will start their own version.

Today I check one of the web application implementation in websphere, in web library, there are lot of common libraries.

Good: I guess most EJB related library should be in common.

Thursday, June 16, 2011

Software development methods Funny words

1. KISS: Keep it simple stupid
2. DRY: Do not repeat yourself
3. YAGNIl: You ain't gonna need it.

For point one and point three, I really experienced a lot in the last 10 years. Most of the time, system is getting complicated just because of poor design, overdesign. Also the system was built a lot of extra nice features which never been used, it also makes simple application complicated.

4. Law of Demeter - Code components should only communicate with their direct relations (e.g. classes that they inherit from, objects that they contain, objects passed by argument, etc.) http://en.wikipedia.org/wiki/Law_of_Demeter

Wednesday, June 8, 2011

How to mitivate a developer

Today I read a article which I totally agree with it. Details please check below link.


1. Give your developers the resources they need.
2. Recognize a job well done
3. Get rid of dead wood
4. Push for new software releases
5. Let developers develop