• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 367
  • Last Modified:

vb.net vs c#

I asked this before but would like to hear some more opinions.

I am writting a business software package. Having Accounting, HR, IT, etc.

I am very familiar with vb.net as of now.
I was curious if I am creating a business package within my organization, should I use vb.net or c#. I have notice that conversion between the two is quite easy, however I would rather stick with one language. What is ur opinion experts............

0
bman9111
Asked:
bman9111
  • 3
  • 3
  • 2
  • +2
3 Solutions
 
Arthur_WoodCommented:
Whichever one you feel more comfortable with.  They are both fully capable, and both have full and unrestricted use of the entire .NET Framework.  It truly is a matter of personal preference.

AW
0
 
InteractiveMindCommented:
I doubt anyone can argue against that (AW's comment).
0
 
bman9111Author Commented:
I just want to make sure I use a language that is truely good. I thought about java....
Also since I am writing it, it would be great way to brush up on either language for the future. Not sure what is out there more vb.net or c#
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
InteractiveMindCommented:
> I just want to make sure I use a language that is truely good. I thought about java
Please define "truly good" (in terms of a programming language); because, I'm sure that most people would define it as being something which has great functionality, preferably easy - and the more compatible, the better.

Java has all of them, but for what you're doing VB .Net has the functionality, you're also confident with it, so it's rather easy (at least, for you), being based on the .Net framework: as long as you're using Windows, then compatibility isn't really an issue.

> Also since I am writing it, it would be great way to brush up on either language for the future.
For a future language, I'd say to definitely specialize in either Java or C# (both very similar languages); I personally specialize in Java; but it's down to you really.

You need to ask yourself what you want out of this ... *ultimately*.
0
 
jaysefCommented:
Coming from a pre-.NET vb background, I'm quite biased, but I believe it took me a lot less time to learn VB and Vb.NET combined than it took me to learn C# well. However, since starting C#, I feel much more in control of my code.

Either language will work well - I'm using both in VS.NET 2005 beta 2.

I found it quite hard to migrate from Vb.NET to C#. It just felt like thinking in a different mindset. However, I think that it paid off and I now can really reuse a lot more of my code.

However, if you have any C or C++ experience, you'll probably feel at home with the structure of C#.
Remember though: knowing vb.net does not mean you know C#; I learned this the hard way playing around with code and finding that I had to look at a lot of functions in help.

Jay
0
 
bman9111Author Commented:
yeah, I am just confussed, I just don't want to keep using vb.net if c# is used more. However the vb 2005 looks really nice. Is c# used more then vb.net??
0
 
jaysefCommented:
I still use VB.net for a lot of things. It was tough for me to adjust to a C-type language, but I had been programming VB for too long and gotten too used to it.

I believe, at least for many years, VB was the most popular programming language in the world. I would expect that C# and VB.net are about even or vb.net has a slight edge. You'll find a lot of code examples online that are only C# or only VB. So far it seems like they pretty easy to find for both languages.

I recommend downloading a trial of C# or playing around with it a little. You can see how comfortable you are and whether or not it seems like too much work to switch to.

If you have VS.NET Pro already, then you don't need to download anything - If you don't, try C# 2005 Beta 2 Express - http://lab.msdn.microsoft.com/express/vcsharp/default.aspx.

HTH
0
 
b1xml2Commented:
There are things in C# that cannot be done by VB.NET

1. Operator overloading is one (the following cannot be done in VB.NET).
    DateTime start = DateTime.Parse("2000-10-10");
    DateTime end = DateTime.Parse("2001-11-05");
    Timespan difference = start - end;
    // get days
    int value = difference.TotalDays;
 
 
2. Events Optimization

like so in WinForms, Win UserControls,  and WebForms and Web UserControls

private static readonly object MyClickEventHandler = new object();

public EventHandler MyClick
{
  add { this.Events.AddHandler(MyClickEventHandler ,value); }
  remove { this.Events.RemoveHandler(MyClickEventHandler, value); }
}

private void OnMyClick()
{
  EventHandler handler = this.Events[MyClickEventHandler] as EventHandler;
  if (handler != null)
    handler(this,EventArgs.Empty);
}

3. The use of the as operator:
   TextBox textBox = this.FindControls("TextBox1") as TextBox;
    textBox returns null and does not throw an exception


 

0
 
bman9111Author Commented:
yeah I think I am going to stay with vb.net since I already know it and several programs are already in that language. I think I will paly around with C# just in case I ever need to find a new job, I can say I have some experience with it. I guess my main concern was using a language that if for some chance I lose my job, or want to move on I would have the skills needed to do so. this is why I thought doing all of this in C# would be better, but from what I am hearing it really doesn't matter because both worlds are out there....

Thanks everyone....
0
 
InteractiveMindCommented:
Good luck.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now