Blog - Title

October, 2003

  • Fabulous Adventures In Coding

    Why Can't I Create The WScript Object?

    • 59 Comments
    Every now and then someone will ask me why the WSH shell object and the WSH network object are creatable from Visual Basic, but the actual root WScript object is not. I am always completely mystified by why people ask this! Why would you WANT to create the WScript object in a VB app?...
  • Fabulous Adventures In Coding

    Spot the Defect!

    • 17 Comments
    At Microsoft we have an internal email list called "Spot the Defect" -- people mail around buggy code they've discovered and we compete to see who can find the most problems with it. It's fun, and you learn a lot about what other people consider bugs -- everything from security holes to lying comments!...
  • Fabulous Adventures In Coding

    I can't make my script do nothing!

    • 5 Comments
    Yes, the title is grammatical. A few days ago I was discussing the semantics of data that isn't there. Today I want to talk a little about programs that do nothing. What do you do when you want a program to pause briefly, for whatever reason? ...
  • Fabulous Adventures In Coding

    Eric's Blog for January 279th, 2003

    • 11 Comments
    when I dissed the VBScript date format a few weeks ago, I never got around to dissing the similarly goofy JScript date code....
  • Fabulous Adventures In Coding

    Let's Get Explicit!

    • 2 Comments
    A reader asked me yesterday if there was a way to detect "at compile time" (ie, before the code runs) whether a JScript program contained misspelled variables. We catch bugs like missing braces and unterminated strings before the script even runs, so why can't we catch use of undeclared identifiers? Doesn't VBScript do that with Option Explicit? Actually, no, it doesn't. The reason is because of the way the browser name lookup rules work....
  • Fabulous Adventures In Coding

    For-in Revisited

    • 5 Comments
    A coworker asked me today whether there was any way to control the order in which the for-in loop enumerates the properties. He wanted to get the list in alphabetical order for some reason....
  • Fabulous Adventures In Coding

    A Little More on Nothing

    • 7 Comments
    VBScript has Null, Empty and Nothing. What about JScript? Unfortunately, JScript is a little screwed up here....
Page 2 of 2 (32 items) 12