Re: globals?




"Michel Posseth [MCP]" <MSDN@xxxxxxxxxxx> ha scritto nel messaggio
news:OHEr0eeQHHA.4260@xxxxxxxxxxxxxxxxxxxxxxx

I'm an "old" vb6 enthusiast developer.

There are several reassons why someone might use the VB methods in favor
of the framework methods
1. the VB methods are sometimes shorter ( saves typing , and thus coding
speed )

But you loose much more in readability and in OOP point of view.
And as said by Tom, you make your code difficult to understand to non-vb
"players".


2. The VB methods sometimes behave different as there .Net counterparts
3 The VB methods often have built in validation ( where you should write a
try catch block for the .Net counterpart )

Right.
They do inside much more controls (that by my point of view should be done
by the programmer for the issue "do you know what are you doing?").
This extra code make the old-vb-compatible code much more slow (But this is
secondary, I prefere that the code was more clear than more fast).


Well about this i would say read my comments on this article and you see
my personal opinion

http://www.codeproject.com/useritems/novbruntimeref.asp?df=100&forumid=327076&exp=0

I don't really know whay vb1/2/3/4/5/6 programmers was always complaining
for the "language low quality" and now that the laguage is grown up they
still whant the old vb1/2/3/4/5/6 style.
Maybe sometime someone is right when they say vb programmers are a sort of
looser nerds :)


.