News on Monday
more>>
SharePoint Tech Report
more>>


   

 
 
Download Current Issue
ISSUE 2/1/2010 PDF

Need Back Issues?
DOWNLOAD HERE

Receive the print Edition?


 
blogs tab
Is Microsoft eyeing Office subscription pricing?
Microsoft may be preparing to offer a new Office pricing option called "union," which charges the same for cloud as on-premises.
02/01/2010 09:38 AM EST

Facebook rewrites PHP runtime
Facebook is about to open source its own PHP runtime, written from scratch for speed.
01/30/2010 08:53 PM EST

There WILL be a JavaOne this year
JavaOne will happen in 2010, as a co-located event with Oracle's OpenWorld, on Sept. 19-23 in San Francisco.
01/27/2010 01:02 PM EST

 

Events calendar tab
2/9/2010 to 2/13/2010
San Francisco
IDG World Expo

2/10/2010 to 2/12/2010
San Francisco
BZ Media

2/17/2010 to 2/25/2010
Atlanta
Python Software Foundation

2/19/2010 to 2/20/2010
Los Angeles
SCALE

2/21/2010 to 2/24/2010
Las Vegas
IBM


 
Most Read Latest News Blog Resources

Open-Source Context




January 15, 2005 — 
I’m conflicted about open-source software. I just read yet another alarmist SCO-versus-all-that-is-good-with-theworld magazine article that fretted that the SCO-IBM lawsuit meant the end of open-source software. As I read, I found myself thinking that, even though I use a lot of open-source stuff, the end of open source as we know it might not be such a bad thing.

My most recent experiences with Tomcat demonstrate my dilemma. The newest version of Tomcat was just plain broken. It didn’t load and run custom tags correctly, for example. Though I could (in fact did) go to an earlier version, the fact that Tomcat wasn’t subjected to even rudimentary regression testing is disturbing.

The next issue is one of documentation and developer attitude. I wanted to use a local-configuration-file mechanism that’s pushed heavily in the documentation (context.xml), and I was deploying from the development directory using the Ant build.xml file that’s shipped with Tomcat. This process simply doesn’t work.

I started with the documentation to find a solution. Tomcat’s documentation is virtually unusable, though. It’s a hodgepodge of inadequate .html files. There’s no way to print it. There’s no real organizational principle, index or search mechanism. A lot of the documentation is written by developers for other developers, so it is sketchy at best, and incomprehensible to a new user.

I then subscribed, reluctantly, to the Tomcat-user mailing list. I say “reluctantly” because this is a high-volume list with a lot of noise on it. The answer I got from the list was disturbing. I was told that direct deployment from a development directory was added only because users demanded it.

The developers (I’m reading between the lines) didn’t really want to add the feature. They also didn’t want you to deploy from a directory for philosophical reasons. Consequently, they implemented local-directory deployment badly—in a minimal way. A casualty of this process was context.xml. In order to get that feature to work, I would have to deploy in a jar file. However, jar deployment is a real annoyance when you’re doing test-driven development because it adds time to the very short (5-minute) compile-deploy-test cycle.

Moreover, nowhere do the docs even hint that context.xml works only in a jar deployment.

The most disturbing part of this discovery process, though, was the attitude of the developers who were contributing to the list. The prevailing attitude was one of arrogance, elitism and general contempt for the poor slobs like me. I admit that I’m easily annoyed by developers whose sense of self-worth seems grounded in knowing more than anybody else. Inadequate documentation is a side effect of this attitude, since gurus lose their guru status if they commit their knowledge to paper. Most of the problems discussed on the list should have been addressed in the documentation.

So I checked out the source code, thinking that I might be able to add a patch myself. Not surprisingly, the code is a mess. It’s poorly structured, poorly documented and poorly written. Poor code quality in an open-source project shouldn’t be surprising. The code is, after all, put together by people with time on their hands.

Some other open-source source code that I’ve seen is equally bad—Hibernate is a mess, for example—and many commercial projects aren’t much better (much of the Java library code is a case in point). That is, badly done code isn’t in and of itself a reason not to use a piece of software. Combine badly done code with inadequate testing and documentation, however, and you have the makings of a disaster.

The bottom line is that you have to do a lot of work to use an open-source product like Tomcat. You have to test new versions rigorously; you have to compensate for inadequate documentation by using a high-volume mailing list that may or may not provide an answer in a day or two; you have to trust amateurish code, which you can’t really repair yourself because your version will no longer be “standard.” Even if you could repair the code, progress on your real project would slow down.

All of these problems translate directly to wasted time and wasted money. The Tomcat team has no incentive to fix any of this because they’re not being paid and have no market pressure on them to improve quality or provide real customer support. I know that the open-source party line is that third parties will step up to fill these gaps, but then you’re paying for the software, aren’t you? So much for the price advantage.

In all fairness, some open-source projects don’t have many of these problems, but those projects tend to have started life as commercial software that was released to the open-source community. I have to believe that the same market pressure that pushes a commercial product can’t help but forge a better product. z

Allen Holub is an architect, consultant and instructor in C/C++, Java and OO Design. Reach him at www.holub.com.


Share this link: http://www.sdtimes.com/link/28336
 

Add comment


Name*
Email*  
Country     


  • Comment
  • Preview
Loading