Comment On Large Blockage

The words "Enterprise Integration" strike fear into the most stalwart of developers. When coupled with "in-house developed" and "B2B", one is almost guaranteed to find complex code, arcane requirements, and a thicket of poorly understood file formats. Dan was made of sterner stuff. When the contract was explained to him, he didn't flinch. There were between 40 and 80 partners that used a web app to extract data about multimedia assets? Gigantic recordsets of them? In formats ranging from Excel to iTunes-compatible databases? No problem. [expand full text]
« PrevPage 1 | Page 2 | Page 3Next »

Re: Large Blockage

2010-08-24 10:06 • by logical.. (unregistered)
a WTF like this would never have happened using Waterfall and SOA on an embedded filesystem environment. It simply couldn't.

TRWTF is people who use technology for the sake of technology rather than requirements.

Simple:

2010-08-24 10:06 • by Ed (unregistered)
1) Walk to coathanger.

2) Pick up coat.

3) Open door.

4) Walk out of door.

That is some pretty messed up software: if it's in that much of a state to start with there's not much point staying, it'll only get worse as more "features" are added.

Re: Large Blockage

2010-08-24 10:08 • by Jellineck (unregistered)
Smells like a VB "programmer" that decided to start doing .NET.

Re: Large Blockage

2010-08-24 10:09 • by Cbuttius
iTunes is the archetypal example of tightly coupled software. You can't use one feature of it without having to pull in the entire thing.

And Excel is not a database.

Re: Large Blockage

2010-08-24 10:09 • by The Nerve (unregistered)
Are you telling me that Visual Studio doesn't do page buffering? It's on the same technological level as Notepad?

Re: Large Blockage

2010-08-24 10:10 • by Jakob H. Poulsen (unregistered)
After reading this, I actually thought to myself: "I would love to refactor that!"

Excuse me while I go throw up.

Re: Large Blockage

2010-08-24 10:10 • by Astartee (unregistered)
Sorry to disappoint you, Remy, but I have never even heard of a Joan Cusak.

Signed : One of the (hopefully more than two) female TDWTF readers.

Re: Large Blockage

2010-08-24 10:10 • by Borken (unregistered)
319212 in reply to 319209
The Nerve:
Are you telling me that Visual Studio doesn't do page buffering? It's on the same technological level as Notepad?

Yeah, with Windows, you don't have to write a virus. You don't have to corrupt a driver. All you have to do is trick someone into opening a large file in Notepad, and your entire operating system grinds to a halt.

Re: Large Blockage

2010-08-24 10:10 • by TheRabbi (unregistered)
Usually, nuking code from orbit and starting from scratch is not the right answer.

This is not one of those times.

CAPTCHA: populus - what this kind of code is, unfortunately.

Re: Large Blockage

2010-08-24 10:11 • by m (unregistered)
staying on that project might gain you big bonuses

Re: Large Blockage

2010-08-24 10:16 • by Ryan (unregistered)
319219 in reply to 319201
Waterfall has nothing to do with it. It's more like...if it was developed by a programmer who was worth his salt. This is simply a lack of first year college training...

Re: Large Blockage

2010-08-24 10:17 • by BDM (unregistered)
Probably one of the most vicious WTFs ever listed. Developers that create such a mess should be put behind bars.

Re: Large Blockage

2010-08-24 10:18 • by SSDS (unregistered)
"and then started trying to get a grip on how to pry this pile of spaghetti apart and turn it into supportable code."

Add a noodle and jam it?

Re: Large Blockage

2010-08-24 10:19 • by Sir Twist
319223 in reply to 319209
The Nerve:
Are you telling me that Visual Studio doesn't do page buffering?
No, I'm telling you that it has to parse the whole file to build the Intellisense database.

Re: Large Blockage

2010-08-24 10:20 • by Cpl Hicks (unregistered)
319225 in reply to 319213
We take off and nuke the entire site from orbit. It's the only way to be sure.

