- 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'd rather see the comments as the following that I wrote:
(function() { var e = document.getElementsByClassName("ArticleBody")[0]; e.innerHTML = e.innerHTML.replace(/<!--/g, "<div style='background-color:gainsboro;border:solid 1px black;padding:4px;color:red;'><div style='font-weight:bold;color:red'>NOTE FROM AUTHOR:</div><span style='font-style:italic;'>").replace(/-->/g, ""); } )();
Although, using querySelector may make my script better :)
Admin
My girlfriend can make a sandwich in 10 minutes. What takes yours so long?
Admin
I think I worked at this company
Admin
Look, if you want an excuse for NOT watching Titanic, just say: The ship sinks, now can we go home!
Admin
FTFY
Admin
Admin
What I like about today's article is that it has the smell of code that will outlast all of the rat's nest of replacement technology used in it, a gently festering WTF for future generations…
Admin
How about it: If you ARE going to embed silly (possibly useful) comments, how about adding an "authors comments" button to display them inline in a different color. Then we wouldn't have to muddle through and generate silly scripts to do it ourselves, as that might even be 'work'?
Admin
And he has the better alternative to cornify.
If only he could deter from bowytzing the submissions. But as yesterdays post shows, he does that deliberately.
Admin
Admin
WOW how didn't I realise this till now
Admin
The girlfriend didn't last past Feb 1998, as it happens. Unfortunately her successor also loves Titanic ... but has never put me through the agony of watching the damn thing - because she knows that if she does so, then I will inflict This Is Spinal Tap on her.
Admin
SHEEE-IIIT! I WORKED ON THIS SYSTEM! Well...or at least...something awfully (and I mean "awfully") similar. :-)
Admin
As the "Matt" that is the protagonist of this little anecdote, I have to agree.
Admin
Too lazy to do right-click --> view page source? You poor thing.
Admin
I have since embarked on a quiet personal protest against all James Cameron movies. Yes, even Avatar. Never seen it, never will.
PS. Best 'Titanic' movie moment was in The Bachelor (Chris O'Donnell/Renee Zellweger) when some girl on a rowing machine is watching the end of the movie and disgustedly asks, "What kind of dumb bitch lets Leonardo DiCaprio drown?"
Admin
Neat! Didn't know editors added their comments :)
Here's a quickie GreaseMonkey script I wrote, (based on emurphy's bookmarklet):
Feel free to improve it further ;)
[i]Addendum (2012-09-05 17:14):
That's enough outta me, time to work
Admin
Thank you emurphy, for showing me a side of thedailywtf that I never new existed.
Admin
"This was 1997, and in the closing moments before the dreaded Y2K bug"
1997 was the closing moments? I thought December 1999 was the closing moments - that's when I remember being stressed about our software.
Admin
But no, you took the high road. Hope it was worth it.
Admin
And there were a lot of changes. This was our biggest project ever, in a company that routinely had many multi-million-dollar IT projects in the pipeline at once.
Y2K was not a non-event because the bug was over-hyped. It was a non-event because a lot of people put in a lot of extra hours to stave off chaos. And that's exactly what we did.
Admin
Admin
Admin
Regarding keeping bugs intact -
Many decades ago, the company I worked for was hired to assist a large manufacturing company which was converting from IBM 1410 to IBM 360. The original code was a mix of Cobol and Autocoder, and we were converting to Cobol and assembler. Because they were going to do parallel testing of the old and new systems, everything had to match.
One of the programs I converted generated a daily report which was about 1000 pages long. I think it was reporting the value of all their inventory on hand. There was a sub-total on every page as well as sub-totals for each part/assembly, and then a grand total.
When I ran the report, the page sub-totals matched, but many of the other sub-totals and the grand total were off. It was apparent that the values in the old report were being truncated. Sure enough, checking the old program showed that the fields where the values were summed were too small.
I explained all this customer's IT manager, but he insisted that there must be a good reason for this, since the accounting department hadn't complained. This made no sense to me, so I asked to meet with the folks in accounting.
I was brought over to the desk of the person who review the report. She explained that a number of years ago they had noticed the overflow problem and asked IT to fix it. The IT staff said they were busy and accounting should come back in a few months. So this woman now spent about 6 hours each day using an electro-mechanical calculator to recompute all the totals. I asked if it would help if the report had the correct values, and she answered that if so, she'd probably be laid-off.
Needless to say, I added code to my program to truncate the results so that they would match the old system.
Admin
You laugh, but I used to work for a "well-known ticketing company" who ran the whole backend of the business on aging VAXen. We had guys who got paid weekend overtime to troll computer swap meets looking for replacement drive controllers, or really any part that might fail tomorrow. Eventually we replaced the VAX boxes with an emulator running on some modern linux gear from IBM. That provided a big speed boost, so management stopped listening to us when we kept suggesting it might be time to build a modern replacement... :-(
Admin
I would have to say that space shuttle software, which crashed exactly as it was supposed to do, as it was designed to do when it detected a programming error that was later corrected, was more reliable than VMS. But otherwise, VMS was more reliable than just about anything else, even though it crashed several times per year.
Admin
32 years for me and my lovely wife. Will skip the XKCD reference for the delicates on DWTF. Get's better all the time! :-)
Admin
How did the conversation not go like this? :
Customer: If it ain't broke, don't fix it.
Matt: I'll keep that in mind. Now, tell me again what you said was broken... Oh, your report broke, did it? Would you like me to fix it?
Admin
There was also another kind of bug that caused the program to crash frequently on IBM systems. In Univac Cobol, if a blank field was read into a numeric variable, the value was zero. In IBM Cobol, if a blank field was read into a numeric variable, and then used in a comparison or maybe even a calculation, the program crashed because blanks were not zeroes. So first I added a test to compare the variable against a string of blanks, but the IBM compiler defeated that by changing the blanks to zeroes in the numeric variable when comparing against a string of blanks -- so the comparison would say not equal, and then the program would proceed to its old numerical comparison which crashed because the IBM compiler didn't change the blanks to zeroes when they were actually needed. So next I overlaid the numeric variable with a string variable and compared the string to a string of blanks. That worked. The program no longer crashed. A senior colleague knew how to handle that situation. He deleted my code and got my boss to fire me. I don't know if the customer ever got a working solution.
Admin
So you never thought to get small Alpha system running VMS, and just re compile, or if you want run the VEST binary translater? Modem hardware, the same OS and faster models. Hell we did this back in early to mid90s. Ran a mixed cluster of VAX and Alpha hitting the same disks.
Admin
Shorter!
Admin
Holy crap, is that a terrible friggin' song. Keeeeerist. IT'S STUCK IN MY HEAD. The things I do for you people
You're a stronger man than I, Remy Porter.
I had to close the YouTube clip less than halfway through. I can't remember the last time a vocal performance caused me actual physical pain.
Admin
Replacing %20 with a space worked for me. javascript:(function(){document.getElementsByClassName("ArticleBody")[0].innerHTML=document.getElementsByClassName("ArticleBody")[0].innerHTML.replace(/<!--/g,"<span style='color:red'>").replace(/-->/g,"")}())
Captcha: dolor
Admin
Better than queen or sandwich maker is if you treat each other as best mates. That's "best buddies" in Americaspeak.
Admin
No, it went like this:
Customer: "We need to add such-and-such a field to our reports [to include information on another product line]. These are the positions on the reports that we want it."
Matt: "That will cost you (thinks: um, three files need changing here, here and here: should take me half an hour to do the changes, rebuild the executables while I sup some coffee, run a quick test) $2500. This should be ready for you in three months time, ready for your next-year go-live in January."
Am I right?
Admin
Before or after the credit crunch? If this is a company serious about staying in business, they'd figure: hey, if this bloke's investigations have just shown us how to save us the salary of one member of staff, how come he's been made to deliberately crock the system so as to keep this person in employment?
My own view is that if people are doing a job which is so mindless and mechanical that they can be completely taken on by a computer, they need a new outlook on life. Fire them or retrain them, but don't keep them employed for humanitarian reasons.
A programmer's measure of success in a job is the number of people he can directly make redundant by getting a computer to do the work instead. TRWTF is people whose only reason for getting up in the morning is to be a computer.
Admin
In one, bro. There was more to it than that, but the general gist of it was accurate. The programs were robust enough and sufficiently well-designed that doing year-on-year maintenance was straightforward, if a little tedious.
Upgrading the s/w would have been a moderately large exercise, but we had done our homework so as to ensure that if and when they had decided to upgrade, the process would have been a relatively painless process.
But no, the customer was more than happy to be milked.
Admin
Oh yeah, and it's also got to be pointed out that on the original project, once we had identified the bugs (by analysing why our output didn't match their sample output) we reported back to the customer where we had identified bugs in his original application, we were then given the go-ahead to fix them. But we had to emulate the bugs themselves (usually simple things like misidentified fields resulting in blanks were there should have been a number, etc.) before the customer were satisfied that we had completed the assignment.
IMO this is not a WTF but good industry practice. You can not be certain that a replacement system is an accurate implementation unless you can account for every single discrepancy between old and new. Naturally, on investigation, some of the discrepancies are because of bugs in the new. But you got to do the work to get to that stage in the first place.
Perhaps the real WTF is that DEC lost their market position.
Admin
Naah, save yourself the expense and the wasted evening. "You know what? Let's save the $150 I'd be wasting on your selfish hedonistic pleasures and do something useful with it like put it aside for the future ... pardon me? it's that important to you? Honey, I'm glad we got that sorted out now before we did something really fucking stupid like planning for a fucking wedding ... Yes, you fuck off too, you stupid bitch."
Admin
Here's something that works on both the main article, AND the "expand full text" article in the comments page. AND, it also highlights the cornify text.
Works best as a bookmarklet.
javascript:(function(){x="%20onclick="cornify";z=document.getElementsByClassName("ArticleBody")[0] || document.getElementById("ArticleFull");z.innerHTML=z.innerHTML.replace(/<!--/g,"<span%20style='color:%20red'>").replace(/-->/g,"").replace(x,"%20style='background:pink'"+x)}())
Admin
I sooooo wanted "butcher" to be the cornify.
Admin
http://userscripts.org/scripts/show/142086
Admin
I dont know if i fell hate for this dumb decision of hiring someone for manually calculating reports total, or if i fell pity for poor human condition. If the decision is not your, then you just put the back back and be done. But, doing this kind of thing on purpose is dirty. On other hand you can fell sorry for indirectly cutting some people job.
Admin
So... they could have avoided those huge wage increases by writing an extension to the system themselves, that generated PDFs directly, alongside with the customer's system that "ain't borked", then let the customer use both for a while, and at some point they'd drop the old system. But apparently it requires some vision to understand that the customer just wants to give you more money, and you should just shut your pie hole and take it.
So I'm not rich yet. What gave it away? :)
Admin
[quote user="C-Derb]I have since embarked on a quiet personal protest against all James Cameron movies. Yes, even Avatar.[/quote]
IMHO you're not missing much with Avatar but depriving yourself of Aliens and Terminator II because of Titanic is like not drinking beer or eating bread because yeast also causes jock itch. Two of the greatest B-movies ever, the kind that are so great they transcend genre and become real art.