Absolute horror

Posts   
 
    
stoneyowl avatar
stoneyowl
User
Posts: 62
Joined: 29-Jan-2004
# Posted on: 22-May-2006 14:16:55   

Can you imagine what LLBLGEN would make of this DB!!?

http://thedailywtf.com/forums/thread/73623.aspx

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 22-May-2006 14:45:38   

smile niceeeeeee

It's shame we would loose such a potential customer of LLBLGen Pro.

Maybe in V.4

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 22-May-2006 19:52:55   

I saw that entry too frowning .. though it's not that uncommon to have cryptic tablenames. I just always wonder why they deliberately choose NOT to use logical names like 'customer' or 'order'... Must be a typing thing I guess wink

Frans Bouma | Lead developer LLBLGen Pro
stoneyowl avatar
stoneyowl
User
Posts: 62
Joined: 29-Jan-2004
# Posted on: 22-May-2006 20:15:04   

Cryptic table names would be bad, but consider that the actual WTF was that each table was a 'customer' - DDL was used to create a new table for each customer ID assigned!

Instead of using "CustomerId" columns on several of the tables, the application uses ... tables ... with the CustomerId appended to the end of the table. I'll leave it as an exercise for the reader to envision the query needed to aggregate all "infoset" tables.

alexdresko
User
Posts: 336
Joined: 08-Jun-2004
# Posted on: 23-May-2006 16:11:36   

stoneyowl wrote:

Cryptic table names would be bad, but consider that the actual WTF was that each table was a 'customer' - DDL was used to create a new table for each customer ID assigned!

Instead of using "CustomerId" columns on several of the tables, the application uses ... tables ... with the CustomerId appended to the end of the table. I'll leave it as an exercise for the reader to envision the query needed to aggregate all "infoset" tables.

The company I work for has been writing an accounting package for the past 17 years.. The original version was in DOS..then they moved to FoxPro.. and only within the past 2-3 years have they started moving to .NET. Remarkably, ALL of the tables are cryptic like that. The interesting thing is that I think those table names make sense to accounting people. Note also that there are probably 60 cryptically named tables in our database.. each database averages about 8GB.

stoneyowl avatar
stoneyowl
User
Posts: 62
Joined: 29-Jan-2004
# Posted on: 23-May-2006 16:43:35   

True, legacy systems may carry baggage forward - I have been involved with a system which was originally written in COBOL on an IBM MF, then I migrated it to PowerBuilder (rage ) (Y2K related, I had 3 months to get it off the mainframe), then to VB6.0, now to C#. At each iteration I have tried to rename tables and move closer to normalization of the database.

Skeeterbug
User
Posts: 165
Joined: 21-May-2004
# Posted on: 23-May-2006 19:30:18   

stoneyowl wrote:

Can you imagine what LLBLGEN would make of this DB!!?

http://thedailywtf.com/forums/thread/73623.aspx

ROFLMAO

Priceless. I think this post just made my day.

PhilD
User
Posts: 19
Joined: 23-Jun-2005
# Posted on: 25-May-2006 09:45:44   

In mainframe environments it was quite common to produce table names like

XQ671A XQ651B ...

and have a "decode" table somewhere which says what they really represent. It is a viable technique if you have a limited number of characters to use for the name and hundreds or thousands of tables.