Search
Saturday, September 04, 2010 ..:: Home ::.. Register  Login
 .NET Links Minimize

 Print   
 My Links Minimize

 Print   
 Recent Blog Entries Minimize
Dec 20

Written by: Wil Dobson
12/20/2007 11:18 AM

I did VB.NET for 2 years and have been doing C# for the last 2 years.  I can do both and am happy that I can.  It has opened up many many employment opportunties for me.

In my opinion on the subject of what language is better; I find that VS.NET 2005 better supports Refactoring in C# and therefore less code rewrite.

Example: open two instances of VS.NET 2005, one with a C# web project and another with a VB.NET project. 

Enter this into a VB project class and right-click on 'str2'... note there is no automagic creation of properties.

Dim str2 As String

Enter this into a C# project class and right-click on 'str2'... note the REFACTOR option in the popup menu.

private string str2;

Choose from there "Encapsulate Field".  What is created for you is a publicly accessible property that has its getters and setters built for you.

public string Str2
{
get { return str2; }
set { str2 = value; }
}

A reason I love and appreciate VB.NET is that its static functions are diverse and easy to use.  Many of us moving to asp.net development come from some other development process (like classic asp using vbscript) and vb.net is so close to vbscript, its a much easier transition.

I would suggest anyone doing vb.net learn c# however. Once you get past learning the looping, declaring and collections[], the rest seems like the same old .NET programming.  If you only know C#, learn VB.NET... many companies want C# developers but have existing vb.net solutions in place.  It will open up many more doors in your careers.

Copyright ©2007 Wil Dobson

Tags:

  
 PS: Minimize

 Print   
 Sponsors Minimize

Get your own Komets drinking Stein!

Get your KOMETS gear!
Proceeds go for player awards @ the end of each season.

  Quality Geek Gear from GeeksWithGuns.com

We use DiscountASP!! Click to join up!


 Print   
 Facebook Minimize

Wil Dobson's Facebook profile


 Print   
 Blogs Minimize

 Print   
 Manage Blog Minimize
You must be logged in and have permission to create or edit a blog.

 Print   
 Blog Archives Minimize

 Print   
Copyright 2008 by Wil Dobson   Terms Of Use  Privacy Statement
DotNetNuke® is copyright 2002-2010 by DotNetNuke Corporation