|
-
Feb 8th, 2002, 11:59 AM
#1
Thread Starter
Black Cat
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.
-
Feb 8th, 2002, 12:01 PM
#2
Bouncy Member
-
Feb 8th, 2002, 12:03 PM
#3
Frenzied Member
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.
-
Feb 8th, 2002, 12:16 PM
#4
Frenzied Member
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.
-
Feb 8th, 2002, 12:33 PM
#5
Thread Starter
Black Cat
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.
-
Feb 8th, 2002, 02:29 PM
#6
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
-
Feb 8th, 2002, 02:35 PM
#7
Frenzied Member
Serge,
So where would you put all your public functions/subs?
API Declarations?
A Class?
-
Feb 8th, 2002, 03:23 PM
#8
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.
-
Feb 8th, 2002, 06:20 PM
#9
PowerPoster
Bad habits? I swear I never used to scratch or burp in public before Vb.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|