Re: Large Blockage

2010-08-24 10:22 • by GettinSadda
Actually I would quite enjoy refactoring this code.

Re: Large Blockage

2010-08-24 10:27 • by JamesQMurphy
I really hate those management/HR types who use words like "rockstar" instead of "arrogant self-serving vodka-swilling loner who can't code his way out of a paper bag."



Re: Large Blockage

2010-08-24 10:28 • by Cbuttius
No doubt next the developer looks around for specs or documentation written but doesn't find any.

"Oh we're too busy here for specs and documentation... We run to tight schedules, and in the real world you don't have time to do things properly. Just look at the code and see what it does".

Re: Large Blockage

2010-08-24 10:31 • by Spivonious (unregistered)
319233 in reply to 319226
GettinSadda:
Actually I would quite enjoy refactoring this code.


Me too. I love refactoring. It's amazing how bad old code can get.

Re: Large Blockage

2010-08-24 10:36 • by chron3
If that's the way these new 'rockstar' developers write their code, then I'm rootin' for nuclear war and a chance for the cockroaches to strut their stuff...

Re: Large Blockage

2010-08-24 10:38 • by zelmak
319236 in reply to 319233
Spivonious:
GettinSadda:
Actually I would quite enjoy refactoring this code.


Me too. I love refactoring. It's amazing how bad old code can get.


:blink:

Re: Large Blockage

2010-08-24 10:40 • by Dan (unregistered)
The Real WTF is that a comment accurately told the developer what to do to correct the problem. Sure the code is crappy from an aesthetic sense, but it gets the job done, and Dan is on to a new project. BTW I am not the Dan from the story.

Re: Large Blockage

2010-08-24 10:41 • by quis (unregistered)
319240 in reply to 319201
logical..:
a WTF like this would never have happened using Waterfall and SOA on an embedded filesystem environment. It simply couldn't.

Especially if they used XML to make it more "enterprisey", and finished by putting it on a wooden table next to Irish Girl.

Re: Large Blockage

2010-08-24 10:50 • by yeehaw (unregistered)
319248 in reply to 319229
JamesQMurphy:
I really hate those management/HR types who use words like "rockstar" instead of "arrogant self-serving vodka-swilling loner who can't code his way out of a paper bag."

Yeah but the real treat is that they apparently went from a "rock-star" to a "cowboy coder".

Instead of shoving the quick one-line fix to production right away, this should've been approached with an actual planned project to redesign and refactor it. Yeah maybe still do the quick-fix to shut up the complaining users, but the long-term goal should have been a better, more permanent solution.

Re: Large Blockage

2010-08-24 10:51 • by RHINO (unregistered)
CRAP!

The "Rock Star" sits in the cubicle right next to me. I just finished "working" on two of his 25,000+ line C functions.

Re: Large Blockage

2010-08-24 10:51 • by yeehaw (unregistered)
319250 in reply to 319229
JamesQMurphy:
I really hate those management/HR types who use words like "rockstar" instead of "arrogant self-serving vodka-swilling loner who can't code his way out of a paper bag."

Yeah but the real treat is that they apparently went from a "rock-star" to a "cowboy coder".

Instead of shoving the quick one-line fix to production right away, this should've been approached with an actual planned project to redesign and refactor it. Yeah maybe still do the quick-fix to shut up the complaining users, but the long-term goal should have been a better, more permanent solution.

Re: Large Blockage

2010-08-24 10:53 • by Edward von Emacs, VI (unregistered)
//Server.ScriptTimeout = 3600;
//Server.ScriptTimeout = 10800;
Server.ScriptTimeout = 21600; //six hours should probably be enough. If it keeps crashing, raise this.


Should be:

//Server.ScriptTimeout = 3600;
//Server.ScriptTimeout = 10800;
Server.ScriptTimeout = 21600; //six hours should probably be enough. If it keeps crashing, raze this.

Re: Large Blockage

