- 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 nominate this article for the "worst pun in a title" award.
Admin
Don't you mean Seth?
Admin
Maybe Gabe misheard somebody talking about ExcEmEl as a proven configuration technology...
Admin
Problems all around here.
Ugly-arse way of storing/processing config data notwithstanding...
The written instructions said to update the field with the new value. Nothing was mentioned regarding implied formatting. The user did a perfectly normal thing, didn't notice that the apostrophe showed up as part of the actual text, and saved it (can't really fault the user here).
The validation code didn't take this likely scenario into account (though the developers claim a macro update would solve this).
TRWTF is Gabe.
Admin
This all looks awfully familiar..
Admin
The .NET framework includes a multitude of possibilities for storing and retrieving configuration settings. Problem is, the .NET framework has only been around for a few years and is not yet mature enough to be trusted for mission-critical functionality. This is why I prefer to use Multiplan for DOS. With 26 years of service under its belt, you just can't get a better time-tested solution.
Anyway, time to update the address of our partner's billing web service...
[image]Admin
Sounds like Gabe is Canadian, eh?
Admin
It's stories like these that boost my morale at my current job.
Admin
This may be the first case using Access would be an improvement (marginal though it is).
Admin
Hi everyone. I have been gone a while because I have been in training, and what I was in training for would be perfect to solve this problem: Filemaker Pro.
There really isn't a problem that Filemaker can't solve better than Visual Basic OR any of the Office products that Microsoft has written.
In fact I am in the process of converting our main business application to use Filemaker Pro right now, based on my recommendation after coming back from training.
I just put all of our config information into Filemaker. Problem solved.
Admin
I agree. The real WTF is why anyone uses anything other than Filemaker for anything. It's the greatest.
Admin
so...already busy on writing the third installment of MFD?
Admin
Of course Filemaker Pro is great for the front end, but I would think you'd want something really robust like Access as the back end.
Admin
Clearly their problem is they allowed their dumb users to type in apostrophes. All they had to do was install a Win32 hook that would intercept keystrokes sent to Excel and swallow invalid key entries. I suspect the OCR code to detect if cursor's on a text field would've been pretty elegant.
Admin
Admin
I'm suprised that TC couldn't think of anything more original though ;)
Admin
TRWTF is that they didn't use Cardfile which is easier than Excel, more proven, and has source code available.
Admin
Since it appears that the customer is expected to edit configuration information in their application, I don't really see a huge problem with using Excel here. Most office workers are familiar with Excel and Word.
Many people know Access, but not quite as many as those that know Excel and Word. Even less know how to navigate a real database system.
Other options for customer editable config information include:
The only true WTF from the application in the article is the lack validation before injecting a user input string into an SQL statement. I'll even give them a pass on any SQL injection arguments since the config file isn't web facing.
Oh, and Gabe is an idiot.
Admin
Excel's VBA uses VB6 instead of VB.NET.
Admin
Or... you know, number 4: Make a settings dialog? Like normal apps?
Admin
I've missed you so much. The site isn't the same without you.
Captha: consequat - one of the lesser known citrus?
Admin
Admin
You're forgetting one other MAJOR alternative: Include a GUI in your application to let users alter configuration information. It's a standard part of any app, even web apps.
Admin
Yeah, I was going to suggest this exact thing. Settings dialogs in .NET take like 10 seconds to create :)
Admin
And to make them dynamic and editable, you can put the dialog's controls into an Excel spreadsheet...
Admin
That'd waste so much dev time, it's not worth it. Just tell them which code file to edit. If they can edit a text file they can edit code.
Admin
Isn't Filemaker Pro redundant???
Admin
Sorry JD, I really didn't read any of the comments before I posted. Didn't mean to step on your toes ;)
Admin
Yes, but the actual application was written in VB.NET, not the macros. Though why anyone would want to use VB.anything is a mystery to me. A text file and a shell script are a much more sensible solution for config files.
Admin
Didn't you learn anything from the article? PHBs don't understand sarcasm!
Seriously, FileMaker gives me nightmares. Among the more fun things I've seen:
But hey, at least it's better than Excel.
Admin
Elegant. He keeps using that word... I do not think it means what he thinks it means.
Admin
I've used filemaker pro on smaller projects for years. I've got a filemaker installation that's been running for 12 years and has never in all that time either crashed or gone wrong. It's noddy, but hell is it robust!
You see it's not the tool that's the problem, like excel in this WTF, excel is great. It's the application that the tool is used for that's the problem.
Admin
Excel, Filemaker, Access... Why don't they just hardcode the parameters into .exe, and use hex editor to change them? Saves a lot of time for developers. Even better, there is be a nonzero probability that when another excel expert types extra apostrophe in the hex editor, she would accidentally add new useful features to the program.
Admin
Your father's Microsoft Word. This is the weapon of a true programmer. Not as clumsy or random as Excel. An elegant solution, for a more civilized age.
Admin
Admin
Your application can read this text file and parse all the values; which can be easily edited by a human being with only (128) ASCII characters to worry about!
Admin
Um, to quote myself when I was about 13, "No shit, Shirlock"
Admin
Admin
No, you just missed the double insult of spelling Sherlock like Shirley, thereby calling him a girl as well. Yeah, that's it. That's the ticket.
Admin
I was just thinking about how great it would be if TopCod3r came back. And what do you know, he did!
Admin
I'm not so forgiving. Input is evil and should be treated with prejudice. It doesn't have to be intentionally malicious to be harmful: http://en.wikipedia.org/wiki/Hanlon's_razor .
Admin
We thought of this idea where I work... What we would do is create a database table for user settings, and the application would read those settings from the database. Now here is the novel part: we actually created a UI using standard, out of the box ASP.NET controls, and this UI would actually allow users to change the application settings from their own workstations!
We've already filed the patent application, so don't even try stealing it.
Admin
I know someone who would say all those great things about FileMaker Pro and mean them.
Admin
The return of Mr Facepalm
Swooooosh! ducks Spaceball One!
Admin
I always die a little inside upon reading a Featured Article. This time, I died a lot. Well done!
Admin
So basically you're referring to the entire /etc directory in Linux.
Admin
sigh
Would the real Top Cod3r PLEASE stand up?
Admin
Son? Is that you?
Admin
I fairly recently worked with a gentleman (no longer with the firm) who chose to use Microsoft Word as his preferred source code (ABEL PLD programming language, if you must know) editor. He had used text attributes (color, IIRC) to delineate comments, source lines and preprocessor directives.
He had also written a clever set of scripts to remove comment lines and convert to plaintext before running the code into the ABEL compiler.
His system only worked with a particular rev of Word, which he had on his personal Windows 2000 system (at home) and his rev-locked system at work (the IT folks loved him almost as much as I did).
The boss told me that I was taking over his code when he went on vacation. I think he knew what would happen. All the same, I made sure it was OK with him. Changed all the source .doc files to plain text and edited them with VIM. Since I never handed the files back to my co-worker, he never had any problem with my changes, either.
True story, I swear. The suggestion is still made (in jest) by some of the folks in the department, that we use Word to write the source code. I would never have believed it if I had not seen it myself.
Admin