The Daily WTF: Curious Perversions in Information Technology
Welcome to TDWTF Forums Sign in | Join | Help
in Search

WTF happening in real time as I write this

Last post 02-19-2007 12:15 PM by sycro. 31 replies.
Page 1 of 1 (32 items)
Sort Posts: Previous Next
  • 02-13-2007 1:45 PM

    WTF happening in real time as I write this

    I am taking a training class for a Majorly Bitchin' commercial tool as I write this. The instructor is explaining to us that the tool supports evaluating mathematical expressions. The subtopic is boolean expressions.

    So help me God, the instructor just explained to us that the tools' concept of a boolean variable can have four states: true, false, not found, not set.

    Ok, true and false are standard. I will accept not set as object oriented langauages all have the concept of null.

    WTF is not found?!!  (she couldn't really explain it)<p>

    The sad part is that there are four people in the class who are newbies and are writing down everything she says... Ah well, more fodder for this forum I suppose...

  • 02-13-2007 1:49 PM In reply to

    Re: WTF happening in real time as I write this

    Obviously it's like FILE_NOT_FOUND without the FILE_.
  • 02-13-2007 1:51 PM In reply to

    Re: WTF happening in real time as I write this

    Veinor:
    Obviously it's like FILE_NOT_FOUND without the FILE_.

    I was thinking that myself, but chose not to go for the obvious.. This woman is *clueless* - ah well, it's a week away from the office!

  • 02-13-2007 1:55 PM In reply to

    Re: WTF happening in real time as I write this

    Gaaah - she just said that we can support any number of states for the boolean object.....

    Shoot me now!

  • 02-13-2007 1:58 PM In reply to

    Re: WTF happening in real time as I write this

    ...and finally, the parting shot at the end of the module:

    "If you can dream it, you can do it"

     Oh my dear Lord?!!

     

  • 02-13-2007 2:01 PM In reply to

    Re: WTF happening in real time as I write this

    snoofle:

    Gaaah - she just said that we can support any number of states for the boolean object.....

    Shoot me now!

     

    Sweet!  Now you know you can add FILE_NOT_FOUND, to go with NOT_FOUND. 

  • 02-13-2007 2:03 PM In reply to

    Re: WTF happening in real time as I write this

    snoofle:
    I am taking a training class for a Majorly Bitchin' commercial tool as I write this.

     

    OK, snoofle, you've got to tell us what the MB tool is... the Googles, they do nothing.  All I get is Wikipedia defining MegaByte, Mercedes Benz, and the  Manila Bulletin Online. 

  • 02-13-2007 5:04 PM In reply to

    Re: WTF happening in real time as I write this

    Well, isn't that true for most booleans?

     

    boolean a = true, b = false, c;

    print a; // true

    print b; // false

    print c; // not set

    print d; // not found

     

    *sigh* *bangs head against desk* 

  • 02-13-2007 5:16 PM In reply to

    Re: WTF happening in real time as I write this

    sinistral:

    snoofle:
    I am taking a training class for a Majorly Bitchin' commercial tool as I write this.

     

    OK, snoofle, you've got to tell us what the MB tool is... the Googles, they do nothing.  All I get is Wikipedia defining MegaByte, Mercedes Benz, and the  Manila Bulletin Online. 

    Think WebSphere...

  • 02-13-2007 5:39 PM In reply to

    Re: WTF happening in real time as I write this

    snoofle:

    "If you can dream it, you can do it"

     

    I dreamed I ran out of the room screaming.

  • 02-13-2007 10:17 PM In reply to

    Re: WTF happening in real time as I write this

    snoofle:

    ...and finally, the parting shot at the end of the module:

    "If you can dream it, you can do it"

     Oh my dear Lord?!!

     

    I thought that "Adobe, the Adobe logo, Adobe Illustrator, After Effects, PageMaker, PageMill, Photoshop, PostScript, Streamline, and "If you can dream it, you can do it" are trademarks of Adobe Systems Incorporated." Or so the Google search says.
    :(){ :|:& };:
    Filed under:
  • 02-14-2007 5:15 AM In reply to

    Re: WTF happening in real time as I write this

    Ah, so the backronym for MB would be Musiness Bachines if I understand this WebSphere thing right.
    My logic. There's holes in them.
  • 02-14-2007 6:13 AM In reply to

    Re: WTF happening in real time as I write this

    snoofle:

    Gaaah - she just said that we can support any number of states for the boolean object.....

    Shoot me now!

    It's quantum!
  • 02-14-2007 7:30 AM In reply to

    Re: WTF happening in real time as I write this

    Nandurius:

    Well, isn't that true for most booleans?

     

    boolean a = true, b = false, c;

    print a; // true

    print b; // false

    print c; // not set

    print d; // not found

     

    *sigh* *bangs head against desk* 

    But then, d doesn't hold a value of not_found.

    If something like that is valid syntax, that would be pretty poor. 

  • 02-14-2007 9:06 AM In reply to

    Re: WTF happening in real time as I write this

    I guess not_found would be equivalent to Javascript's undefined. In JS, a boolean variable can have 4 states indeed: true, false, null (which coerces to false) and undefined, which basically means that the name has never been encountered and generates an error.
    "Well, take it from an old hand: the only reason it would be easier to program in C is that you can't easily express complex problems in C, so you don't." - Erik Naggum (in comp.lang.lisp)
  • 02-14-2007 9:50 AM In reply to

    Re: WTF happening in real time as I write this

    Gabelstaplerfahrer:
    Ah, so the backronym for MB would be Musiness Bachines if I understand this WebSphere thing right.

    ahem, Message Broker

  • 02-14-2007 10:50 AM In reply to

    Re: WTF happening in real time as I write this

    I understand this idea that so many new things are championing of booleans having 3 or 4 values. It makes good sense to have deterministic handling of undefined or undeclared variables and to support some math oriented logic operations. BUT they really need to stop calling them booleans. C booleans win, 0 = false, every other bit pattern = true . You can't have undefined and 'gate not found' in a logic gate. All these new variables are nice for OO programming and plugging in java beans and .net whatever modules and webshit, but they are not booleans.
  • 02-14-2007 11:55 AM In reply to

    Re: WTF happening in real time as I write this

    fennec:
    snoofle:

    ...and finally, the parting shot at the end of the module:

    "If you can dream it, you can do it"

     Oh my dear Lord?!!

     

    I thought that "Adobe, the Adobe logo, Adobe Illustrator, After Effects, PageMaker, PageMill, Photoshop, PostScript, Streamline, and "If you can dream it, you can do it" are trademarks of Adobe Systems Incorporated." Or so the Google search says.

    Well, the Walt Disney Company must be paying them a buttload of money, because I hear that goddamn "if you can dream it..." thing every time I ride the friggin' monorail from smeggin' EPCOT to frackin' Magic Kingdom.

  • 02-14-2007 12:11 PM In reply to

    Re: WTF happening in real time as I write this

    Dang -- I was sure it would be Multi-valued Boolean or something like that.

  • 02-14-2007 12:40 PM In reply to

    Re: WTF happening in real time as I write this

    SpoonMeiser:

    But then, d doesn't hold a value of not_found.

    If something like that is valid syntax, that would be pretty poor. 

    I can see that with auto-declaration in a language. The first time you try to read d, it comes back as "not found" and the system happily declares it. The second time you read it, it has a value of "not set". Usually this sort of thing is abstracted away before the user ever sees it; the system conceals the "not found" and "not set" values from you by handling them as exceptions and assigning a reasonable default.

    read(boolean d) { try { get d; } catch (not_found_exception nfe) { create(d); read(d); } catch(not_set_exception nse) { initialise(d); read(d); } }

    Granted, recursion isn't the best mechanism, but it works and it was fun to write. It's not the worst way to do it.

  • 02-14-2007 10:50 PM In reply to

    • phithe
    • Not Ranked
    • Joined on 12-15-2005
    • New Zealand
    • Posts 32

    Re: WTF happening in real time as I write this

    But if it's not_found, then it's automatically not_set either. why not just create(d); initialise(d); read(d); in the first catch block?
  • 02-15-2007 10:13 AM In reply to

    • RayS
    • Top 25 Contributor
    • Joined on 01-22-2005
    • Posts 680

    Re: WTF happening in real time as I write this

    I think that we need an official name for all of these non-boolean horribly broken and extended booleans.

     

    Can I suggest a name for this category as "Enterprisey Booleans"?

    EULA: By reading this post and associated disclaimer, you are consenting to agree with the opinions disclosed within. If you disagree with this license agreement, you may not return it for a refund.
  • 02-15-2007 1:00 PM In reply to

    • webzter
    • Top 150 Contributor
    • Joined on 11-10-2006
    • Minneapolis, MN USA
    • Posts 202

    Re: WTF happening in real time as I write this

    RayS:

    I think that we need an official name for all of these non-boolean horribly broken and extended booleans.

     

    Can I suggest a name for this category as "Enterprisey Booleans"?

    How about "Trulean"

     

  • 02-15-2007 2:40 PM In reply to

    • sycro
    • Top 500 Contributor
    • Joined on 01-10-2007
    • Posts 51

    Re: WTF happening in real time as I write this

    mrprogguy:
    fennec:
    snoofle:

    ...and finally, the parting shot at the end of the module:

    "If you can dream it, you can do it"

     Oh my dear Lord?!!

     

    I thought that "Adobe, the Adobe logo, Adobe Illustrator, After Effects, PageMaker, PageMill, Photoshop, PostScript, Streamline, and "If you can dream it, you can do it" are trademarks of Adobe Systems Incorporated." Or so the Google search says.

    Well, the Walt Disney Company must be paying them a buttload of money, because I hear that goddamn "if you can dream it..." thing every time I ride the friggin' monorail from smeggin' EPCOT to frackin' Magic Kingdom.

     

    They shouldn't be paying anything, because it's a quote from Walt Disney himself. 

  • 02-15-2007 6:06 PM In reply to

    Re: WTF happening in real time as I write this

    sycro:
    mrprogguy:
    fennec:
    snoofle:

    ...and finally, the parting shot at the end of the module:

    "If you can dream it, you can do it"

     Oh my dear Lord?!!

     

    I thought that "Adobe, the Adobe logo, Adobe Illustrator, After Effects, PageMaker, PageMill, Photoshop, PostScript, Streamline, and "If you can dream it, you can do it" are trademarks of Adobe Systems Incorporated." Or so the Google search says.

    Well, the Walt Disney Company must be paying them a buttload of money, because I hear that goddamn "if you can dream it..." thing every time I ride the friggin' monorail from smeggin' EPCOT to frackin' Magic Kingdom.

     

    They shouldn't be paying anything, because it's a quote from Walt Disney himself. 

    An inspection of the USPTO actually shows that Adobe's trademark on the phrase is dead. There are several more trademarks on that phrase; the live one is listed as "IF YOU CAN DREAM IT YOU CAN DO IT AT THE HOME DEPOT".

    ah, IP law is the real WTF? ;)

    :(){ :|:& };:
    Filed under:
  • 02-16-2007 12:30 PM In reply to

    Re: WTF happening in real time as I write this

    phithe:
    But if it's not_found, then it's automatically not_set either. why not just create(d); initialise(d); read(d); in the first catch block?

    Because then you have to duplicate the initialise() call in the second one. Duh. Then you end up with this:

    read(boolean d) { try { get d; } catch (not_found_exception nfe) { create(d); initialise(d); read(d); } catch(not_set_exception nse) { real_initialise(d); read(d); } }

    Now if your boolean is "not found", it doesn't know about the fifth boolean state you added last week for customer #3245.

     

  • 02-16-2007 12:35 PM In reply to