2010-08-24 10:57 • by causa (unregistered)
319253 in reply to 319251
Edward von Emacs, VI:
//Server.ScriptTimeout = 3600;
//Server.ScriptTimeout = 10800;
Server.ScriptTimeout = 21600; //six hours should probably be enough. If it keeps crashing, raise this.


Should be:

//Server.ScriptTimeout = 3600;
//Server.ScriptTimeout = 10800;
Server.ScriptTimeout = 21600; //six hours should probably be enough. If it keeps crashing, rase this.

FTFY, for the benefit of our readers in Jolly Old England

CAPTCHA 'causa' - I fixed it causa the limeys always complaining about "American" spelling

Re: Large Blockage

2010-08-24 10:58 • by wtf (unregistered)
319255 in reply to 319250
yeehaw:
JamesQMurphy:
I really hate those management/HR types who use words like "rockstar" instead of "arrogant self-serving vodka-swilling loner who can't code his way out of a paper bag."

Yeah but the real treat is that they apparently went from a "rock-star" to a "cowboy coder".

Instead of shoving the quick one-line fix to production right away, this should've been approached with an actual planned project to redesign and refactor it. Yeah maybe still do the quick-fix to shut up the complaining users, but the long-term goal should have been a better, more permanent solution.


I think the point was that he did the quick fix to see if the problem was with the time-out, and the "fix" was treated as an actual resolution of the issue by the management, who thought that "it runs"=="it's done".

That's just my guess, though, based on reading all the way to the end.

Re: Large Blockage

2010-08-24 11:03 • by NotSoRare
319257 in reply to 319211
Astartee:
Sorry to disappoint you, Remy, but I have never even heard of a Joan Cusak.

Signed : One of the (hopefully more than two) female TDWTF readers.


Remy - John Cusack would be a better choice.

Signed: Female TDWTF reader #3

Re: Large Blockage

2010-08-24 11:05 • by Cbuttius
It's just the way software development has gone: immediate need has the priority over long-term maintainability. Nobody cares about 5 years time because you have to get the market share right now, and who knows whether you will still need the product anyway in 5 years time?

Probably explains why "agile" is the big buzzword of today in IT development, whereas "OO" was 10 years ago.

Re: Large Blockage

2010-08-24 11:06 • by Herby (unregistered)
The timeout was raised from 21600 to 43200 in the example. Perhaps raising it it the final limit of 86400 would have been the best solution. If they run it once per day and it crashes with that timeout, then they WILL need to do some "refactoring".

Time will tell (in more ways than one!).

Re: Large Blockage

2010-08-24 11:08 • by SenTree
319262 in reply to 319253
causa:
Edward von Emacs, VI:
//Server.ScriptTimeout = 3600;
//Server.ScriptTimeout = 10800;
Server.ScriptTimeout = 21600; //six hours should probably be enough. If it keeps crashing, raise this.


Should be:

//Server.ScriptTimeout = 3600;
//Server.ScriptTimeout = 10800;
Server.ScriptTimeout = 21600; //six hours should probably be enough. If it keeps crashing, raze this.

FTFY, for the benefit of our readers in Jolly Old England

CAPTCHA 'causa' - I fixed it causa the limeys are
always complaining about "American" spelling


FTFY x 2

This is one of the cases where the 'zed' variant is standard British English. The 'ess' variant is rarely seen, although I believe it is acceptable on either side of the pond.

However, we limeys in Jolly Old England would take exception to the use of 'zee'.

Re: Large Blockage

2010-08-24 11:09 • by Cbuttius
319263 in reply to 319261
Herby:
The timeout was raised from 21600 to 43200 in the example. Perhaps raising it it the final limit of 86400 would have been the best solution. If they run it once per day and it crashes with that timeout, then they WILL need to do some "refactoring".

Time will tell (in more ways than one!).


Make that 82,800 to take care of the one day in the year that we lose an hour shifting to daylight savings time.

