buildhigh.com

The basics...
About buildhigh.com
Archives
About me
Crap I like
Java Tips
Projects...
JonnyChat
GoogleDocs Client
Of me...
Name : Jon
Email : click here
Profession : Programmer

October 30, 2002 - Pet Shop From Hell.


Don't let the title fool you. This has nothing to do with cats, dogs, snakes, or lizards.

It has to do with twisting and distorting facts.

I saw this on Slashdot and, since I'm a guy who digs the Java, was kinda interested. .NET Framework spanking J2EE? It couldn't be, could it?

No, it couldn't. Ya see, Sun has this little demo called "The Pet Shop", which is kind of like a tutorial on J2EE. And like any good tutorial, they do everything the right way. Everything's broken out into classes, each class opens it's own connection, etc. So they've created something really big and slow, but it serves more as an example of the various aspects of the language, not as something you'd want to do yourself.

But the Microsoft minions who wrote their .NET framework example wrote the whole thing using inline code. They really didn't use any classes. They pooled connections. And so on. You don't have to be a genius to know which is going to be faster.

So that didn't help. But it gets worse. The backend database they used was none other than SQL Server. And I'm fairly sure that the JDBC driver for SQL Server that microsoft provides isn't as fast as any ODBC driver that microsoft provides for their own languages and/or frameworks.

So what basically happened is someone at Microsoft saw the teaching example, said "I can write this faster", and did.

Bunch of weasels if you ask me.




Go Home...