- 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'm curious to know what this was made in. Is this adobe FileMaker? If so there is a potential underlying data structure that is VASTLY more heinous than what we are seeing on the surface
I've only been in IT for 8 years now but easily the worst data structure I ever saw was in a FileMaker system - it's worst feature is it's accessibility to "non-developer types"
CAPTCHA: captcha hehehe
Admin
I'm not sure, but could you put all the non-varying fields (dummy or not) on a single subform and imbed it in each "By" and "Select" form?
--RA
Admin
The icon in the form is for Visual FoxPro.
--RA
Admin
Any attempt to grok United's website is futile at best. A couple of years ago, they had a promotion that was hosted on unitedgreatoffer.com. I tracked down the site owner (a web designer at a shop in Chicago) and got him on the phone, asked why on earth the page wasn't www.united.com/greatoffer, that I wasn't about to use my United login on a non-United page, etc.; he agreed with everything, fumbled around trying NOT to say what I finally said for him:
"The United web site is a disaster and getting anything like /greatoffer set up would take months, if it even ever got finished."
When I said that, he agreed with obvious relief, and we parted friends.
I could list any number of egregious behaviors of the www.united.com site, but we're getting a wee bit off-topic ("You say that like it's a negative thing...")...
...phsiii
Captcha: genius (how did it know???)
Admin
I vote this WTF as the #1 "goggles" post of all time. After the goggle comments have been used so gratuitously, I honestly believe this one can actually cause a detatched retina when looked at directly for too long. If your eyes get tired, just stare at the sun for a few minutes to give them a rest.
Now, which pills are the ones that make the nightmares go away?
captcha = craptastic
Admin
Can't you select any of the controls from some drop list in the designer and change it's property w/o having to move things around in Foxpro? Must be an old version?
Admin
Wow. What a mess. No wonder nobody wanted to fix it. As soon a someone solves it... they own it. And it owns them. It's like a game of Tag-> you're it. Once you're tagged as the only expert on something like this, you can stow your upward mobility in the basement. Good choice for consultant work... outta keep the revenue stream coming in for a while anyway.
Admin
O. My. Dear. God. This is awful. The person who originally did this must have had severe psychic problems.
Admin
I was going to say "sweet mercilous God", but even God doesn't have enough mercy to save someone from this.
Admin
All I have to say is shoot the MF's who put that together and the management that agreed to it. WTF?!?!?!
Admin
hehe, like many others i thought there was something wrong with my browser... you could use that babble of junk as the bases for some pretty secure captchas i reckon :)
Admin
That would do for this application, but it's not actually a hex editor...
Admin
<font face="tahoma,arial,helvetica,sans-serif">At first glance I thought there's something wrong with my eyes... And I was right, my eyes are completely wrong by looking at this...
I've used to work with GUIs back in college, it really speeds up some dev time, if the GUI is somewhat static, then I code the dynamic parts...
Why they just literally dragged and dropped similar controls with varying texts (and dynamically showing them in code) rather than just using one (which also need codes to dynamically change them) is beyond me... or am I missing something here?
</font>
Admin
Since this is a VFP form, each of those controls should be stored in a separate record of the underlying database. So, theoretically, you could operate on it using VFP to do the updates. That could lead to just as much insansity as working with the form directly, though....
Also, this used to be the only way to do certain reporting styles in VFP, as noted above: that has been greatly improved with the release of VFP9 and the ReportListener class.
Admin
Oh great - the screwtard that wrote "The Hotel Registration System From Hell" and "The Meterological Station In Hell" is still alive.
Biggest WTF: Note that the text boxes STILL HAVE DEFAULT NAMES >_>
Captcha: Paula - admittedly I'd rather be looking through her app than THIS. -.-
Admin
That's exactly the reason people use NoScript. You get the best of both sides: All of those sites whith I reqularly use, and which depend on Javascript, have Javascript enabled. All the others have it disabled.
Admin
From even just glancing at the screenshot, it is obvious that this was done in some subset of Visual Studio or .NET. First, all the controls appear to be Microsoft-standard. Second, one or more control names are clearly shown in Hungarian Notation, a standard Microsoft adopted some years ago, to their (and coders') detriment. And third, it was coded by an idiot, since he (probably a he) did not even get the Hungarian Notation right in some cases. Why use a standard -- especially an inconvenient and bizarre standard like H.N. -- if you are not going to REALLY follow it anyway???
All these things point to VS or .NET.
While I believe the above deduction is correct, You can also see my coding bias in the explanation. So be it.
Admin
Except that you didn't. If this is Windows XP (the context in which the question was originally asked), then you shoule be aware that this is not much of a hex editor.
Admin
OMG, the flashbacks :S
Admin
Admin
The dried frog pills. Ask the Bursar for some.
Admin
And why would hungarian notation be so bizarre? We use it as our standard at work, and after an initial adjustment period I have also started using it for personal projects. Nothing wrong with it as far as I can see.
Admin
For me, this is a classic WTF because it is impossible to understand the mind that would generate this. One can understand lack of knowledge, overlooking a mistake or blinkered point of view but one cannot understand why anyone would want to make their work so hard for no benefit. I've known people who generate work for themselves in pursuit of an unnecessary perfection but this is generating pain. Developing with overlapping controls is so painful that it takes force of will to not refactor it.
It has to be mental illness!
Admin
Arrrr! My eye! The eyepatch does nothing!
Admin
I have worked on a VB app that was similar to this. The program state was stored only in the UI controls, so the tab action was faked, with all the controls directly on the main form. Sort of a MVC without the MC.
Admin
Admin
This is exactly the reason why I spent 120 hours of personal time rewriting a dozen or so dialogs that did the same damn thing. There was a combo box on each whose selection determined which 50 of the 5000 fields on the dialog would be visible or hidden AND if the text in the static labels needed to change AND if the properties of each visible edit field needed to be updated. What a mess!
All rewritten with embedded child dialogs, one per state, that would be shown or hidden as the combo box changes. 100 times more resources to keep track of, but still a hell of a lot easier to modify and maintain later.
Admin
On a side note, why does the form have two close buttons? Does one close the form better than the other?
And on a totally unrelated sidenote, what happened to foosball girl? :)
Admin
That's why it's spelled "merciless."
Admin
Depends on whether you're talking about apps hungarian or systems hungarian.
Systems hungarian is just horrible. If you change the type of something from e.g. int to long you have to rename the variables. And it is easy to work out what type a variable is anyway so there's no need for it in the name.
Apps hungarian can actually be quite useful although it is safer to do it with different class types instead.
Admin
Delphi forms are stored in text as .DFM files - if you enable the option 'DFM as text' on your form (which you should be doing anyway). Then you can edit the properties at will. Also the cursor keys on the keyboard are available for 'precision' moving of controls, as is the location property.
Admin
Hungarian notation is not that bad here. Is a nice hint what object you are working. labelClient as .caption, and teditClient as text. Is wrong to try teditClient.caption := strClientName;
Of course, things can become ugly after changes... <nonsense> function addFloats( xReal,yReal: Integer): String;</nonsense> because the variables include the type on the name, if the type change, the code become really strange. :I
Admin
Arrr! Well, at least it do make ye look the part for Talk-Like-A-Pirate day, ye scurvy landlubber!
Admin
Oh yes it is. In fact, it's soooo hex that you have to enter ascii codes using ALT+numeric keypad.
Now that's old-school!
Admin
I suppose it could have been a slippery slope thing? Like maybe the app was completed without overlapping controls, and then the client changed the spec, adding a user mode requiring a form with the same 50 controls as the original, except one checkbox becomes a set of radio buttons. In that case, an overlapping control might be pretty tempting. And then when the completed app is handed to a summer intern for maintenance, he sees the overlapping control, assumes it's the corporate style, and adds a dozen more.
At least, I hope it happened like that. The alternative -- that someone prefers to work that way -- is pretty scary.
Admin
close() { ... }
almostSortOfClosed() { if (... }
Admin
Press tab until you find the right control. Change the properties. Done.
Admin
was confused myself ... tried it and now I see the resemblence!
Admin
(58% earn at least $50k/year)
WTF!!!!
Admin
I'm faced with this problem all the time on the system I work on. Of course I would have opened up a GUI-based text editor and clicked my way to the right file several minutes before my mouseless friends had finished messing around with their samba settings and correcting a typo in an arcane vim command for the fourth time.
And it's at these times that those of us fortunate enough to understand the pros and cons of a number of different operating systems have an advantage.
Admin
<OT>
As for that United.com thing:
Admin
Yeah, they couldn't see into the future enought to know that this was a bad idea.
Admin
Akamai is often used as a high-bandwidth high-reliability caching service. They have big pipes, big servers and a lot of traffic, so you offload part of your files there and your regular servers don't take as high of a beating, especially if you get huge traffic peaks.
Admin
He won't share :(
Admin
Why Tab your way through all those controls? After all you ALREADY have a multi-K Line Case statement that will alter the Controls properties... Why not modify the text inside that one also? Lets make this App a REAL nightmare to maintain ;)
Admin
This is a 'design time' screen shot of a VFP screen. Whilst they are there during design time - they surely are not there during run time (ya, I read what you've typed). I'm not that worried about this amount of stuff in the real estate - it makes it useful sometimes at design time - though not my way to instantiate things at run time (I'm a fan of using visual classes that are instantiated on forms at run time instead).
What DOES bother me is that the developers naming convention for the text boxes - why keep a numbering scheme? Time to see what the underying meta data looks like instead, and make it more meaningful (unless of course there's a slew o code that exists in a scan..endscan lopp construct that needs the field number order to match up with the visually displayed textboxes).
He'll have fun if he moves stuff off the page in that pageframe then try to move it back on the pageframe - it will become lost and not anymore a child of the parent container (again, in this case a page frame).
If Tom finds it too difficult to deal with - he can subcontract it out (to me perhaps?) -
Hoping this finds you well and well rested !!! Mondo Regards [Bill]
Admin
It's even worse. The data is stored in delimited format in a Memo field. Delimited with ^s if you are interested.
I know this because I wrote the code to read and write to the database.
I am, however, not responsible for this particular horror of a screen. Well, not directly anyway :)
(Waves hello to Tom)
Admin
It's VFP (Visual FoxPro) and yes you can select a control by name, but the names of the labels (judging by the idiocy of whichever moron created this monster) are probably left at Label1, Label2, ... Label324.
If this pays well, I'm willing to write a builder that'll repack these controls into a few overlapping containers - which'd be separate classes, ergo maintained separately - and show only one at a time. I'm a Fox guru, and still have some mortgage left. I reserve the right to hunt down and shoot the moron.
Admin
This looks like a really fun use of FoxPro ... what would this take in VB 6 or better yet .Net, java, or heck just about anything else. FoxPro to me is just about the worst place to put your UI. The controls are designed by idiots.
Admin
Jminkler, I think the moron who wrote this would be quite capable of writing the exact same crap in any GUI designer.