- 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
<FONT size=2>Over-engineering: "In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. Van De Snepscheut</FONT>
<FONT size=2>-----</FONT>
<FONT size=2>Time is an excellent teacher; but eventually it kills all the students. </FONT>
Admin
Beware of those great ideas in meetings!
Mmm... PHP, Apache on a Windows server? Is that right? (Zip, dll...)
Admin
I get it: renaming Zip (compression) to ZipCode (as in the post office) seems perfectly obvious to me </wink>
Admin
"Fortunately, David was able to convince his higher-ups to dump the contractor and finish the application internally. Unfortunately, David was the one assigned to finish it."
I would say this is the right thing.
If you advocate for something, then you should be prepared to take it :-)
Eat your own dog food principle.
Admin
Namespaces in PHP would be nice...
Admin
Contractor A: What do you mean I cannot name my class "Zip"?
Contractor B: It won't work, that name is already taken by one of the installed extentions.
Contractor A: ....
Contractor B: <sarcasm>Well, I guess that you could just remove the extention.</sarcasm>
Contractor A: Great idea! Yeah, I'll do that.
Contractor B: ....
Contractor A: Oh, don't worry, I will document it.
Admin
at least there was some documentation!
captcha: giggity
giggity giggity, giggity goo
Admin
Hmmmm, I'm actually guilty of doing something similar. There was a 3D library we were using and I needed to make changes inside of it (Rendware SUCKS) and thus recompile it. For some reason (that I can't remember) it wasn't possible to re-compile the entire .lib so I ended up recompiling certain sections of it, then linking both libs, and having certain functions supperceed other almost-identical functions of the same name.
Not my finest hour T_T
Admin
I cannot believe that this person wrote all this documentation in the installation instructions, when the fix (renaming the class) would be so much easier. This was obviously generated.
Oh, and I so much want to play foosball with the girl in the ad on the left column of this site. She looks like she's having so much fun!
Admin
<sarcasm>
Oh wow. What a truely unique WTF. This has got to be THE BEST WTF EVER. I don't think anyone has ever done anything more WTF worthy than this. I can't believe that the contractor didn't notice how the other applications were failing to work because of the ZIP library not being present. It just completely boggles my mind.
</sarcasm>
Admin
There is a Windows port of Apache, it works pretty well AFAIK.
Admin
And all this time, I've just been trying to avoid clashing with keywords and default packages: imagine, I could have just not included things like memory managment, pre-defined integers, classes...
Oh, come to think of it I might get the following to work:
class int
{
constructor()
{
//allocate memory for the class
pInt = new bytearray(4);
}
destructor()
{
//deallocate memory for the class and call base-destructors
delete pInt;
}
}
<sarcasm/>
Admin
There are plenty plenties in that sentence.
Admin
Academics have a hard time figuring this one out. Strangely, some consultants do too.
Admin
-------------------------------
doug said: "Hmmmm, I'm actually guilty of doing something similar. There was a 3D library we were using and I needed to make changes inside of it (Rendware SUCKS) and thus recompile it. For some reason (that I can't remember) it wasn't possible to re-compile the entire .lib so I ended up recompiling certain sections of it, then linking both libs, and having certain functions supperceed other almost-identical functions of the same name.
Not my finest hour T_T"
-------------------------------
Good judgment comes from experience; experience comes from bad judgment.
Admin
So you think it's acceptable to make a system-wide change that affects everything when you have the opportunity to make a local change that affects nothing else? If I write an application and can't figure out how to make its title bar purple, is it OK if I delve into your system settings and make ALL title bars purple? No.
Admin
Actually, on TDWTF tears of joy and pain come from bad judgement.
CAPTCHA = enterprisey. Just the thing this man needs on his resume.
Admin
Show me where in the spec it said ANYTHING about the other title bars.
Admin
Stupid way to solve the problem, but the problem itself is pretty damn stupid as well. Php doesn't have anything like a namespace, you can't put functions in another namespace, but you can still have tons of namespace collisions.
Just one more php wtf, if that isn't redundant.
Admin
It's too bad this was caught so early on. It would've been much funnier if they were paying for bandwidth and the bill went up sixfold in one month.
The contractor would have to relocate himself, but no worries, at least he can use his ZipCode class.
Admin
Thank You Captain Obvious.
Actually, I read his statement (parsed for sarcasm tag) as saying that he CAN believe a contractor missed the blindingly obvious problem of making system wide changes, especially for such a stupid reason. Ergo, this contractor, like many featured on TDWTF, is an idiot errrr excuse me I mean "used bad judgment".
Admin
Not sure about your browser, or perhaps you're working upside down, but I believe she is on the right side...
Admin
*** Obscure reference warning ***
Would you say that he has a "plethora" of plenties?
Admin
I'm not well-versed in PHP, but it seems to me that 50,000+ LOC is a bit excessive for 14 pages. WTF?
CAPTCHA = whiskey (well, don't mind if I do!)
Admin
I think I would rename Zip class to ZipCompression and then recompile PHP. This is open source, after all. Some people are so lazy, going for half-baked solutions...
Admin
El Guapo: Jefe, would you say I have a plethora of plenties?
Jefe: A what?
El Guapo: A plethora.
Jefe: Oh yes, El Guapo. You have a plethora.
El Guapo: Jefe, what is a plethora?
Jefe: Why, El Guapo?
El Guapo: Well, you just told me that I had a plethora, and I would just like to know if you know what it means to have a plethora. I would not like to think that someone would tell someone else he has a plethora, and then find out that that person has no idea what it means to have a plethora.
Jefe: El Guapo, I know that I, Jefe, do not have your superior intellect and education, but could it be that once again, you are angry at something else, and are looking to take it out on me?
Admin
Sounds like the eternal php wtf of not seperating content and code. That'd be easy for machine generated HTML.
Admin
You might be on to something: he's in Australia, so everything is upside down, so she *does* appear to be on the RHS
Admin
Yay, didn't have to explain myself ;-)
Admin
I think this is more of a PHP wtf than a moron contractor wtf. It's another demonstration of how easy it is to screw up in PHP by not naming your {function,class,variable} correctly. Why does everything have to be a function?
Admin
What does everything having to be a function have to do with choosing incredibly bad names? You can make that screw up in *any* language!
Admin
This really gives me more of an "UGH" feeling than a "WTF!?" feeling.
Admin
Yeah I'd like her to play with my foosballs too...
Admin
The closest I've come to this sort of thing is when I worked at a company that had a product with both VMS and Unix versions, compiled from the same source tree. It had started out on VMS.
One of the utility programs in our system was called "xfd". I can't even remember what it did. But on the Unix side, that name conflicted with the X font display program "xfd". So we had to make sure the users put our bin directory ahead of the directory where the X "xfd" lived. And document it. And yet, we still got puzzled calls from customs (and from our own salepeople) saying "I went to use xfd, and all I got was a grid of all the letters in the alphabet".
Admin
It's only a name problem in PHP. In java, for example, I could make a 'Zip' class anywhere I wanted just by specifing a different namespace. I could make hundreds of them, because in Java, you can say, "The program named zip that is part of this package over here, not any other program that may also be named zip." With a big application that has non-stupid function names, you're going to have repeats, and that language has to be able to deal with that. Most languages can.
Sure "Zip" is a stupid name, but there are plenty of classes in PHP where the name isn't stupid, but you still have the exact same problem. I've tried to reconcile applications before where I literally had to change a function name in 1000+ places, and this is a problem that is simply not tolerable in a professional quality language.
Admin
A couple of jobs ago, I worked at a place that liked to re-use class names in Java (with ever-so-slightly-different implementations, so they just put them all in slightly differently named packages...
Made for one hell of a time when more than one of them was used in the same file, or when some poor new guy would subclass the wrong one - or both.
Admin
Admin
Pretty crafty add from a software development community. I mean, what does a hot blonde leaning over a foosball table exposing part of her breasts have to do with software development (i.e. a bunch of single geeks?)
And I still can't beleive why zip was renamed to zipcode when they simply could have renamed all of the compression references to 'MakeSmaller'
Admin
And how about a business entity called Package? Looks nice on paper. Much worse when you try to implement it in Java.
Admin
Hah. Worst I ever dealt with was an old VB app where the "developer" would upgrade the libraries (huge compiled dlls) whenever he needed to add functionality to the program.
This is not to say that he'd upgrade the libraries across the whole program, mind. No. That might BREAK something. No, he'd make the change, recompile the library, and then source it on whatever single page needed the change in functionality...with a name that differed only in version number. So these compiled libraries (there were two basic libraries, each more than 2 megs in size) would be sourced over and over in the application using all the same functions, but from different versions of the libraries.
Total nightmare. To date it is by far the most wtf wtf I ever worked on.
Admin
Surely the real WTF is 50,000+ lines of code over 4 months for an incomplete 14 page web app?!?
Admin
I know! The real WTF is that he made a class and only used it once!
captcha: perfection
Admin
Java won't complain about your Package, just your package
Admin
wtf wtf? Uh oh.
Admin
Absolutely. I've got PHP, Apache and Mysql running on my windows laptop so I can develop when I'm off the net. Works great.
Zip, by the way, is not a windows-only format by any stretch. A quick "man zip" on a debian box shows copyrights dating back to 1990.
I wouldn't be suprised if our WTF developer developed on a windows box; that doesn't really mean the production server ran in the same environment -- for every .dll PHP extension, there's a matching .so for the linux environment. As long as you don't do anything stupid, PHP code should be fully portable across OSes.
Admin
In the cold confines of the office, she radiates warmth. In the office, we are not allowed to fulfill our animal desires. We are to work. But, she is there. She comforts me.
captcha is obviously "genius."
Admin
A couple of jobs ago I worked on a project had been started in Australia but development had moved to the company's US office. I (a Canadian) was working at the US office. Since we were dealing with digital film compositing, there were classes called "AdjustColour" and "AdjustColor", and "GreyMatte" and "GrayMatte".
Of course, I came back to the same office a few years later for another contract, and I made the mistake of making a class called TheatreDay, not realizing there was already another one called TheaterDay.
Admin
In this case it's also known as the "punish the guy who came up with good ideas for the company" principle.
He won't make that mistake again!!!
Admin
Nobody complains about my package.
Admin
See below. Try to create a class called Package. :)
Yeah, namespaces do help to avoid shooting yourself in the foot but if you try hard enough, eventually you'll succeed. Blaming PHP is all too easy (and fashionable too) but try to think what might have crossed the author's mind when he first saw the error message and decided that the best solution is removing that library.