• (unregistered)

    And now, a koan:

    A master and his student sat in front of a computer. "Master" said the student, "I have created this object from Nothing. Does this show that all things are Nothing?"

    The master typed some code and said "Now student, the object is as Nothing." The student understood.

    - Mark

  • (cs) in reply to

    Anonymous:
    And you have to check if ief is Nothing before setting it to Nothing because it is bad programming practice to set a variable to Nothing unnecessarily if it is already Nothing.

     

    Huh?  Why?

  • GrouchyAdmin (unregistered)

    Ok, so I haven't touched VB, ever, and the last time I touched VC, MFCs were still 'a good idea'... but

    If Not (ief) Then Set ief = New EVTLOGLib.EvtLogObj Set ietf = NOTHING EndIf

    Or in any basic ternary operator capable language:

    ietf = (!ietf) ? ((New EVTLOGLib.EvtLogObj) && NOTHING) : NOTHING;

    No?

Leave a comment on “Zen and the Art of Programming”

Log In or post as a guest

Replying to comment #:

« Return to Article