Glorf.it

Glorf IT

Bedenkliches aus dem IT-Alltag

26. April 2007 um 19:51

rekursive Stöckchen

Das ist auch nicht schlecht: ein rekursives Stöckchen.

Die Frage ist nun, wie tief die durchschnittliche Rekursions-Klick-Tiefe der Leser ist…

1? 🙂

26. April 2007 um 19:40

Celko des Tages

Im Artikel "Joe Celko The SQL Apprentice: Stored procedure returns duplicates" wird Joe Celko zitiert, wie er völlig fassungslos auf das Listing einer SQL-Prozedur eines SQL-Anfängers in einer UseNet-Gruppe reagiert, der das Konzept von SQL einfach nicht verstanden hat:

EVERYTHING you are doing is TOTALLY wrong. You have just been cussed but by one of the people who wrote this language. If you have brain instead of an ego, you might want to listen.

This is a (bad) COBOL program written in SQL! There is so much formatting done in SQL code! The bad news – for me– is that this code is so awful I cannot use it in my next book as a bad example because it is too proprietary! You could be famous!

Your code is so awful, you even use the "tbl-" prefixes to tell us you have no idea about RDBMS! You keep converting dates to strings because you are writing COBOL in SQL and want strings!

"cussed" heißt laut Leo übrigens "verflucht". Und Joe ist tatsächlich einer der Verfasser von SQL.

Falls es für irgendjemandem ein Trost ist: mich hat er übrigens auch mal zur Schnecke gemacht, weil ich in SQL-Server-Manier "GO" zwischen die SQL-Statements schrieb und im Sample-Create generell alle Spalten auf "NULLable" setzte…

Hat mir gut getan, ich nahm es mir zu Herzen. 😉

|