- 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
What are the acceptable values for this comment field?
Admin
Frist maybe? Pperhaps it used to contain text such as 1st, 2nd 3rd etc.
Admin
Gasp. Redundancy is redundant. How very lame. And not at all WTFish. How very lame. Gasp. Lame.
Admin
This is merely a Why-the-F?
It's not wrong, foolish or dangerous; merely a waste of the devs precious hours on Gods Earth.
Which you have compounded by posting it on the inter-webs; and I have heaped waste on by commenting...
Oh the humanity !
Admin
'dob_dd' for Date Of Birth Drop Down? List of titles/values looks like it would be used to populate a drop down field.
Don't know whether or not that's good practice in an excel spreadsheet, but doesn't seem like such a WTF if this is the case..
Admin
I guess it's possible that the sheets were spit out of some automated process that didn't differentiate between the useful and the not-useful.
I guess someone should have looked over them and sense-checked them but including everything is probably better than losing something important...
Not exactly a WTF...
Admin
Admin
Obligatory: what happens in this system if I would, say, select 31st of February as my DoB?
Admin
Admin
I choose to believe this was spite documentation, in response to some process monkey making a big stink about the docs not being detailed enough.
"This 'cusip' filed. How am I supposed to know what that is?" "Well, it's a standard term in the industry we're building this for. I'm pretty sure our users..." "We have to document everything!" "Really. Everything?" "Yes, everything!" "Ugh, ok fine. Here you go. Documentation for everything."
Theory B could be if the documentation is auto-generated by the same tool that auto-generates the UI.
Admin
Admin
TRWTF is the black-on-dark-blue color schema. But at least it makes the text hard enough to read that I can't be sure whether it's comic sans or not.
Admin
TRWTF is Comic Sans
Admin
This could easily be used for data validation if you wanted to test with real data (e.g. drop down containing values).
No WTF. Not even a little
Admin
This. Oh and the choice of background colour.
Admin
It could be that one of the purposes of the table is to support automatic GUI control generation. This becomes a drop-down list with only the named values, and there is a label for each such value.
It's a worthy exhibit for the Museum of Re-Invented Wheels, but otherwise it is unremarkable.
Admin
Where I Ryan, I'd be checking into that, expecting the worst.
Admin
Only half a WTF... Sure, this excel sheet is not exactly helpful. But defining allowed values is generally not a bad idea, and being tasked to do that, it might be a lot quicker to just add this crappy sheet than start re-negotiating the requirements with superiors to be allowed to put in a text instead.
Admin
For an API you wouldn't use the term "input field". For a website however you would (ok, you might call a form on a website an API if you were scraping the results).
So I assume the "acceptable values" represent the subset of N that may be entered as date of birth in a form on a website.
What the website does in terms of input validation is an altogether different matter. Facebook falls back to the last day in february of the year if you enter 31 as dob_dd and then enter february as the month.
In a similar situation other websites throw away both day and month.
Should Ryan check? No, not really. Should Ryan ensure his data does not feed February 31st to that "API"? Definitely.
But he should do that because one never should "trust" an API to correctly deal with incorrect data when one can avoid feeding incorrect data to the API in the first place.
Admin
Surely the proper implementation for an enterprise solution: Prevents the users from not knowing what values are expected in this field and allows future changes to take place easily. Imagine having to change all those range tests when here we can simply remove a few rows if, say the 15th of the month were to be dropped from all months.
Admin
I'm pretty sure TRWTF here is the reason why this was created.
There's a lot of really crappy code posted on this site. It's not that much of a stretch to believe that some dev out there complained about this at some point. We've all been there. "This isn't complete" then you get the details and it's something asinine like this.
Admin
this remind me of a project manager who taught us db design. always leave extra columns in table. call them extra1, extra2, extra3. then when we need them we can rename them. for added amusing value, call them extratext1, extraint1, extracdec1, extradate1.
Admin
Christ, what an asshole.
Admin
the real wtf is that there is no handling of months with < 31 days
Admin
Admin
This is just a screenshot of an Excel spreadsheet pretending to be documentation. How should that spreadsheet "handle" months with < 31 days? It doesn't even know the concept of "month".
And we have no knowledge of the system receiving dob_dd and what that system does with it.
Admin
Admin
Admin
Color with a U (and no K) is TRWTF.
Admin
Admin
Admin
If any of you knew what you were doing, you would recognize this instantly. For automated code testing tools, it is necessary to have as input a table of all possible good values.
What is not shown is the equally necessary table of all possible invalid values, which you use to verify the software will not accept any of them. Perhaps there is a size limitation for articles on this lame site?
Admin
Are you intentionally being thick?
Admin
Surely the proper implementation for an enterprise solution: Prevents the users from not knowing what values are expected in this field and allows future changes to take place easily. Imagine having to change all those range tests when here we can simply remove a few rows if, say the 15th of the month were to be dropped from all months.
Admin
I am no web developer, but won't the drop down thing being this way might help in Internationalization (different scripts write numerals differently) in that the title is different when requested language is different and the automated documentation generation tool that generated this doc simply put the values in title according the language settings of the developer?
Admin
There is no excuse for programmers like this. Flog them at an early age, so they don't do silly things like this.
Admin
What's wrong with this?
It's easier and faster in a document to use boiler plate to write the document if possible. Not doing what the author of the document did could only result in a peer review comment and have INCREASED potential for confusion.
Possible peer review comment: "Why is this page of the document formatted differently than the other 100 pages?"
For this to be a WTF in the submitters opinion shows me that the submitter probably is fresh out of school or possibly doing an internship.
Admin
I should add that the only thing that cost the submitters company more money is the time the submitter spent on the clock submitting this. So maybe I am in error and the original author inadvertently wasted company time and money.
Admin
The values with the leading-zero are in the "dob_d" sheet.
Admin
Maybe they have a generic function for presenting the date, which includes possibilities for presenting the date in ordinal (1st, 2nd, 3rd) and also as numerals (1, 2, 3...) and even perhaps in Roman (I, II, III, IV ...) In order to make the code compact, the name of the table is determined by some fancy conditionals (fancy, that is, to the proto-programmer who vomited this stuff).
Admin
My suspicion: that's not documentation. That's source code.
Admin
Admin
Has this been tested or you just decided to prove how clever you are?
Admin
Would the list of acceptable inputs for last name contain every last name on the planet including all variations in spelling?
Admin
Admin
Weak ass WTF.
I can tell you exactly what happened. Someone was tasked with documenting all valid input ranges, and instead of wasting time arguing against it, took the 30 seconds necessary to provide this information in the accepted format.
Kind of silly that it happened at all, but not at all a WTF.
Admin
Just recently had to look at RFC 822 and the definition of base-64 encoding, and they do enumerate all 65 characters that have meaning in base-64 encoded text, which are A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 + / and =. So there is precedent for that kind of thing.
And here are the legal single character time zones for dates in RFC 822 (read carefully): A B C D E F G H I K L M N O P Q R S T U V W X Y Z. All 25 of them. Not 26 :-)
Admin
Oh come on, the authors just made sure that the time zones could be used with the playfair cipher :-)
Yours Yazeran.
Plan: To go to Mars one day with a hammer
Admin
Bolour?!
(wv: persto, interj. bheold! Synonym: viola)
Admin
I had this discussion once:
Me: What's the range of values for this 'integer' parameter?
Him: It's infinite. Me: Really? If you took every single bit of memory in this computer and constructed an integer value with that many bits, the answer would still be -finite and bounded.- Him: But integers are infinite! Me: Not when they're represented in the physical memory of a computer. And when an integer value is passed as a parameter to some function, it's a lot more finite than that.