I think the developer thought that he'd have the whole thing "fixed" by the time they needed to raise it above 12 hours but subsequently was about to be taken off the job to work on something "proper".

Re: Large Blockage

2010-08-24 11:16 • by Swedish tard (unregistered)
319267 in reply to 319212
Borken:
The Nerve:
Are you telling me that Visual Studio doesn't do page buffering? It's on the same technological level as Notepad?

Yeah, with Windows, you don't have to write a virus. You don't have to corrupt a driver. All you have to do is trick someone into opening a large file in Notepad, and your entire operating system grinds to a halt.


Doesnt notepad actually refuse to open large files, redirecting you to whatever else there are in the way of editors/readers on the system?

Re: Large Blockage

2010-08-24 11:22 • by Anonymouse (unregistered)
Dear Remy,
Don't ever change.

Your friend,
Jane Cusack

Re: Large Blockage

2010-08-24 11:24 • by cod3_complete
I wish I could say that I haven't seen this kind of bull before.
[1]Huge code base with zero documentation or comments but the deadline must be achieved in 4 hrs flat. Check.
[2]No tests of any kind be they unit or integration tests. Check.
[3] Technical Managers who lack the technical part and can't tell that the code is one massive clusterf#$@!!! Check.
[4] Incompetent developers allowed to keep collecting a check even though they are NNPP's. Check.

Why why are these people allowed to stay gainfully employed??? Worse yet many of these schiesters are probably getting paid more than many of us. Truly sad...

Re: Large Blockage

2010-08-24 11:25 • by MistaZ
319270 in reply to 319267
Nope, not really, I once tried to open a 200 Mb txt file and it froze for good 20 minutes and ate up most of my RAM.

Re: Large Blockage

2010-08-24 11:25 • by phleabo (unregistered)
319271 in reply to 319248
yeehaw:

Instead of shoving the quick one-line fix to production right away, this should've been approached with an actual planned project to redesign and refactor it. Yeah maybe still do the quick-fix to shut up the complaining users, but the long-term goal should have been a better, more permanent solution.


Did you actually read the story all the way through? Particularly these bits:

Dan wasn't even sure where to start. For the heck of it, he upped the script timeout from 21600 to 43200. He checked that minor change in with the comment, "This should fix timeouts for the foreseeable future," and then started trying to get a grip on how to pry this pile of spaghetti apart and turn it into supportable code.


and:

The next day, he was elbow deep in "Export.aspx"'s entrails when Steve interrupted. "Hey, Dan!" Steve beamed. "Great work on fixing that bug. I saw your check-in, gave it a spin, and promoted it to production. Fantastic turn-around time on that. Look, since you're done, we've got a lot of other projects that could use some TLC- can I move you onto one of those?"


So to summarize:

1) Dan checked in a quick patch
2) Dan started to refactor
3) Steve saw the checkin and promoted it to production
4) Steve asked Dan to move on to other things.

The only thing worse than a cowboy coder is a cowboy commenter.

Re: Large Blockage

2010-08-24 11:28 • by Anon (unregistered)
319272 in reply to 319251
//Server.ScriptTimeout = 3600;
//Server.ScriptTimeout = 10800;
Server.ScriptTimeout = int.MaxValue; //Problem fixed forever!

Re: Large Blockage

2010-08-24 11:33 • by microtrash (unregistered)
It's always nice reading about something worse organized then the PHP applications I have to maintain that consist of a single include.php over 700 KB and over 17K lines and over 1K different functions, all calling each other in the nicest spaghetti style I've ever seen.



Re: Large Blockage

2010-08-24 11:40 • by Anonymous (unregistered)
Hey, there's nothing wrong with Joan Cusack, as long as you like your women a touch on the mental side (and let's be honest, who doesn't?).

Re: Large Blockage

2010-08-24 11:42 • by Harrow (unregistered)
319280 in reply to 319209
The Nerve:
Are you telling me that Visual Studio doesn't do page buffering? It's on the same technological level as Notepad?

