- 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
It must really suck to have to go through 20 GB of logs.
Choosing an editor for that is like picking a paddle once you're already down S*** Creek.
Admin
Apart from the obvious "TRWTF is Spring" and "TRWTF is malformed XML", TRRWTF (the really real WTF) is busy waiting. Is there no blocking read?
Admin
Admin
(Spring isn't TRWTF; it's just doing what anyone truly competent would choose to do with a scripting language instead. The widespread misunderstanding of what Spring is and isn't is a WTF, but not one that is the subject of the article.)
Admin
"There was no reconnect code. No progressive delays between dumping identical log errors. No email to support-lists saying "Bad thing happened!"
Just a lone comment in the source code from the Architect's Architect saying: "Trust me!" "
At the beginning of the article, thousands of exceptions were being thrown, in line with the logging of the error from the catch statement. So, no, it wasn't just a comment that they were reliant on here. Although bad as it is, it could have been worse...
catch { //trust me! }
Admin
I was hoping to see the phrase "Trust me, I know what I'm doing", possibly followed by "Sledge, you can't solve everything with an infinite loop!"
Admin
Well, it's kind of like a stnank.
Admin
Or if it's followed by "I'm a rat."
Admin
The worst use of XML I've ever seen was in the LDAP plug-in for Apache Jetspeed (a Java portal server) about five years ago. The plug-in itself was a Java class whose constructor took 36 arguments (yes, 36!), and the way you'd configure it was to write an XML file that specified each argument to that constructor by position. I think it looked something like:
<param pos="1" value="abc"/> <param pos="2" value="123"/> ... <param pos="36" value="are we done yet?"/>I kind of suspect it was written by someone at a certain company that makes its own closed-source Java-based portal server, in order to make the open-source alternative look bad.
Admin
I think it scans the file to get line numbers. (like less)
You can press ctrl+c after opening and it will stop, and just show the file
Admin
Admin
Admin
Another ****-hot architect with no knowledge of the basics of how priority queues work....I bet there are race conditions and all sorts of oddities there that our "architect" couldn't even think of..
...trust me!
Admin
Don't you know? MQ NEVER loses messages!
Admin
Admin
TRWTF are people in IT who use editors to read log files. There are tools, more or less, suited to that problem.
TRRWTF is busy polling empty queues without ever sleeping, wasting CPU power for nothing.
TRRRWTF is Active MQ.
TRRRRWTF is the JMS spec, which does describe a message priority, but does not really enforce implementors to support it: "(...) does not have to deliver messages in exact order of priority."
How lame is that? And of course JMS implementors fuck that up, leading to such "separate queue for high priority messages"-WTFs as described in the article.
Admin
So there was this software and it had a bug. And there wasn't an ironic comment in the code, we just added that for effect. Funny huh? A real WTF.
Admin
This is why Bram in his wisdom gave us the -n flag.
If you cant remember that, "more" or "less" would also have allowed our intrepid bug fixer to view the file just fine. It does take a long time to read a full 20GB of logs though.
Admin
The Vice President's daughter does not go down. Trust me.
Admin
The major difference between a thing that might go wrong and a thing that cannot possibly go wrong is that when a thing that cannot possibly go wrong goes wrong it usually turns out to be impossible to get at or repair.
-- Douglas Adams
Admin
I thought I had made a mistake once. But then it turned out that I was mistaken.
Admin
Umm, because that's the easiest way to read a text file?
Just because it's called an "editor" doesn't mean that it can only be used to edit. Just because a language is called "Java" doesn't mean you can only use it in Indonesia.
Admin
Good troling effort! I bite.
Admin
I think it would be fun, to see how you guys make this peace of code correct. In particular the exception handling part.
Admin
Hidden comments in the article make me ill and angry.
Admin
Excellent, Smithers. Excellent.
Admin
Admin
The official language there is the Indonesion language, sometimes called "Bahasa" by English speakers, though this literally just means "language".
Admin
Admin
this is really silly, but it sort of fits: https://www.youtube.com/watch?v=6ShF3WG1nDg