- 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
The "fun" part of all this, is that log object is almost certainly nil. About the only way it isn't nil is if the error is some kind of minor non-fatal issue, and I doubt that is the case here. In short, if there is an error the program will almost certainly crash due to trying to use a nil object.
Admin
Trying to log the message about an error with the logger using the same logger is a harmful way of shaming the logger into stating to work. We need to avoid stigmatizing broken loggers.
Admin
Somewhat reminds me of:
mysql_query("...some SQL...") or die(); printf(mysql_error());
seen in a PHP project a decade ago.
Developer claimed that the application was working fine as no error message was printed ...
Admin
If a logger fails in the forest, does it make a sound?
Admin
Always reminds me of this Seinfeld exchange:
K: "I was returning some pants. I took a short cut in a subway tunnel and fell in some mud, ruining my pants. The very pants I was returning." E: "I don't understand - you were wearing the pants you were returning?" C: "Well, I guess I was." E: "What were you going to wear home?" K: "Elaine, are you listening? I never even got there."
Admin
So, "Programmer Robot 10C-32",... I guess the error is that "C" is saying "well I guess I was" when "K" was the one returning the pants?
Admin
I submitted a good WTF article ages ago, but flavorless crud like this continues to get posted. Sigh.
Admin
The advertisement starts with "Forget logs". Pun intended?
Admin
If the logger logs the logs who logs the logger?
Admin
Error log, error log
Every morning you greet me
Gigabyte, full of sh1te
I'm just going to delete thee
Running so slow you just bloomin' grow
Bloomin' grow for ever
Error log, error log
Fill my disk up for ever
Admin
Was this code a Go or a No Go?
Admin
In my head I was thinking 'K', my fingers typed 'C'. Had I realized the formatting was going to get screwed up, I would have been more preoccupied by that and got it completely wrong.
Admin
I feel the same about "same old lorem ipsum crap" Fridays.