- 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
How about:
--> "F" - represents Fortunately True --> "T" - represents Terribly False.
Admin
"F"or Sure/"N"ever?
Admin
--> "F" - represents False --> "N" - represents Not False --> "FNF" - represents File Not Found
(Sorry, but someone had to do it)
Admin
Admin
But what did they do for FileNotFound?
Admin
AS/400s are actually kind of nice. They are pretty stable, we have a custom POS written in RPG. (I do C# stuff though)
Anyway, as for the article, shouldn't the fact that he didn't even look into the job offer before accepting TRWTF?
Admin
FTFY --> Kinda-sorta, yes and no, hard to say
Admin
how about
"Y" --> yes (true) "N" --> no (false) "M" --> maybe (FileNotFound)
Admin
This post returns N, for Not First.
Admin
I once worked with an in-house language which didn't have the ability to represent decimal points. So all such numbers were multiplied up by 100 or 10000 to retain the .00 or .0000 precision, then passed around/stored as needed, then divided back down for display.
Genius.
Admin
JT JF N
I trust someone else will provide the expansions.
Admin
How about W/WN for Why? / Why Not?
Admin
A lot of college grads take what they can get so they can start accruing experience. What did you expect him to ask, "How many different ways do you represent boolean logic in your program?" Even if he did ask, would he get an honest answer?
Admin
we also have a custom PoS written in RPG. I don't think PoS means the same to me as it does to you though :(
Admin
You mean like you do for dealing with currency? No, just normal practice.
Admin
ABAP (based on Cobol) still suffers from char-bool variables today, which are usually treated as if they were "checkboxes", i.e., "X" = true and " " = false.
Admin
Clearly, there's nothing else it couldn't mean. Er, I mean there doesn't exist something that is what it couldn't mean. Or, well, for everything that it couldn't be, it couldn't be something else. Amongst it possible possibilities, there is something that it could be that it couldn't be. Oh, bugger, I'll come in again.
Admin
"N"
Admin
This should be no problem for anyone who's familiar with the "Knights and Knaves" puzzles.
Admin
And here I was thinking it was going to be
--> "F" - represents Fuck yeah --> "N" - represents No
Admin
The Real WTF is he didn't ask questions about day to day operations and the languages he'd be working with.
I know the economy is bad - but it's better than going to the insane asylum after you go crazy working on that code.
Admin
At least it had a comment to clear up which value was "true" and which was "false".
Since the other examples followed the order of true/false (T/F, Y/N, 1/0), I assumed F/N was in the same order (F=true, N=false). Trying to write code to handle a potential false value of "F" and a potential true value of "F" would have been interesting.
Maybe it should have said N/F for, um... consistency...
Admin
Admin
My only comment is "yea, and....?"
So the newly minted comp-sci type encountered the real world.
How about a good story for a change?
-S
Admin
Ugh... losing... will... to live...
Admin
I still work for a company whose in-house language still does this very thing (except it's 10 and 100). Indeed, it's called "fixed point representation" and allows greater precision and works significantly faster than that new-fangled "floating point" rubbish.
CAPTCHA: sagaciter: someone who provides footnotes to the Icelandic Eddas?
Admin
How about, "What is CSIS, and what is VSAM?"
F: False N: Nuh-uh (the counter to Uh-huh)
Admin
TRWTF is not upgrading your system from an old, dead language. The stupid blokes around here are still using Java, for some arcane reason.
Admin
An RPG? Cool...
Customer> claim 10 Widgets Inventory Orc scowls, ready to attack. Customer> swing "AMEX of Purchasing" Inventory Orc parries with "Buckler of Security Code" Customer> swing "Dagger of Codes" You hit the Inventory Orc for (1d3): 3 points of damage! Inventory Orc is dead! Shipping Troll scowls, ready to attack...
Oh, sorry, you meant programmed IN RPG...
Admin
Still, if you'd like a "good" story, they could just make something up next time. I bet that sort of behavior would go over really well with this crowd.
Admin
Oh, you mean Role Playing Game. My first thought was Rocket Propelled Grenade. Of course we all know what POS stands for.
Admin
Ahem. 88 level.
Seems kids today can't be bothered to know what you're talking about before complaining about it.
Admin
False-True-False-Yes?
DaveE
Admin
Yes, but it has "88"s, which are a way of specifying values that satisfy boolean-type conditions, so they could have used code like: 01 INVALID-BATCH-OPERAND PIC X(1). 88 INVALID-BATCH-OPERAND-FALSE VALUES "F", "N", "0". 88 INVALID-BATCH-OPERAND-TRUE VALUES "T", "Y", "1".
(or something - it's a looooooong time since I used COBOL.)
Still funny though, especially with the double negative
Andrew (younger than COBOL, but older than CICS and VSAM)
Admin
Kidding, kidding...
Admin
I once got a ruddy good telling off for referring to an AS/400 as a "Mainframe". I was told, in no uncertain terms, that my life would soon be at risk unless I started using the term "Mid-Range Computer". Then I read this post. Now I don't know what to think.
Admin
Duh. That's called fixed point arithmetics. Back to school for you, lad !
Admin
Duh. That's called fixed point arithmetics. Back to school for you, lad !
Admin
Of course, this won't exactly work on the code in the story, since "N" stands for No sometimes, but Not False other times.
Admin
Admin
That's not a WTF. How else are you supposed to represent decimal numbers in a fixed-point representation?
Admin
I have to share the "saysTrue" and "saysFalse" methods we wrote, which translated the multifarious ways of expressing affirmation and negation that had evolved in our various assorted "boolean valued" system environment properties as defined in our database schemas.
They effectively boil down to:
saysTrue: if uppercase of the first character is T or Y, return True, otherwise (which includes null or empty string) return False.
saysFalse: if uppercase of the first character is F or N, return True, otherwise (which includes null or empty string) return False.
Yes, the latter method gives the expected answer to "Does this string represent False or No?"
Well it works for us, and saves a lot of repetitive mucking about.
Admin
That is what I was thinking
modern COBOL does have boolean values, but it works very differently 05 some-flag pic x(01) value spaces. 88 true-value value 'x'.
set true-value to true . . some code . if true-value do something end-if
there is no representation of false, there is only a true
Anyway TRWTF is running COBOL on an AS400, it is usually a RPG machine.
The other RWTF (TORWTF??) is calling an AS400 a mainframe.
I will neither confirm nor deny any knowledge of RPG
Admin
Beat me to it. That's some horrible COBOL code but it's the programmer's fault, not the language's. Also, doubt he was working on an AS400. CICS and VSAM are S390 technologies. Maybe they were running zOS on it. Sick bunnies.
Also, some people run redundant systems in redundant data centres and do clever data sync'ing between them but intelligent people just run AS400s.
Admin
Admin
My first thought too. Must be something to do with the mood I'm in on a Monday morning. Sounds like it'd be a good idea to RPG this system.
Admin
Admin
Not a dead language, it is still probably the most important language around (it is what generates my paychecks, and probably yours also).
Admin
CICS is the same age as Unix.
Admin