- 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 was about to ask :-(
Admin
Why do you need graphs? Why not just say something simple like "Each time it looks at one of the items, it's comparing it to every other item. Now, if there's a thousand items, that's almost one million comparisons." - I mean, using jargon at first is understandable if she's supposedly a "techie", but when you get a blank stare, it's time to start dumbing things down, not throwing a bewildering array of unnecessary graphs at her to make it look even MORE obscure and complicated.
Admin
Admin
I looked up 1st normal form - http://en.wikipedia.org/wiki/First_normal_form claims that "Every row-and-column intersection contains exactly one value from the applicable domain" implies no nulls. What if null is a part of the applicable domain?
Admin
Null is not a value, so the row-and-column intersection would not have a "one value" if there were a Null marker stored there.
An empty set, however, is a value. Is this what you had in mind?
Admin
Let's just assume that making too many assumptions can be dangerous.
Captcha: ninjas - Ha! I bet you didn't take the ninjas into account either!
Admin
Now, seriously. I'm not talking about using Excel as a database. I'm talking about using Excel as a GUI front end. Execution environment for VBA script if you'd like. The perfect data grid.
So, what's wrong with a VBA application running in Excel that uses ADO to load the data from the database? And yes, when it saves the data back, it opens a transaction, saves the data and commits the transaction. What's wrong with that?
PS Did you ever program in Excel or VBA? I deeply dislike both, but I know that they do work.
Admin
Once again, Excel only plays a role of immensely powerful data grid here. It is the VBA application that drives the data exchange. So, if you use transactions (via ADO) and the DB has appropriate constraints it will remain in the coherent state. If you don't, it doesn't matter if you use Excel, you can mess it up the same way with C# / Java.
Admin
My boss pays me to think Excel is a database. T_T
Seriously.. they don't care about implementation details. They just know there are numbers in their Excel and they want everyone else to be able to use their numbers. If it's on a computer and it has numbers, it must be a database.
I still remember that time I saved him all that typing by incrementing an entire column on numbers with my tricky computer voodoo. I really shouldn't have let him know I could do that, but I felt so helpless watching him manually punch each number into the calculator and re-type the cell.
Admin
This is cool. rotfl. here's something also very painful:
[image]Admin
And we all know that folks with Comp Sci degrees never make that kind of mistake...
Admin
Ouch. That reminds me of when I was repurposing a template based data driven web application recently. I had entered in the production data to drive the template (just 20 questions), and realized I didn't have a 'remove row from the table' feature. (The original user never made mistakes, it seems.)
Should I test the remove row feature before deploying it and using it? Nah, how hard is it to remove a row..
sure enough, it deleted all 20 rows. Not a huge loss, but still sad.
Admin
Stas: "Please re-read my original post :). And I thought I stressed "when done right" part strong enough."
I was unfair. I guess I overlooked that part, but I read your post and assumed you just implemented the exact same idea but with Wizards(TM). That's what riled me up enough to reply in the first place. I'm sure it can be done well, with concurrency manageable if you skip step 3 (or all) of the original plan - the delete the database once it's loaded crazy bit. Of course you can import/export excel to any DB using scripting if you do it right, just seriously what this guy did was wrong in so many ways, it broke concurrency with 2 users.
Admin
Agreed, the implementation described in the article is a WTF. And it would be a WTF even if one would replace Excel with Java/C#/C++/Python... Thanks!
Admin
And by "obscure" graphs you're referring to an X^2 graph of exponential growth? Any idiot can understand that.
Admin
I do that for a living. ADO supports transactions. Hell, it even supports asynchronous query execution. Yes, Excel itself doesn't support transactions, but Excel implements COM and VBA uses COM very well. So by transitivity, Excel supports some decent DB functionality when it's your only choice.
Admin
Bug-fix: ignore negative balances ;-)
Admin
Admin
Because "Hebrew She-Males" is more politic than "Hebrew Jews"?