- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Gosh darn. I wanted to brag about the 47-column table and the DB System where the designer stored his private journal in a table called "only_for_<name>", but you topped it.
Admin
144 arguments?! That's just gross.
Admin
Wait, you're jumping to the XML too soon. The database should map field names to token. The tokens are then looked up against a properties file to get the name of a class. Then you dynamically instantiate that class using RMI, create an XML message that describes a query, and call the xmlQuery() function of the class, passing it the XML string you created. The return value is another XML string that includes the desired values amongst its tags. At least, that's how a system I'm working on today does it. This is not a joke. Well, it is a joke, but the joke is that somebody thought this was a good design.
Admin
Admin
The UserDefined mess I have seen before. Lots of systems have a few of each data type designed this way for users to use as custom fields.
Admin
I'm working on a system like this right now, for real. Some of the tables have up to 180 columns. Many of them have column names like CUSTOM1 through CUSTOM30, where the meaning of each CUSTOM column depends on the value of a TYPE column.
The guy who designed this mess? He's been promoted from Architect to CTO.