Re: .NET haters ought to get a kick out of this



"Tom Shelton" <tom_shelton@xxxxxxxxxxx> wrote in message
news:1163820992.250688.13870@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Bob Butler wrote:
"Russ Rose" <russrose@xxxxxxxxxxx> wrote in message
news:CuidnTRtUrrf8MPYnZ2dnUVZ_sqdnZ2d@xxxxxxxxxxx
<cut>
Dim x as Integer = 0


That is a poor example, since as always VB.NET will intialize the
variable to 0 anyway (C# won't intialize local variables).

A better example would be:

Dim x As Integer = 10

And, it is much more concise then:

Dim x As Integer
x = 10

I understand the syntax. Concise is not always best (forgive me Rick!)

For x as Integer = 1 to 10

This statement limits the scope of x to the for block. It is
considered good programming practice in most modern languages to limit
the scope of a variable to the smallest possible scope.

What is considered "good practice" often changes. In this particular case I
see it as taking a good thing too far. YMMV


Try ..Catch.. Finally

There are some situtations where that's nice; others where it's not.
It's a wash as far as I'm concerend.


Where is it "not"? And why?

When I can have errors in any of several different lines that I want to
handle differently. try/catch adds too many lines of error handing mixed in
with the "real" code.

Auto indent, auto complete, auto wash...

The auto-indent "feature" of VS.Net I find annoying as hell because
it will not indent the way I normally do. Not sure what you mean by
auto complete (at least that is different than VB6) or auto wash.

Stay in your little .Net haters world if you want, but break when
value changes is not worth missing out on the rest.

BTW, hating VB.Net and hating dotnet are very different things.
dotnet as a platform, for web development, has a lot of nice things.
VB.Net has no reason to exist.

That's a laugh. I've worked full time with .NET for the last 4 years,
and in that time I have never produced a full scale web app. I've
written dialers, servers, and desktop applications...

20+MB deployment and slooooooowwww apps are not what I consider suitable for
desktop applications.

--
Reply to the group so all can participate
VB.Net: "Fool me once..."

.


Loading