• (cs) in reply to Flash
    Flash:
    LightStyx:
    TheDailyWTF better start securing its code a little better than *wink*

    I agree...and FTFY.

    You are right about changing the it's to its (common mistake), but how is changing then to than correct?

    The wink aka ;)

  • (cs)
    ' If you do something more than once, put it in a function here.
    This was simply a typo in the file header. It should have read
    ' If you put something in a function here, do it more than once.
  • it only required a little thought (unregistered) in reply to SR
    SR:
    zzFirst

    Shouldn't that have been zzTop?

  • (cs) in reply to Sanity
    Sanity:
    Can anyone explain to me where "on error resume next" would EVER be a good idea?
    I seem to remember once there was some VB function that always worked, but always threw a spurious error. Rather than having error handling that picked through for the 'real' errors, we just ignored that, and relied on the next step to tell us if it had worked or not. Can't remember what function it was though, sorry.
  • (cs) in reply to vr602
    vr602:
    Sanity:
    Can anyone explain to me where "on error resume next" would EVER be a good idea?
    I seem to remember once there was some VB function that always worked, but always threw a spurious error. Rather than having error handling that picked through for the 'real' errors, we just ignored that, and relied on the next step to tell us if it had worked or not. Can't remember what function it was though, sorry.
    Ummm ... I don't think that makes it a good idea.

    A useful idea, though; yes, I'll give you that.

  • monkeyPushButton (unregistered) in reply to Matt
    Matt:
    ABSOLUTELY, couldn't agree more. This is one of the biggest reasons provoking me to hari kari every day. I keep a 4 inch blade in my desk just in case.
    If you're committing hara-kiri every day, you're doing it wrong.
  • Frank (unregistered)

    RE: ZZ-Top

    There's three guys in the band. The two guitarists with the long beards, and the drummer who only sports a 70's porn star mustache.

    The drummer's name? Frank Beard

  • Val (unregistered) in reply to Anon
    Anon:
    I love that MonthName and GetMonthName are identical, even down to the commented out line, which suggests that somebody saw the first function that did exactly what they wanted and decided to copy/paste the function and give it a new name. Clearly they don't understand the purpose of functions.

    Hey, it makes perfect sense! What if the application needed to display the date on more places, not just one? So it's logical that we need another function because the first one is already used up! You have clearly forgotten tho take in consideration this situation.

  • (cs) in reply to Val
    Val:
    Hey, it makes perfect sense! What if the application needed to display the date on more places, not just one? So it's logical that we need another function because the first one is already used up! You have clearly forgotten tho take in consideration this situation.
    Thanks for reading the very next post after the one you quoted.
  • Ryan (unregistered) in reply to SR

    Shouldn't that have been zzTop?

Leave a comment on “zzGeneralFunctions”

Log In or post as a guest

Replying to comment #:

« Return to Article