- 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
I was rather thinking along the line "let the developers toy around in the development database, without too many restrictions; anyway, to deploy the code to the next database (staging or production), it must go through the CM tool". But I recognize your way is probably even better, because this way the CM can merge concurrent changes to the same procedure (or package).
Admin
The author most likely didn't only want to get out of the calling procedure, but out of all procedures on the call stack. Like exit(0) in C.
Admin
Puke
Admin
The comments about Office Space do make me wonder if maybe WTFs like this aren't actually intentional. If it was your job to work an a thoroughly WTF'd system for a prick of a boss, you might very well find subversive little ways to amuse yourself and pretend to fix things while in fact doing as little as possible.
Admin
May I ask why you consider creating a branch devoted to stabilizing a release while the trunk stays a development zone "incorrect"?
Admin
Hate to show my age but for the reason you mentioned this "divide-bby-zero" error is a venerable old mainframe trick. Back in the day when most programs ran as batch jobs overnight this would give the developer some juicy dumps to pore over the next day after an unsuccessful run. Of course anyone using this technique now should summarily be shot and their corpse dumped in the nearest bay.
Admin
It's even nicer when you use subversion, and write a pre-commit hook to check the comment lenght and reject commits based on that.
And Blame is your friend. It's also aliased to "praise", as not to be discriminatory.
Admin
How about...
Admin
Divide by zero is infinite superior!
Attempting to create an overflow depends on data types (which might change in future; remember the days when pointers still were two bytes long?). Division by zero is future-proof. This code is prepared for eternity ;-)
Admin
LIB$SIGNAL() is a run-time library function, not a system service.
Can I have my "Nit-Picker of the Week" award now?
ok
dpm
Admin
Ah, yes. Otherwise known as "exit gracefully"!
Dylan
Admin
How about a non-procedural solution?
The list of predicates might need a little work...
Admin
At least, this is well documented ;)
Admin
As someone else said: M. Bolton and Nagheenanajar are characters from Office Space (search @ imdb...)
Admin
The command-line svn client has an "svn blame <name of file>" command too. (Specifically, it shows the latest version of the file, annotated with when each line was last changed and the guilty party - hence the name). As people have already said, "annotate" and "praise" do the same thing (cvs and Mercurial have the same functionality, but only under the name "annotate").
Admin
It's part of the official Subversion client, as well:
Admin
I just can't stand the number of persons that point their finger at the two names and say "Hey, that's an Office Space joke! Hey, let's quote some Office Space stuff! Fist!"
Guys! WE GET THE JOKE! And while you don't look like Jennifer Aniston, and I bet you don't, you can as well go and see the hypnotherapist. In hell.
Admin
Surely any optimising compiler would also optimise that variable out of existance too?
Not that SQL stored procedures are optimising compilers!!
Admin
Well, a infinite loop is supposed to runs forever, or at least a very long time. Otherwise it would be called 'infinite loop with short expiration time'.
This leads to the more_infinite loop, which would be 'infinite loop with medium expiration time'.
And finally most_infinite loop, ...... ah.. you get the picture...
....signature snipped....
Admin
1) Discipline
2) Object versions in database
3) Object source checksum (and compare)
4) Whipping if all above does not work
Admin
Damn!! Alex does a good job of cleaning up names in the offending WTFs.
The trail of the S. Nagheenanajar and M. Bolton all end up at Office Space. Somehow the WTFs all seem to be manufactured.
Admin
The Cray-3 is so fast it can execute an infinite loop in under 2 seconds!
Admin
I know Oracle sucks big time and PL/SQL is horrible, but am still surprised that exception handling was documented so poorly.
Admin
When I just google " S. Nagheenanajar " and google return this page as one of the top 5 result, amazing!