• (disco) in reply to christop

    Yeah, I'd take Lisp over S-expressions-in-XML any day of the week.

    Filed under: Lisp is more readable than trying to code in XML...which should be a sign that code-in-XML is a bad idea

  • (disco)

    There's not enough XML. The regex should've been represented as an AST.

    <optional><ncgroup>0x</ncgroup></optional>
    <group>
        <class><range start="0" end="9"/><range start="a" end="f"/><range start="A" end="F"/></class>
        <class><range start="0" end="9"/><range start="a" end="f"/><range start="A" end="F"/></class>
    </group>
    <zeroormore><space/></zeroormore>
    <!-- ... -->
    
  • (disco)
    Gaska:
    Testing something only on basic stuff is **TERRIBLE** test. That's merely the first step.

    Then you increase complexity by adding vodka...

    FTFY

  • (disco) in reply to Gaska
    Gaska:
    Undefined behavior ahoy!

    Strictly speaking, yes, reading from a union member which was not the most recently one written to is UB in all flavors of ISO C.

    However, it is an extremely common idiom and is well-supported by all major compilers. As a practical matter, reading and writing to any member of a union, in any order, is acceptable practice. (source)

  • (disco) in reply to redwizard
    redwizard:
    FTFY
    You're speaking of unit testing, I'm speaking of evaluating software.
    Protoman:
    However, it is an extremely common idiom and is well-supported by all major compilers.
    As if I didn't know that.
  • (disco) in reply to Gaska

    Okay, so if Javascript was designed to manipulate data like XML in a browser, give me one good reason why Javascript can't / shouldn't be used to do the exact same task outside a browser. Or in any non-browser application which parses XML and needs a scripting language with which to manipulate it.

  • (disco) in reply to anotherusername
    anotherusername:
    give me one good reason why Javascript can't / shouldn't be used to do the exact same task outside a browser

    Node.js. I'm not sure if that's proof that you can, or proof that you shouldn't.

  • (disco)

    http://tvtropes.org/pmwiki/pmwiki.php/Series/Sherlock

  • (disco) in reply to Captain

    That show is a fair bit of brilliant; I recommend it to anyone ;)

  • Axel (unregistered)

    "...instead of vigorously nodding his head..."? I think you mean "shaking," there, sport. "Nodding" means "agreeing."

Leave a comment on “Once You Eliminate the Impossible…”

Log In or post as a guest

Replying to comment #:

« Return to Article