Click here to Skip to main content
15,920,438 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Vb 6.0 Pin
Bahadir Cambel13-Apr-05 11:31
Bahadir Cambel13-Apr-05 11:31 
GeneralRe: Vb 6.0 Pin
Bahadir Cambel13-Apr-05 11:57
Bahadir Cambel13-Apr-05 11:57 
GeneralRe: Vb 6.0 Pin
rwestgraham13-Apr-05 12:58
rwestgraham13-Apr-05 12:58 
GeneralRe: Vb 6.0 Pin
Bahadir Cambel13-Apr-05 14:15
Bahadir Cambel13-Apr-05 14:15 
GeneralRe: Vb 6.0 Pin
Christian Graus13-Apr-05 15:12
protectorChristian Graus13-Apr-05 15:12 
GeneralRe: Vb 6.0 Pin
rwestgraham13-Apr-05 19:15
rwestgraham13-Apr-05 19:15 
GeneralRe: Vb 6.0 Pin
Christian Graus13-Apr-05 19:28
protectorChristian Graus13-Apr-05 19:28 
GeneralRe: Vb 6.0 Pin
rwestgraham13-Apr-05 21:05
rwestgraham13-Apr-05 21:05 
Christian Graus wrote:
1. The absence of the "using" statement for calling IDisposable creates resource-hungry programs. VB programmers simply do not call IDisposable, or do not call it in a reliable way.

VB.NET class can fully implement the IDisposable interface. It is very simple to do.

The next section of your "complaints" are all deprecated features. I use structured error handling only in VB.NET. All languages contain "features" that can lead to poor practices. This is hardly unique to VB.

I don't think you understand the context of using the With Statement at all. It is not used for manipulating class objects outside of the class definition. Rather it is a way to reduce the number of dot redirections that have to be interpreted by the compiler. Using With actually results in more efficient code because it eliminates unneccessary redirection evaluations when you plan to perform a number of operations on the same object. It does not break any rules of encapsulation as you seem to infer. It simply reduces the compiler overhead.

The "hidden return variable". I don't think you understand how this is actually used in practice. If you carry over VB6 practices, you never have to worry about any default values because VB6 required you to explicitly return a function value using this "hidden variable". If you use the NET syntax or explicitly returning a value using a Return statement the hidden varaiable is ignored. In either usage, the argument that this mystery varaible lurking around can result in hidden bugs just does not wash, because whether you use the VB6 syntax, or the Net Return syntax - and you have to use one or another, the possibility of this mystery varaible returning spurious results is just not a practical consideration.

No warnings? Well this might actually mean something. However, the vast majority of C++ code I have seen written either simply ignored warnings, or added compiler switches to suppress them. I would consider this a valid point, except that I've seen little evidence that the majority of developers actually act on warnings. So why bother?

REM - Come on. This is really reaching to just to find a list of faults. REM has been held over from the ancient days of Basic. I know of no one who actually uses it in any of the higher Vb releases. I mean what's the point? Why type REM when you can simply type a '.

Array Covariance - exists in C# as well. What is unique about this to VB.NET?

Writing multi-threaded code correctly requires advanced abilities that are beyond the skills of most programmers period. The first rule of multi-threaded code is that generally MT is not neccessary or advantageous, and often the drawbacks far outweight the advantages. I've written MT programs (in VB, wow what a concept) for IVR programs where you were requyired to support multiple callers on channels asynchronously. I've also written MT code in real time data collection systems for nuclear power plant instrumentation systems. Those are specialized applications. Anyone who is experienced in MT will tell you gthe first rule is "Don't MT in general". It is not a skill that most programmers really need to acquire in the first place.

etc, etc.

Ignorance is by no means defined by using one language as opposed to another. Ignorance is ubiquitous, period.

If you don't want to use VB, don't use VB. I guess my real question is what do you get from constantly bashing VB? Doe sthis provide some kind of "validation" or something? Focus on writing really good code in whatever platform you prefer, and that should fill any sort of "validation" void you seem to feel.

Being a "C# programmer" seems to lead to some imaginary feeling of superiority over a "VB.NET programmer". It's all stereotypical and delusional. A good programmer is a good programmer, and that should provide enough personal satisfaction to eliminate the need to actively seek out opportunities to express some imaginary superiority over other programmers simply because they choose to use a different platform. Smile | :)

Robert
GeneralRe: Vb 6.0 Pin
Christian Graus14-Apr-05 0:10
protectorChristian Graus14-Apr-05 0:10 
GeneralRe: Vb 6.0 Pin
Dave Kreskowiak14-Apr-05 3:34
mveDave Kreskowiak14-Apr-05 3:34 
GeneralRe: Vb 6.0 Pin
Giancarlo Aguilera14-Apr-05 7:01
Giancarlo Aguilera14-Apr-05 7:01 
GeneralRe: Vb 6.0 Pin
Christian Graus14-Apr-05 12:17
protectorChristian Graus14-Apr-05 12:17 
GeneralRe: Vb 6.0 Pin
rwestgraham14-Apr-05 10:55
rwestgraham14-Apr-05 10:55 
GeneralRe: Vb 6.0 Pin
Christian Graus14-Apr-05 12:23
protectorChristian Graus14-Apr-05 12:23 
GeneralRe: Vb 6.0 Pin
rwestgraham14-Apr-05 13:41
rwestgraham14-Apr-05 13:41 
GeneralRe: Vb 6.0 Pin
Christian Graus14-Apr-05 13:55
protectorChristian Graus14-Apr-05 13:55 
GeneralRe: Vb 6.0 Pin
rwestgraham14-Apr-05 16:00
rwestgraham14-Apr-05 16:00 
GeneralExecute Autocomplete code in a ComboBoxColumn on a datagrid Pin
VBProEd13-Apr-05 6:25
VBProEd13-Apr-05 6:25 
GeneralEvents and Windows NT Pin
KreativeKai13-Apr-05 3:14
professionalKreativeKai13-Apr-05 3:14 
GeneralRe: Events and Windows NT Pin
Dave Kreskowiak13-Apr-05 3:55
mveDave Kreskowiak13-Apr-05 3:55 
GeneralRe: Events and Windows NT Pin
KreativeKai14-Apr-05 6:37
professionalKreativeKai14-Apr-05 6:37 
GeneralRe: Events and Windows NT Pin
Dave Kreskowiak14-Apr-05 6:58
mveDave Kreskowiak14-Apr-05 6:58 
GeneralRe: Events and Windows NT Pin
KreativeKai22-Apr-05 4:04
professionalKreativeKai22-Apr-05 4:04 
GeneralRe: Events and Windows NT Pin
Dave Kreskowiak23-Apr-05 2:45
mveDave Kreskowiak23-Apr-05 2:45 
GeneralHelp with Track bar linked to mci sound Pin
steve shafa13-Apr-05 0:30
steve shafa13-Apr-05 0:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.