Once upon a time, they were on the same technological level, but Notepad has advanced significantly since then.

If Visual Studio and Notepad were still roughly on a par, Visual Studio would sometimes present the message: "This program is too mission-critical for VB to maintain. Would you like to convert it to C# instead?"

-Harrow.

Re: Large Blockage

2010-08-24 11:44 • by Mr. S. (unregistered)
319281 in reply to 319229
JamesQMurphy:
I really hate those management/HR types who use words like "rockstar" instead of "arrogant self-serving vodka-swilling loner who can't code his way out of a paper bag."


Isn't that the definition of a rockstar?

CAPTCHA: similis - a lot like syphilis

Re: Simple:

2010-08-24 11:45 • by alister (unregistered)
319282 in reply to 319202
Ed:
1) Walk to coathanger.

2) Pick up coat.

3) Open door.

4) Walk out of door.

That is some pretty messed up software: if it's in that much of a state to start with there's not much point staying, it'll only get worse as more "features" are added.


That's way to long

1 - RUN,as far and as fast as possible.

Notice in the text the boss want him or other projects, which means more of the same

Re: Large Blockage

2010-08-24 11:50 • by operagost
319284 in reply to 319270
MistaZ:
Nope, not really, I once tried to open a 200 Mb txt file and it froze for good 20 minutes and ate up most of my RAM.

I think it was back in the Windows 9x days when notepad was limited to 64KB text files. Their "fix" created a new problem.

Re: Large Blockage

2010-08-24 11:50 • by Anonymous (unregistered)
319285 in reply to 319280
Harrow:
The Nerve:
Are you telling me that Visual Studio doesn't do page buffering? It's on the same technological level as Notepad?

Once upon a time, they were on the same technological level, but Notepad has advanced significantly since then.

If Visual Studio and Notepad were still roughly on a par, Visual Studio would sometimes present the message: "This program is too mission-critical for VB to maintain. Would you like to convert it to C# instead?"

-Harrow.

Oh, I've seen that. Clippy pops up and starts hurling abuse about how only 14 year olds use VB and if you don't upgrade he's going to cut you. I'll tell you, that paperclip has gotten a serious attitude problem since those fateful days working as the Word mascott.

Re: Large Blockage

2010-08-24 11:51 • by wtf (unregistered)
319286 in reply to 319281
Mr. S.:
JamesQMurphy:
I really hate those management/HR types who use words like "rockstar" instead of "arrogant self-serving vodka-swilling loner who can't code his way out of a paper bag."


Isn't that the definition of a rockstar?

CAPTCHA: similis - a lot like syphilis


As in, it's beginning to look a lot like syphilis?

Re: Large Blockage

2010-08-24 11:52 • by Anonymous (unregistered)
319287 in reply to 319267
Swedish tard:
Borken:
The Nerve:
Are you telling me that Visual Studio doesn't do page buffering? It's on the same technological level as Notepad?

Yeah, with Windows, you don't have to write a virus. You don't have to corrupt a driver. All you have to do is trick someone into opening a large file in Notepad, and your entire operating system grinds to a halt.


Doesnt notepad actually refuse to open large files, redirecting you to whatever else there are in the way of editors/readers on the system?

I've opened multi-GB files in Notepad. Don't ask me why, but I have and it works. Like most MS products, you just have to give it time.

Re: Large Blockage

2010-08-24 11:57 • by wtf (unregistered)
319288 in reply to 319212
Borken:
The Nerve:
Are you telling me that Visual Studio doesn't do page buffering? It's on the same technological level as Notepad?

Yeah, with Windows, you don't have to write a virus. You don't have to corrupt a driver. All you have to do is trick someone into opening a large file in Notepad, and your entire operating system grinds to a halt.


Great trick, that. "Haha! I've got you! Now my entire system has ground to ... waitaminnit ... can we try this again?"
« PrevPage 1 | Page 2 | Page 3Next »

Add Comment