- 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
If it's a non IT professional it shouldn't be a WTF since it's a lack of formal knowledge / professional experience / training.
It should only be a WTF if it's one of us professional programmers (theoretically at any rate) since we should know better.
Most of the WTFs are professional programmer ones, not the ones who with no knowledge or background manage to put together an application that works.
And trust me I've seen a lot worse. That comment stating that it seemed obvious is as helpful as the following one I once found in some source code.
// don't remove this line because if you do everything breaks. i = 1;
Now that one to me was a WTF :D
Admin
Oh. I've used access a lot. Usually in a kind of reporting tool fashion, but also to write serious applications. And you can do it. Sure.
But it is a horror to keep every thing clean and especially documented. Since there is no layer between the database and the front end, you cannot really document the SQL's that go in the front end.
Furthermore, the Jet engine is not brilliant (although the SQL dialect is), so you need to use a actual RDBMS. Then you quickly run into performance problems, because MSAccess starts pulling whole tables in before joining and stuff. So you end up moving things to views on the server. Many views. Form specific views. Many many views. Which does not add to the maintainability.
And then you have the multidevelop setup. MSAccess is a binary, you cannot develop with more than one developer, you have to use the "plase import this and that" approach.
So, no, I do not like coding in MSA.
Admin
I suspect however that such a site would still not include any good Access code due to the open source bias of code samples on the web. In essence someone using Access will probably be in a commercial company so will not post their good code, whereas someone posting their non-work code will much more likely be using open source tools and therefore not Access.
Admin
I would love to see some really cool code in Access, but mostly it would be really cool because of the way it dodges and avoids Access's pitfalls. Like a champion ice skater negotiating an obstacle course.
http://www.thedailyrcc.com
Admin
Try Firebird (http://www.firebirdsql.org/). It has anything you may need to fit your "small needs". Avoid Access.
CAPTCHA : genitus
Admin
Don`t take it so seriously, its just a daily laugh in our own wonderous world of IT.
Admin
..agree, the tool itself shouldn't be blamed for worse programming skills. Microsoft Office seems to be easy to use, but the tool itselfs offers such a tremendous integration one can really get lost in the possibilities..
Admin
And that's exactly the way it should be. Good examples in the wild, bad examples end up here.
Admin
It also allows people who don't understand nerdy stuff like databases to develop databases quickly.
Admin
It's not the fact that you use ACCESS that is the problem. It's HOW you use access that is the problem. If a surgeon doesn't have the time or resources to give you a surgery you need do you go downtown hand a bum a machete and say "Let's do this?". No? Then don't do the same with software development.
Admin
I'm not picking on you in particular, but your post hi-lights why Access has such a bad reputation. You code everything in ADO. It's the same thing as a VB6 app. OK, if you think VB6 sucks, that's fine. However, don't slag on Access because you only know how to create queries using the gui and rely on Jet and bind them to a display object.
Admin
Well, I'll save corporate IT for a different WTF. (Luckily, our local IT department is very good, and discrete when it comes to necessary but not-officially-allowed software.)
But to reply to the "get out now" thoughts, I realized I should mention that I don't work for a programming outfit, and programming isn't my primary function here - so it's not realistic for us to have "real" tools, since my "system administrator" title is more honorary than real.
But, we have upgraded to SQL Server this year after someone's Access database melted down and killed six months worth of data. (I'd tell the story, but I was on leave when it happened, thank the Maker.) So our Access files are now mainly front-ends to a real database. Everyone is much happier now. :)
Admin
Some translations for you - Bijschrift = FootNote Kist = Box KnoppenLijst = Button list Kleuren = colours It is Dutch, by the way.
The WTF that I can see is that the author is setting what looks like a global boolean return variable called "gewijzigt" prior to leaving each sub. Having those subs as functions would go a long way to making this code a bit more "industrial strength"
Admin
Admin
Of course there are professional Access developers, just as there are also fly-by-nights, and just as there are also both types with other platforms.
Nothing wrong with a professional Access developer who does things in a professional manner. Even less wrong with an ethical Access developer who will honestly advise a customer if Access is not up to the job of meeting their requirements.
Whatever the reason may be, Access in particular seems to attract developers who are neither professional nor ethical. Not all of them, but certainly a lot more than a lot of other platforms.
Admin
Admin
Oh, no? REALLY? Do you speak from personal experience?
Admin
Okay...what about 'worse than failure' don't you understand?
By definition - the 'good' VB work won't be showcased here.
DUH?
On another note, VB is a pox on the world. It made it 'easy' for non programmers to lash together a bunch of objects in a very ugly way that was unmaintainable. Furthermore, IT was then made responsible for maintaining it in many cases. I have no sympathy...
Admin
You're obviously quite angry that your code did.
Admin
My rule of thumb is this: A good programmer could create an elegant app in Lego MindStorm. Bad programmers become platform snobs and one-trick ponies.
Admin
I guess it is a good thing that real DB platforms like DB2, SQL, Oracle, or MySQL all prevent you from building a data model that isn't normalized. Don't they?
I am betting that this guy actually thinks the business problems he is trying to solve is to use well formed XML, normalized databases and the "Proper" platform.
If you look around the table and don't see the WTF, you are the WTF.
Admin
If these people wouldn't write code consultants would be workless. If things would run smoothly we (the IT people) wouldn't have a job. If this world was perfect IT people wouldn't have a job at all. Sure, we complain. Man is made for complaining about current situations and how nice things could be. That is normal. Without that there wouldn't be progress. Only because we do NOT like current situations we try to improve them. Some don't like that. But still they install the laterst version of XYZ language just because it seems to be betrter than the preceeding one. And so on...
Admin
Ahhhh, assumptions. :-) B
ut I do know how to code ADO or DAO or all the other versions of the same that MS has made use happy with. The point is that if you strip the embedded SQL things from MSA, you better simply use VB, otherwise you'll only be battling the MSA system. But if you decide to not use MSA forms, you'll miss out on all the extra's that MSA gives you for a quick start.
But let's be honest (and I'm called "Mr MSAccess" in my company for a reason), MSA gives you a great start, things look great from day 1, you get a lot of free functionality, but when the project matures these things start to bite.
Assuming we're doing MSA and not VB, MSA misses a layer between the SQL and the form - and it's not filled by ADO or alike. You may manually fill up the GUI elements, but then things like date notation in international application become a real crime! When using the direct binding MSA solves this for you, but you pay a price.
Admin
Are you serious?
Maybe, just maybe, the reason VBA and Access pop up regularly is because there is more bad VBA code out there? As I understand it this site works by user submissions. As a C++ programmer I just don't often find DailyWTF worthy material, because a C++ coder wouldn't get hired if they wrote code like that.
It's nothing personal!
Admin
In case you didn't notice, this contribution isn't belittling Access or Access programmers in general. Just this particular example.
Admin
[/quote]
Yuck. I hate braces. Not to start a language war, but VB is a fine language to program in if you're not an idiot. It's simple to get started in, therefore idiots can write "code" in VB.
And I hate braces.[/quote]
I hate "dim", "then", "as" "on error" and the rest of the clutter.
Admin
Sheesh, a little sensitive aren't we ? (Some of my best friends are Access programmers.)
Admin
No, of course you don't hand the machete to a bum and ask him to slice you open. Neither do you hand the bum a scalpel, an oxygen mask, and a hypodermic full of morphine, and ask him to slice you open -- at best, he'll mainline the morphine before he gets around to making the incision.
Now. Would you hand the surgeon a machete, and ask him to slice you open?
That's kind of how real programmers view the prospect of using Access.
Admin
Famous last words.
Admin
its against our corporate policy to let users use access because it is absolutely terrible.
"And there are some Access programmers who are professional, who study best practices, proper design, indexing, naming conventions, how best to connect to back ends, and so on."
professional access programmers? thats a three-strike oxymoron if i ever heard one.
yes i am full of hate.
Admin
I will say this is correct.
We had a huge problem with the interchange of data between two multi-billion dollar companies concerning a multimillion (tens of millions actually) contract.
How'd we solve the problem? Access. I was extremely skeptical, having the common attitude about Access. However, we hired a great database guru who immediately recognized that what the two sides needed was a common platform that both could use, since neither was going to be successful in modifying their multi-million dollar respective systems to work with the other in anything less than several years. He created data standards, file formats, file naming conventions and reconciliation procedures.
With in a few short months we went from having a complete pile garbage that nobody could untangle to an efficient exchange of data.
I'm not saying the job couldn't have been done with other databases or that Access is a good solution to all problems. But, I'll never turn my nose up at it again until I really validated that it's not appropriate for the problem at hand.
Admin
I feel your pain.
There's such a massive prejudice out there that assumes that people only use "toys" like Access because they're stupid lusers who have terminal arse/elbow misidentification syndrome.
In my experience, in an enterprise environment there are four approaches to IT:
Buy something, then blindly hope it does a fraction of what the salesman says it can.
Ask the software house to build something. Then wait 6 months. Then experience the full horror of poorly executed local Javascript.
Ask one of your ops monkeys to hit the 'Record' button in Excel. They might even know how to hit Alt-F11 to mangle the auto-generated code mess.
Get a team together to build reasonable short-term solutions. In Access, even.
My job is the result of option 4. Having put up with Access for a couple of years, I can say that yes:
However:
But by far it's greatest redeeming feature is that, at the end of the day, it ends up being just a document. Nothing to install, no big corporate boxes to tick.
Our group championed the controls that we currently observe. Coding standards, version control, documentation and requirements gathering all go to ensure that work gets delivered on time, on budget and fully functional. Even if it is Access.
Admin
Not saying that Access wouldn't work for a couple of multi-million companies who are both insane enough to base their data storage in Access, but it doesn't look like an optimal solution to me.
Oops. Just to make it clear.
<sarcasm>Comma-separated variables.</sarcasm>
Admin
AMerrickanGirl said: "What other tool would you suggest the users have at their disposal?"
SQLite. Done!
Admin
I dont think that even comments would help in this situation
Admin
Uh, why exactly would /good/ code end up on the Daily WTF?
Admin
Admin
And, of course, there are wankers like you....