Results 1 to 9 of 9

Thread: What bad habits does VB Teach?

  1. #1

    Thread Starter
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032

    What bad habits does VB Teach?

    People criticize VB for teaching bad habits, but I wonder what exact bad habits do they mean? With "Option Explicit" and a little displicine, I don't see it being worse than any other language.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  2. #2
    Bouncy Member darre1's Avatar
    Join Date
    May 2001
    Location
    Peterborough, UK
    Posts
    3,828

    Red face

    i don't think VB has taught me any bad habits that i hadn't already learnt all by myself


    Confucious say, "Man standing naked in biscuit barrel not necessarily ****ing crackers."

    Don't forget to format your code in your posts

  3. #3
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950
    Dim SPEAK as String



    speak = "something"


    VB will automatically change speak to SPEAK.

    I haven't seen any other language do that.

    This can be a problem if you're switching to C/C++ which is case sensitive.

  4. #4
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616
    I think not being case sensitive is a good thing - and when it changes the case for you you get the reasurance that you have spelt the variable name correctly.
    Indeed many people declare their variables proper case and then code them lower case for just this reason...

    VB's real bad habits are things like: Variants which leads to developers not thinking about their variables, DefInt etc. likewise.
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

  5. #5

    Thread Starter
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    The case changing is a feature of the IDE, not the language itself, I don't think.

    As far as Variants go - this is a legimate OLE data type that can be used with other languages that support OLE. Then there are languages such as Perl that don't really have data types at all.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  6. #6
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    Bad habit - using regular modules when you try to use OO approach.
    Unless you're subclassing, there is no reason to use regular modules, its a memory dog

  7. #7
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950
    Serge,

    So where would you put all your public functions/subs?
    API Declarations?

    A Class?

  8. #8
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    Yes, in the class. Your class should implement all API calls. Like I said, unless its a subclassing, there is no need for regular modules.

  9. #9
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Bad habits? I swear I never used to scratch or burp in public before Vb.
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

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