Article View: adobe.scripting.indesign
Article #17881Re: VB question: type mismatch
From: Olav Kvern
Date: Sat, 10 May 2003 22:20
Date: Sat, 10 May 2003 22:20
15 lines
2210 bytes
2210 bytes
maxdunn wrote: "Are they also scared of Hungarian notation? I get sick of seeing "my" at the beginning of every variable name in examples, it seems redundant and silly (I'd prefer "o", "obj", "v", etc. if you're going to use the same prefix for everything). But perhaps the "my" prefix introduces the concept of a variable?" That was the idea. "v", "obj", etc. are a little obscure, but "my" seems more approachable. I also considered "happy," "friendly," "sleepy," "sneezy," and "doc."<g> I also prefer verbose variable/function names. That, in my opinion, obviates a certain amount of the need for Hungarian notation. If the variable name is "myTextFramePreferences," it's pretty clearly a text frame preferences object. I am out to (in a small way) demystify programming. Things like variable typing and Hungarian notation work fine for programmers, but they erect a barrier that keeps newbies out. My goal is to make every InDesign user into an InDesign scripter--and I can't do that if their eyes are glazed over. That said, I don't want to leave experienced programmers out in the cold. It's a tricky balancing act. Most of the new examples in the next version of the Scripting Guide will be either VBScript or VB.NET with Option Explicit turned on. I may even include a section on Hungarian notation. We'll see what I can get done between now and the time I have to hand the stuff off. Thanks, Ole
Technical Details
Message-ID:
<1de9125c.9@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de9125c.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,2e58c5c8e33c7ae1 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-05-10 15:37:48 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: VB question: type mismatch Message-ID: <1de9125c.9@WebX.la2eafNXanI> Date: Sat, 10 May 2003 15:20:17 -0700 References: <1de9125c.-1@WebX.la2eafNXanI> Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit