Forced to use VB

I’ve been working on a VB6 < -> VB.NET interop project for the past two months with little to no C# coding time, and I’ve found myself actually liking VB.NET.  I’ve always used C# in projects where I have an option, but since this work is on an existing project, I have no choice.  It takes a little bit to learn the slight differences in syntax, like GetType instead of typeof, etc. but I find myself enjoying the late binding aspects and the case insensitivity.
I went back a few days ago to do some work on a C# project of mine, and realized how much I actually DO like VB.  I’m not saying that I’m going to become some VB proponent or anything, but I’m definitely more open to using it now.  Funny how when you actually try something out, you may end up liking it :)

3 Comments so far »

  1. Jim Losi said,

    Wrote on June 16, 2006 @ 9:13 pm

    quite interesting. I was a old (classic) ASP programmer and moved to .NET using VB.NET and I was totally against “curly” anything.. just didn’t like to stare it at all. I landed a new job and it’s all C#.. so I too was forced to use something that I had very little interaction with until I had no choice. Now, I quite like it and being bi-lingual rocks :) I can switch in a heart beat.

    don’t know if you know or not so I’ll just say it any way.
    -the “using” keyword is available in VB as in using(datareader){} in C# ex:
    -code snippets actually automatically add any imports to the class that are needed
    -short circuit your conditionals with OrElse and AndAlso keywords. Or and And are throw backs to VB6 for backwards compat.

  2. ben said,

    Wrote on June 17, 2006 @ 9:06 am

    Jim, funny you should mention the OrElse and AndAlso keywords, I just posted about them a couple days ago :)
    http://benreichelt.net/blog/2006/05/30/uh-andalso/

    I didn’t know that the “using” keyword is available, thats nice to have, thanks for the tip! I too like the fact that I’m fluent in both languages now.

  3. Jim Losi said,

    Wrote on June 17, 2006 @ 12:56 pm

    *(chuckle) *
    Yeah, I thought the AndAlso were a big “You gotta be joking, right?” kind of syntax too. I mean, VB’s syntax is very english-like but there has to be some point where they stop increasing the verbosity of the language. I kind of wish they would dump having to use DIM to declare a variable. If they used C#’s way of declaring variables and left the rest pretty much as is, I think that would be nice :)

Comment RSS · TrackBack URI

Leave a Comment

Name: (Required)

E-mail: (Required)

Website:

Enter my name (ben) in this box, so I know you're a human.

Comment: