- 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
Admin
Admin
Sounds like a previous project.. A 'handy utility' made by some guy at the customer who hadn't any affinity with software development but could 'do' some VBA (because he knows Excel). Of course this 'handy utility' grew larger and larger and became a 'mission critical' application and also very unmaintanable and with a lot of bugs. Then they hired us (the professional IT company) ) to fix them.. At that time when i was literally plowing through all the shit, I was seriously thinking of a career change
Admin
Admin
It's full of dots!
Admin
One of the best WTFs in a while. A story well told.
Admin
What do you do now?
Admin
TRWTF is Jason. First words out of his mouth should have been, "Hello. What do you mean by 'crashing'? What is the error message? And what were you doing?"
Admin
Quickly retrieve arms from database.
Admin
I didn't have time to read all the comments, but the dots should have spelled out SOS in Morse code...
Admin
VBA on Windows For Embedded Systems has some missing functionality, like no file system. They have to use serial port scanners and wooden tables to get by. Give them a break.
Admin
Give the VB programmers one unit of credit for reinventing Emacs's file local variables.
Emacs Manual
Admin
Quick and Dirty Fix: Add an extra line of code to make the aforementioned dots white.
Admin
Time to look at DITA. http://www.ibm.com/developerworks/xml/library/x-dita1/
========== Dorothy loved to dance. She like to dance a lot. To accordion and tuba accompaniment she'd move, so we called her Polka Dot.
Admin
Admin
Admin
Seconded. Or perhaps it's more appropriate to 'Frist' it on this site. Anyhow, while I agree that this is definitely an instant classic for TDWTF, I give a lot of credit to Remy for a brilliantly (also 'brillantly') written retelling. Keep 'em coming!
Admin
Admin
VBA in a WTF? Come on, that's not even fair. It's like laughing at a retarded kid.
Admin
That is why I make my with a white font...
Admin
That's Me.sue in VB, braces boy.
Admin
Well played, sir.
Admin
Admin
Obligatory xkcd reference: http://www.xkcd.com/725/
Admin
As XKCDs go, that one is far, far from obligatory.
Admin
Macro administrator, micro brain.
This comment will not appear on Sundays.
Admin
Well, thanks! Glad people liked.
Admin
if (UCase(strTempString) like "[A-Z]" ) or (strTempString like "[0-9]") THEN ...
(I write VB, not C - sue someone else!)
Captch: valetudo - Car park valet with an attitude.
Admin
Admin
Gosh I miss the good old days when computers were made for smart people.
Admin
Where are you supposed to stash your stuff anyway?
Admin
Whoa. You must know kung fu.
Admin
Any chance that the numbers would spell "pink unicorn"?
Admin
You know.... as much as it pains me to say this... I actually like writing VBA macros. No, don't stab yourself in the eye, quick trying to throw up, and hear me out.
Let's say you have a repetitive task in some Office application, at some company which makes Office 2003 mandatory. You can either do the repetitive task over and over and over again, or you can write a simple macro which is to do said task easily and quickly.
Eg 1: Analyzing data in an excel sheet to look for particular entries, highlighting them, and copying these data rows into another excel sheet, printing both the original and the exception report to a single PDF, sending the information off to the appropriate recipient based on information in the first sheet? Lengthy macro (Which should probably have been a standalone program).
Eg 2: Apply conditional formatting of various rows / columns based on the value in a particular cell, to ensure it stands out? Quick macro.
Eg 3: "clean out" various static data in an excel sheet, leaving surrounding formulas / formatting intact, and entering some data based on current date / time / location / system information? Quick macro.
Eg 4: Highlight group of cells, run macro to alternate colours every 5 rows in that cell range, and make certain values / empty cells black... Quick macro.
These are not huge programs. These are not even programs - they are scripts, or scriptlets... Repetitive tasks which are used on a regular basis, and by using a macro save time. They are not "mission critical" scripts - they save me time.
The first example is the only script which I wrote (took about half an hour) which should have been a standalone program.... However, this was quick, simple, and saved the payroll person roughly 50 minutes a day (couldn't be fully automated - manual process was required for certain information). These were not "huge" programs... They were simple, time-saving programs.
VBA isn't fantastic.... But it does the job, based on what the job is. The average person uses it to apply simple formatting, or do simple tasks - this is what it should have been designed for. Modern mission-critical applications made out of VBA? No. Much like Access, most of these start as something handy for one person, someone sees it wants a copy of it, a department starts using it, marketing sees it and wants it to be standard across the company, and it blossoms into a nightmare.
Don't hate what it can do.... hate what people are doing with it.
Admin
My jaw is on the floor. By far one of the best WTFs on this site in a long time.
Dots. Holy Sh*t.
Admin
Remy,
Very nice article. I really liked your writing in this and have noticed a great improvement over earlier articles.
Keep up the good work!
Love Knuckle
Admin
...Bowytz? Is that you? New alias to see if we'll notice the writing "style"?
Admin
Sorry. Next time I'll prepare an easy-reader version for you.
"See Jason. See Jason debug. Debug, Jason, debug! This code is very bad code. Jason doesn't like bad code. See Jason frown at the bad code."
//I honestly know nothing about the missing comments.
Admin
You have to have a strong VISIOn for the company and the ability to see ONE NOTE from start to finish along our INFOrmation PATHway.
Nulla - The variable... it's-a null-a!
Admin
The real WTF is that he didn't set the font color to white.
Admin
I've got a simple solution to this problem, and it doesn't involve macros.
Admin
Admin
There is no dot.
Admin
I'm going to chime in with my praise for this WTF. The style of writing, the dodgy code asides, the overall humour, and of course, one of the actual best WTFs I have read. Super. golf clap
Admin
I actually like hearing these words in an interview, because I know can handle the platform and am willing to, and I'm going to get the job and make the money because everyone else will run away screaming.
I actually like using VBA
Admin
I believe it's even worse. That particular primate IS the offspring of the programmer of the Bally Astrocade BASIC Interpreter: http://en.wikipedia.org/wiki/Bally_Astrocade#BASIC
On the second thought - no. The interpreter is a brilliant hack, while the dot trick is utterly gaga.
Admin
Does it involve robots? I like robots.
Admin
Ok, I'll admit it. I write VBA code. Mostly Access (I was responsible for a bunch of databases in my previous jobs) and a few Excel and Word macros.
However, I've also studied programming and use best practices in these applications. Nobody gets woken up in the middle of the night because my apps bombed out.
The point is that any tool is going to fail in the hands of an incompetent operator.
Unfortunately VBA is too easily used by untrained people, but there are plenty of apps out there written in VBA and VB that are well designed and as efficient and error-free as the language will permit.
But those aren't the ones who make it to the Daily WTF.
Admin
I'm sorry if someone else has pointed this out (too lazy to read through all the comments)
This happens [del]more[/del] most often in VB, and the reason is that the Macro system in MS stuff allows idiots who barely know how to turn on a computer pretend (for a day) that they are the world's greatest programmer....
Sure, you could do this in other languages, but for some reason we don't see things like this very often in other languages. You do the Math....
Admin
TRWTF is definitely companies who are willing to rely on systems built by amateurs - who merely did the best they could with the knowledge and tools they had available to them - instead of investing in some expert employees and the right platform for the job. (I say this as someone who has written his share of VBA monstrosities without enough training or knowledge - and handed them off to baffled coworkers who couldn't maintain them. Yeah, it was a bad idea for the company to permit me to do that.)
But the dots idea still really sucks. Wow.