View Poll Results: Do you agree with me?

Voters
26. You may not vote on this poll
  • Completely. People who do these things should be shot.

    5 19.23%
  • For the most part, but don't be too nitpicky

    11 42.31%
  • Only a few of them. You're being too stringent

    3 11.54%
  • Are you crazy? Only one or two of them actually makes sense!

    0 0%
  • I do all 15 things on a regular basis, and tell others to copy me

    7 26.92%
Results 1 to 36 of 36

Thread: Pet Peeves Version 2.0

  1. #1

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935

    Pet Peeves Version 2.0

    My VB pet peeves:

    1. Using SendKeys. Usually there is a better way.
    2. Using OLE. It just slows down your app and makes it chunky.
    3. Calling everything Form1, CommonDialog1, Winsock1, Text1, etc. Get a clue!
    4. Using deprecated methods. If global is deprecated, don't use it. If an API call is deprecated, don't use it.
    5. For all languages: not using consistant naming conventions. Constants should be in ALL_CAPS_WITH_UNDERSCORES_AS_DELIMITERS for every language (or at least C, C++, Java, Basic, QBasic, Visual C++, and Visual Basic.)
    6. No comments. At all.
    7. Using an excessive amount of color in a program. Not only does it look amateur, but color-blind people might miss the point.
    8. Speeling wrng n a proggie. It makes you look stupid. (But I probably spelled something wrong in here )
    9. Not bothering to look in the help or (with VB5 but not 6, I think) the Books Online. Asking how to use a command on the forum is stupid if the syntax and examples are right there in the help.
    10. Using variants. At all. They are slow, can cause conversion (is it a string or a number?) problems, and are native to Visual Basic.
    11. Not completely testing your program before releasing it into the public. As the programmer, you know how to use your own proggie. The user may not.
    12. Similarly, no documentation. Microsoft is famous for it. You don't have to be.
    13. Not using control arrays. txtEntry1, txtEntry2, txtEntry3, and code for each one could be replaced with For i = 0 to txtEntry.Count - 1 and then the code.
    14. No encapsulation. Don't chuck all your code in one module! Networking code should go in one module, UI code should go in another, other code should go in another.
    15. For all languages: Not using arrays, similar to 13. Instead of having Strings called Card1, Card2, Card3, just make a freaking array!

    Any comments? Please vote in the poll!

    Also post any feedback and your pet peeves!
    Last edited by filburt1; Jul 19th, 2001 at 09:23 AM.

  2. #2

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    Anyone!

  3. #3
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Hi Flobbert
    I will answer u
    1. SendKeys is OK in simple cases and within the same program. I have seen this argument described well in VBPJ where the short answer was that if a simple sendkeys saves u 5 billion lines of code with api's etc then use it.
    2. Again, that depends. I dont use it personally but am sure it is integral to some applications.
    3. Agree
    4. Hate that word deprecated
    5. Partly agree. U can use ur own standard but whatever u use stick to it. I use 'l' for in sub variables, 'f' for form, 'm' for module etc then 3 letters for type eg 'int', 'sng' then descriptive name eg lintCounter. Caps inside the name make it easy to check u have typed correctly as u go becos VB will change name accordingly.
    6. Agree but dont go crazy eg a=a+1 'adds 1 to a
    7. Agree. Some ppl design in the dark i think
    8. Agree again
    9. Agree but it gives u the chance to yell at ppl doesnt it Flobbert?
    10. Partly agree. Sometimes u need variants for ParamArray etc. Also some ppl unknowingly declare variants using Dim a,b as Integer
    11. Agree.
    12. Agree but unfortunately the mental type that makes u a good programmer usually makes u a lame documenter.
    13. Agree.
    14. Agree. Thats not strictly what encapsulation means but i get ur point.
    15. Agree

    Whew that was tiring. Need a coffee now.
    Regards
    Stuart
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

  4. #4

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    Well, I'm glad you most agree.

    BTW, Flobber? You can call me either Filburt (my username) or Arien (my real name).

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Originally posted by filburt1
    Ah, you came prepared
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  6. #6

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    *gag*

  7. #7
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    *laughs at furby*
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  8. #8

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    *wishes people would either call him filburt or Arien*

  9. #9
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    *grins manically at Ariel*
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  10. #10

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    *sighs at the constant use of the asterisk and the name Ariel*

  11. #11
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    *wonders why Filburt doesn't like being named after washing powder*
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  12. #12

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    *wonders the same* BTW, we should probably keep to the original subject of the thread.

  13. #13
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    *no we shouldn't*
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  14. #14

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    *sigh, ends conversation because it is getting boring*

  15. #15

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    You: Is Parksie just being an idiot?
    Leo: Is Parksie just being an idiot?.

  16. #16
    scoutt
    Guest
    what do you call a flying fuzz ball? .............. A flying Ariel Furby

    one of my pet peeves

    17. people who plagurize out of a programmers manual.

    and what makes you the resident programmer, oh ya I forgot you made a program that nobody downloaded.

  17. #17
    Banned aknisely's Avatar
    Join Date
    Jul 2001
    Location
    America-lite (Canada)
    Posts
    160
    18. People who ask newbie questions without bothering to try it out themselves or looking it up on MSDN or the book (guys like me).

  18. #18
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205

    Re: Pet Peeves Version 2.0

    [QUOTE]Originally posted by filburt1
    [B]My VB pet peeves:

    1. I don't so I can't comment.
    2. I avoid that too.
    3. Yes, goddamn it. Esp. when they want your help & you've no idea what's doing what....
    4. Ugly word, what's it mean?
    5. Yeah, well what are the conventions, hmmm? I'll pay the constant one, but it's a bit iffy on anything else. I'll go with Stuart on this, but I go a 3-letter prefix - frmMain, strName, etc. I still haven't worked out what to call a frame though.... frm is taken...
    6. 'Well, I leave them out all the time.
    7. Hard on the eyes. Definately.
    8. Let's not get in2 that. We'll b hear foureva.
    9. Yes. I know I've put alot of posts here saying - Check the help...
    10. Yep. 'Cept in ASP, but then, you've got no choice.
    11. Yeppo.
    12. I'll go with Stuart. I can make decent docs myself, but it bores the **** out of me.
    13. Yep.
    14. Sounds good to me.
    15. Yep.
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  19. #19
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Originally posted by parksie
    *wonders why Filburt doesn't like being named after washing powder*
    What about the Little Mermaid?


    She's pretty hot.
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  20. #20
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    OH WAIT!

    I gotta add one.

    19. (are we up to 19 yet?) People who post on their own posts with annoying messages like and 'Why can't anyone help me?' before there's been a response to their question.
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  21. #21

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    Extending that, people who do and are pissed that nobody can help. Probably because they didn't include any code to debug.

  22. #22
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923

    Re: Pet Peeves Version 2.0

    Originally posted by filburt1
    9. Not bothering to look in the help or (with VB5 but not 6, I think)
    ??

  23. #23

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    What part? The Books Online was just that, actual MS programming books on the CD, but for some stupid reason MS decided not to put it in VB6, only VB5.

  24. #24
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    sorry I thought you meant VB6 had no help files, I was like "what??"

  25. #25
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987
    20. Subject lines such as Arghhhhhh!!!!, I Hate VB, Need Help Now, Q For the Gurus, URGENT!

    I boycott these threads.

    As for number 10 though I think variants definitely are an advantage if used correctly.
    {Insert random techno-babble here}

    {Insert quote from some long gone mofo here}

  26. #26

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    Originally posted by YoungBuck
    As for number 10 though I think variants definitely are an advantage if used correctly.
    What situation in VB6 requires a variable declared as a Variant?

  27. #27
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    I agree, variants are good because without them you couldn't return arrays from functions

  28. #28
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987
    I can't think of a time when I've ever need to declare a single variable as a Variant but an array of variants can be very useful.
    {Insert random techno-babble here}

    {Insert quote from some long gone mofo here}

  29. #29
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    rjlohan, congrats!! U win today's Raab award for digging up old threads lol
    Flibbert
    What situation in VB6 requires a variable declared as a Variant?
    I can think of a few cases where a variant is useful and some where it is vital. I already gave u one back in the early days of this thread - ParamArray.
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

  30. #30
    Fanatic Member InvisibleDuncan's Avatar
    Join Date
    May 2001
    Location
    Eating jam.
    Posts
    819
    Originally posted by filburt1
    What situation in VB6 requires a variable declared as a Variant?
    VB Code:
    1. For Each Variable in Collection
    requires a variant or an object.
    Indecisiveness is the key to flexibility.

    www.mangojacks.com

  31. #31
    Hyperactive Member SjR's Avatar
    Join Date
    Jul 2001
    Location
    Birmingham, UK
    Posts
    336
    Originally posted by YoungBuck
    20. Subject lines such as Arghhhhhh!!!!, I Hate VB, Need Help Now, Q For the Gurus, URGENT!
    I don't do this myself (I don't think) but I know people that do. If you put the real subject in, you get about 2-3 views if you're lucky... If you put "This is a real tough Q", you get 20-30 views and eventually a reply.....

    because people like to be able to answer questions that are "difficult"... it makes them look good.
    Another satisfied customer

  32. #32
    Hyperactive Member
    Join Date
    Mar 2001
    Location
    Calgary, Canada
    Posts
    453
    Am I the only person with a life here?

    My pet peeve is when barmen don't fill my pint up properly (cute barmaids can get away with it )

    SD
    "I'd rather have a full bottle in front of me than a full frontal lobotomy!"

  33. #33
    Junior Member ghost ryder's Avatar
    Join Date
    Jan 2001
    Location
    granite city, ach!
    Posts
    17
    my pet peeve is when i pay for 20 bricks of raw, and i get 12 bricks of raw, and then 8 bricks of baking soda, man that just pisses me off
    lyrical terrorism propaganda assassin

  34. #34
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Smile VB

    Filburt1 (I think this is the first time I've ever posted a reply directly in response to you!!!)
    What situation in VB6 requires a variable declared as a Variant?
    A couple of examples:

    1) When you have an optional parameter in a function/sub and you want to be able to use the IsMissing() function (all other data types have default values).

    2) When you want a variable to store a value from a database field that might be null.
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

  35. #35
    Hyperactive Member gravyboy's Avatar
    Join Date
    Jan 2000
    Location
    Where I was before . . . if you don't know then you're new!
    Posts
    334
    or when you are using a generic function to pull data from a db from a given SQL string - the fields will have varying datatypes everytime
    Matt G
    VS6 Ent SP5 @ Work
    VS6 Ent SP5 & VB.Net @ Home
    [email protected]



  36. #36
    Fanatic Member steve65's Avatar
    Join Date
    Jun 2000
    Posts
    610
    21. I think thats right. When people PM you to look at their very important question.
    This space for rent...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width