- 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
Ahh.... Remy and his hidden HTML comments. Makes the article 1000% better.
odd thing is, I can't find his cornify script in the article, so it misses out on being, as Rainbow Dash would say, 20% cooler.
Admin
percise?
10 char
Admin
That song is now in MY head - sadly drilling my ears out won't help.
Admin
The WTF here is you published this. I mean, this is a perfectly cromulent reporting system. I implemented exactly this same process in three different companies. Where's the WTF?
Admin
Why doesn't the reporting system use PHP?
Admin
Dear God, I hope yesterday's plea to find writers had some decent submissions. Anybody who anchors an article around that crappy movie deserves to be shot.
Admin
I only use reporting systems that use at least 10 different languages, 15 different databases and 20 fake databases. You also need a few hardware dongles and beige "servers" hanging around in the racks or I won't touch it.
Admin
So the real WTF is that the writer forgot to mention that the fan-feed paper had to be spread out on a wooden table and photographed in order to turn it into a PDF?
Admin
TRWTF is Titanic, apparently...
...Long list of silly hand-offs aside...
CAPTCHA: uxor - An ancient Egyptian City founded before the discovery of the letter L.
Admin
So? Some colleague from university did essentially the same. A paper mill wanted a new version of their controlling software, but was afraid to introduce bugs and change the way it calculated (which seems to be a pretty tricky process, getting temperatures right and whatnot), so in the end he ended up wrapping the original FORTRAN simulation in some fresh GUI so it was easier to use (yes, the original UI was really flaky, essentially burning you for every even slightly wrong input) and everybody was happy.
Admin
Yeah I was pretty sure the new system was just going to web-wrap a bunch of calls out to the old, now rehosted, COBOL code. That's the only way to preserve bug-for-bug compatibility.
Besides, that's how you did it back in the last millennium.
Admin
Admin
Admin
Except, thanks to AJAX and do.postback and a bunch of other bloatware we can now force your page to reload (6-10 seconds) every time you change focus from one field to the next.
Barf.
Boiled barf with Tabasco sauce.
Deep fried barf with infectious slime sauce and a rat tail garnish.
Admin
THEY'VE GONE THE PLAID!!!!!
Admin
Ha, Zork reference FTW.
Admin
Admin
Line 154, the second FORTRAN in "The process started, not in COBOL, but in a FORTRAN program running on a VAX/VMS system. The user requested a report, and the FORTRAN program called out to a remote Java application."
I found that in ten seconds flat.
Admin
In his defense, it wasn't there when he was looking for it initially. I'm trying a new tool for writing articles, and it apparently eats script tags.
Admin
Seriously, who needs "a tool" to write HTML? It's about the simplest computer language I've ever seen.
vi for the win. Or cat, if you never make typos.
Admin
I'm developing a Markdown habit. It has the advantage of generating both readable plaintext and easily converting to HTML. Since I do most of my writing using Simplenote (which also has a Markdown preview), it's really convenient for me.
Admin
At risk of "YHBT", it's in general quicker to invoke a tool function to add HTML tags around something you're typing than pressing (for example) shift-comma, tr, shift-period, (lots of stuff including several instances of shift-comma, td, shift-period, stuff, shift-comma, /td, shift-period), shift-comma, /tr, shift-period ...
It's not only the language's complexity and difficulty-to-learn that makes a writing helper worthwhile: it's also the sheer tedium of writing all the tags out longhand. A set of macros to ease the irritation of typing out frequently-used commands is, at the very least, what sensible code writers use.
Admin
I swear, by the moon and the stars and the sun, I won't be there to support that one.
Admin
Goodness, you are right! I was sure it wasn't there earlier.
So either I'm blind and missed it, or Remy was sneaky and added it after reading my comment and realizing he forgot it.
I wonder how we could prove this one way or the other...
Admin
Funny how "legacy" COBOL systems have outlasted "modern" SQL database + Java front end....maybe that's the real WTF here?
Admin
You could read the comment thread and see my explanation. ;)
Admin
Like the comment by Remy saying that he added it later?
Admin
Java front end seemed a lovely idea at the time as you could run it in a browser, until they discovered that, if you let Java applets run from your browser, you may stumble across a webpage with a Java applet that had a virus or phishing - a rather big security hole.
Of course, Java was created by Sun Microsystems in an attempt to do battle with Microsoft.
Admin
Thought it was probably something along those lines, but I couldn't resist throwing the ten seconds flat line in there!
Admin
Mercifully, I have no clue what song Remy is referring to. And I'm early Generation X. So it's got to be either from the '60s or the '90s.
Admin
javascript:(function(){document.getElementsByClassName("ArticleBody")[0].innerHTML=document.getElementsByClassName("ArticleBody")[0].innerHTML.replace(/<!--/g,"<span%20style='color:%20red'>").replace(/-->/g,"")}())
Only works on the "full article" version, though, not either of the "with comments" versions. Someone with actual DOM-fu can no doubt fix it up easily enough.
Admin
Off the top of my head (not actually tested) wouldn't this work?
javascript:(function(){document.innerHTML.replace(/<!--/g,"<span%20style='color:%20red'>").replace(/-->/g,"")}())
Shouldn't matter which page you're on, if comments are in the source, they'll show
Addendum (2012-09-05 10:48): Removed - code was no-where-near what is needed!
Admin
Dumb question, where do you put that to work?
Admin
Admin
In the URL field of a bookmark.
Admin
@MightyM: Yeah. That would do it. glad to know I wasn't going crazy.
I also should register as Remy posted his response after i started writing mine, so i didn't see it until it was too late to edit.
Admin
TRWTF is having a girlfriend that you have to find excuses to avoid. Seriously.
Admin
Thanks!
Naughty Akismet.
Admin
As a VMS support person (aka Extinct Dinosaur), originally trained in COBOL and PL/1 I can say I still believe the VMS operating system to be the absolute, bar none, best OS in existence. Having worked with it since 1983, I have yet to see a “blue screen” or any other kind of screen that indicated that something has gone terribly wrong. The system just does not crash and is reliable beyond description.
Admin
It also has one of the most interesting filesystem designs I've ever seen.
Admin
Since copy and paste is magic, I've shamelessly ripped off- I've made derivative work of emurphy's code:
javascript:(function(){document.getElementsByClassName("ArticleBody")[0].innerHTML=document.getElementsByClassName("ArticleBody")[0].innerHTML.replace("<span%20onclick=","<span%20style="color:%20blue;"%20onclick=")}())
Admin
Turned out the Marketing Director had read as far as "The new web app is ready", not read any further, and promptly announced the great new service to the world on Twitter and Facebook.
Admin
Apparently I'm TRWTF here...
FTFMAdmin
The contract that wanted a mainframe programmer with SNOBOL experience was well on its way, like an ocean liner crossing the North Atlantic. The customer had already converted most of its legacy software into an ocean liner with a North Atlantic front-end. By 1997 standards, it was so cutting edge that it could slice through an iceberg, like an ocean liner crossing the North Atlantic. It even had a North Atlantic interface, which was a big deal for a customer that didn’t deploy icerbergs to their ocean liners.
Fixed.
Admin
Epic HTML comments, Remy!
Admin
Admin
THANK-YOU for telling me about those. I had no idea those HTML comments were there (since I don't make a habit of reading website source... too many WTF making my eyes bleed). You folks have just doubled the humor I get out of these articles.
CAPTCHA: commoveo commoveo here and read these comments.
Admin
Oh and they spent a lot of time making sure the "theme" had buttons with round corners and the proper shading -- but forgot that numbers sometimes get bigger than "9" and therefore won't fit on top of the button. (Existing data has 100,000 rows. "Developers" tested with 8 rows.)
Admin
Admin
Actually wrote this a few days ago (got tired of view-sourcing). Greasemonkey user script, wrote it for Chrome but should work in FF. Works almost identically to the other snippets posted (great minds think alike, I guess), but since it is a userscript it'll run automatically and you won't have to click the bookmarklet to see the comments. Put it in a text file named wtf.user.js and drag it on to the Chrome extensions page to install.
Also just added a highlight for the cornify spans (thanks for the idea Lockwood). Any span within Article Body will be highlighted blue.
// ==UserScript== // @name DailyWTF Show Comments // @description Show the hidden comments of the article as part of the visible body rather than having to View Source // @namespace anthonymaciel.com // @include http://thedailywtf.com/* // @version 0.0.1 // @contributor Anthony Maciel // ==/UserScript==
(function() { var e=document.querySelector('.ArticleBody'); e.innerHTML = e.innerHTML.replace(/<!--/g, ' <small style="color: green">').replace(/-->/g, ' ');
})();