473,395 Members | 1,623 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

trying to decide between vb.net and c#.net

I'm a database developer working with MS Access, SQL Server and MySQL, and I
would like to develop some browser-based front ends for my databases.
However, building a web-based interface is new to me, and I need to make a
decision about which development language I will learn and use.

I understand that both vb.net and c#.net are powerful languages for this
purpose, and I would like to choose one of the two and focus my efforts on
that language. However, I don't know anything about the relative advantages
and disadvantages of the two.

I have several years of experience programming in VBA in Access, but I've
heard that VB.net is so different that it would almost be like learning a
new language. In any event, I'm not as concerned about taking advantage of
what I might already know about VB as I am about choosing a language which
is likely to be the best web development tool over the next several years -
one that is likely to be in widespread use and supported by the [truly
wonderful] contributors to these newsgroups. At present, it appears both
development platforms meet that criteria.

Can anyone give me some thoughts that might help me with this decision, or
direct me to a source of information that might shed some light on this
subject, and help me make this decision?

Thanks in advance,

Paul
Nov 16 '05 #1
20 1239
Hello Paul,

This topic has been discussed so much before and my conclusion is whichever
you feel comfortable or whichever you like. I really don't see any disadvantage
to either of language when it comes to ASP .NET application development.
I personally developed ASP .NET application in both languages. There are
likes and dislikes on each language. Some people don't like "wordiness" or
VB .NET, some people don't like curly bracket in C#. They are just preferences.
After all, we are programming against .NET Framework, so to me language doesn't
really matter anymore although I wouldn't write .NET app in COBOL...

I'm a database developer working with MS Access, SQL Server and MySQL,
and I would like to develop some browser-based front ends for my
databases. However, building a web-based interface is new to me, and I
need to make a decision about which development language I will learn
and use.

I understand that both vb.net and c#.net are powerful languages for
this purpose, and I would like to choose one of the two and focus my
efforts on that language. However, I don't know anything about the
relative advantages and disadvantages of the two.

I have several years of experience programming in VBA in Access, but
I've heard that VB.net is so different that it would almost be like
learning a new language. In any event, I'm not as concerned about
taking advantage of what I might already know about VB as I am about
choosing a language which is likely to be the best web development
tool over the next several years - one that is likely to be in
widespread use and supported by the [truly wonderful] contributors to
these newsgroups. At present, it appears both development platforms
meet that criteria.

Can anyone give me some thoughts that might help me with this
decision, or direct me to a source of information that might shed some
light on this subject, and help me make this decision?

Thanks in advance,

Paul

Nov 16 '05 #2
Paul,

With Winforms, there is in my opinion a big difference between classic VBx
and VBNet.

With Webform that is certainly in the beginning less.

However, VBNet is for server side not client side. You would have to use
JxxScript or VBA for client side in future as well. (In addition, in my
opinion is the best for the clientside is JavaScript all was it alone
because you can find tons of samples for that on Internet).

A way to go to come from ASP to ASPX.
Make the few needed changes to an ASP page too run it as ASPX.
Take out all inline VBA server side code and set it in special paragraphs in
a true ASPX VBNet way.
And than, take out the Server Side code and bring it to ASPX.vb paragraphs
in a DLL way.

VBNet or C#. When you was a web programmer you would not see it, C# is just
writing JavaScript with more and less possibilities. VBNet is that in the
same way but than with VBA.

Because you said you are not, I would choose for VBNet even when it was only
of the facts that with C# you will have in the beginning everytime case
sensitive and equal operator (which is in C derived languages ==) problems.

For the start you can have a look at this pages, however in my opinion goes
this mostly from the first and second step I describe above.

http://samples.gotdotnet.com/quickstart/

And than there is of course this one that does the thirth step as well

http://msdn.microsoft.com/asp.net/asprk/

Just my thought,

Cor

Paul James" <pp*************@SPAMsurewest.FOREVERnet>>
I'm a database developer working with MS Access, SQL Server and MySQL, and
I would like to develop some browser-based front ends for my databases.
However, building a web-based interface is new to me, and I need to make a
decision about which development language I will learn and use.

I understand that both vb.net and c#.net are powerful languages for this
purpose, and I would like to choose one of the two and focus my efforts on
that language. However, I don't know anything about the relative
advantages and disadvantages of the two.

I have several years of experience programming in VBA in Access, but I've
heard that VB.net is so different that it would almost be like learning a
new language. In any event, I'm not as concerned about taking advantage
of what I might already know about VB as I am about choosing a language
which is likely to be the best web development tool over the next several
years - one that is likely to be in widespread use and supported by the
[truly wonderful] contributors to these newsgroups. At present, it
appears both development platforms meet that criteria.

Can anyone give me some thoughts that might help me with this decision, or
direct me to a source of information that might shed some light on this
subject, and help me make this decision?

Thanks in advance,

Paul

Nov 16 '05 #3
Hi Paul

Be bi-lingual and learn both! As others have said, you are looking at a
front end over the underlying IL code that is generated from your source
code, and both use the same Framework class library. Moving between languages
is really not that hard...

Nigel armstrong

"Paul James" wrote:
I'm a database developer working with MS Access, SQL Server and MySQL, and I
would like to develop some browser-based front ends for my databases.
However, building a web-based interface is new to me, and I need to make a
decision about which development language I will learn and use.

I understand that both vb.net and c#.net are powerful languages for this
purpose, and I would like to choose one of the two and focus my efforts on
that language. However, I don't know anything about the relative advantages
and disadvantages of the two.

I have several years of experience programming in VBA in Access, but I've
heard that VB.net is so different that it would almost be like learning a
new language. In any event, I'm not as concerned about taking advantage of
what I might already know about VB as I am about choosing a language which
is likely to be the best web development tool over the next several years -
one that is likely to be in widespread use and supported by the [truly
wonderful] contributors to these newsgroups. At present, it appears both
development platforms meet that criteria.

Can anyone give me some thoughts that might help me with this decision, or
direct me to a source of information that might shed some light on this
subject, and help me make this decision?

Thanks in advance,

Paul

Nov 16 '05 #4
Jon
c#, no doubt about it. It's "the .net language", it's far superior to vb.net,
and employers take c# programmers far more seriously than vb.net programmers -
ie, you get better positions and higher pay.

People always assume that vb and vb.net programmers are a bit crap. Whatever
people say about .Net's IL, CLR and cross language support, no CTO or proj
manager is going to develop a server or critical app in anything vb related.
That's why companies use c# throughout.

Why use vb.net on the front end, and c# on the back when you can use c# on both
and use the same staff?

"Paul James" <pp*************@SPAMsurewest.FOREVERnet> wrote in message
news:10*************@corp.supernews.com...
I'm a database developer working with MS Access, SQL Server and MySQL, and I
would like to develop some browser-based front ends for my databases.
However, building a web-based interface is new to me, and I need to make a
decision about which development language I will learn and use.

I understand that both vb.net and c#.net are powerful languages for this
purpose, and I would like to choose one of the two and focus my efforts on
that language. However, I don't know anything about the relative advantages
and disadvantages of the two.

I have several years of experience programming in VBA in Access, but I've
heard that VB.net is so different that it would almost be like learning a
new language. In any event, I'm not as concerned about taking advantage of
what I might already know about VB as I am about choosing a language which
is likely to be the best web development tool over the next several years -
one that is likely to be in widespread use and supported by the [truly
wonderful] contributors to these newsgroups. At present, it appears both
development platforms meet that criteria.

Can anyone give me some thoughts that might help me with this decision, or
direct me to a source of information that might shed some light on this
subject, and help me make this decision?

Thanks in advance,

Paul

Nov 16 '05 #5

"Paul James" <pp*************@SPAMsurewest.FOREVERnet> wrote
I understand that both vb.net and c#.net are powerful languages for this
purpose, and I would like to choose one of the two and focus my efforts on
that language. However, I don't know anything about the relative advantages
and disadvantages of the two.


Regaurdless of what others say about one over the other, they are relatively
equal in performance. They both compile to MSFT Intermediate Language.

I would suggest you get samples of both VB and C#, and look them over to
see which one you would like to work with. There are many places you can
go to see the same task done in VB and in C# (VS documentation on MSDN
is one such place, you might also try www.GotDotNet.com ).

If your own preference is not obvious when you see them side by side, then
pick C#. It is the native language of the framework....

LFS

Nov 16 '05 #6
"Larry Serflaten" <se*******@usinternet.com> schrieb:
If your own preference is not obvious when you see them side by side, then
pick C#. It is the native language of the framework....


Huh?! The .NET Framework has a "native language"?!

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 16 '05 #7

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote
pick C#. It is the native language of the framework....


Huh?! The .NET Framework has a "native language"?!

Is C# native to anything else? Would you prefer calling it a 'charter language' ?

For the OP:
INFO: "Differences Between Visual Basic .NET and Visual C# .NET" White Paper Is Available
http://support.microsoft.com/default...b;en-us;308470

LFS

Nov 16 '05 #8
You're probably a very lucky person to be coming into .NET and not having
been polluted by earlier versions of VB.

The first thing you need to learn is good object-oriented programming
skills. Both VB.NET and C# are OO languages. VB carries a little bit of
baggage around that it inherited from older non object oriented versions of
the language but they are unimportant. When you understand the underlying
structure of the code the syntactical structure of the language, be-it VB or
C# becomes less important.

You could easily become an expert in both if you took the right path towards
it.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Paul James" <pp*************@SPAMsurewest.FOREVERnet> wrote in message
news:10*************@corp.supernews.com...
I'm a database developer working with MS Access, SQL Server and MySQL, and I would like to develop some browser-based front ends for my databases.
However, building a web-based interface is new to me, and I need to make a
decision about which development language I will learn and use.

I understand that both vb.net and c#.net are powerful languages for this
purpose, and I would like to choose one of the two and focus my efforts on
that language. However, I don't know anything about the relative advantages and disadvantages of the two.

I have several years of experience programming in VBA in Access, but I've
heard that VB.net is so different that it would almost be like learning a
new language. In any event, I'm not as concerned about taking advantage of what I might already know about VB as I am about choosing a language which
is likely to be the best web development tool over the next several years - one that is likely to be in widespread use and supported by the [truly
wonderful] contributors to these newsgroups. At present, it appears both
development platforms meet that criteria.

Can anyone give me some thoughts that might help me with this decision, or
direct me to a source of information that might shed some light on this
subject, and help me make this decision?

Thanks in advance,

Paul

Nov 16 '05 #9
Thanks for the response to my original post, everyone. Your comments and
suggestions are very helpful.

After reading over the responses, I believe I should first spend some time
reading up on the .NET framework and object-oriented programming. It also
seems like it wouldn't hurt to learn the syntax in both vb and C#.

A final question: I'm looking for some web sites that would provide a good
introduction to the .NET environment and related topics. Cor Ligthert
suggested:

http://samples.gotdotnet.com/quickstart/

and

http://msdn.microsoft.com/asp.net/asprk/

and Larry Serflaten suggested

www.GotDotNet.com

All three of those sites look like they have lots of very useful
information. Are there any other sites that might be useful as an
introduction to either .NET and/or object oriented programming?

Thanks again in advance,

Paul
Nov 16 '05 #10
"Jon" <Jo*@b.com> wrote in news:eF***************@newsfe2-win.ntli.net:
People always assume that vb and vb.net programmers are a bit crap.
Whatever people say about .Net's IL, CLR and cross language support,
no CTO or proj manager is going to develop a server or critical app in
anything vb related. That's why companies use c# throughout.


And why not VB.NET? VB.NET has all the features that C# does (well besides
the XML documenter) so this only goes to show that the CTO is a bit
clueless or bias.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 16 '05 #11
Jon
Sorry, I disagree.

If a business-critical real-time server app has problems, VB.NET will be blamed.
Right or wrong, you know that's the case. And all the arguments for using
VB.NET; ie the IL, CLR, the framework will only make people wonder why the dev
team didn't use c#.

"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@140.99.99.130.. .
"Jon" <Jo*@b.com> wrote in news:eF***************@newsfe2-win.ntli.net:
People always assume that vb and vb.net programmers are a bit crap.
Whatever people say about .Net's IL, CLR and cross language support,
no CTO or proj manager is going to develop a server or critical app in
anything vb related. That's why companies use c# throughout.


And why not VB.NET? VB.NET has all the features that C# does (well besides
the XML documenter) so this only goes to show that the CTO is a bit
clueless or bias.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 16 '05 #12
"Jon" <Jo*@b.com> wrote in news:p_**************@newsfe3-gui.ntli.net:
Sorry, I disagree.

If a business-critical real-time server app has problems, VB.NET will
be blamed. Right or wrong, you know that's the case. And all the
arguments for using VB.NET; ie the IL, CLR, the framework will only
make people wonder why the dev team didn't use c#.


Actually I don't know the case - most managers don't care if you used
VB.NET or C#, to them it's all .NET - which is true. VB.NET = C# (more or
less).

Whatever problems you had with VB.NET will be there in C#. Bad code is bad
code.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 16 '05 #13
Jon
If you don't know the case then you shouldn't be in the industry.

c# attracts c++ and java programmers and is treated accordingly. The programmers
are generally held in high regard as they have heard of concepts like OO and
multi-threading.

VB.net attracts, well, vb programmers. And let me assure you, everyone cares
about that!

"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@140.99.99.130.. .
"Jon" <Jo*@b.com> wrote in news:p_**************@newsfe3-gui.ntli.net:
Sorry, I disagree.

If a business-critical real-time server app has problems, VB.NET will
be blamed. Right or wrong, you know that's the case. And all the
arguments for using VB.NET; ie the IL, CLR, the framework will only
make people wonder why the dev team didn't use c#.


Actually I don't know the case - most managers don't care if you used
VB.NET or C#, to them it's all .NET - which is true. VB.NET = C# (more or
less).

Whatever problems you had with VB.NET will be there in C#. Bad code is bad
code.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 16 '05 #14
"Jon" <Jo*@b.com> wrote in news:mG***************@newsfe3-gui.ntli.net:
If you don't know the case then you shouldn't be in the industry.

c# attracts c++ and java programmers and is treated accordingly. The
programmers are generally held in high regard as they have heard of
concepts like OO and multi-threading.

VB.net attracts, well, vb programmers. And let me assure you, everyone
cares about that!


1. You have bad hiring practices
2. You have a training issue

Thus C# has no real advantage over VB.NET - your problem is an HR issue.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 16 '05 #15
Jon,
If you don't know the case then you shouldn't be in the industry.


The sentence of somehone who loose a discussion, it says nothing, however
can forever be used.

(And for me tells that he can not state what he said with facts)

Have you all global facts aobout your statements or is it maybe only in your
village.

Cor
Nov 16 '05 #16
Lucas Tam <RE********@rogers.com> wrote:
"Jon" <Jo*@b.com> wrote in news:mG***************@newsfe3-gui.ntli.net:
If you don't know the case then you shouldn't be in the industry.

c# attracts c++ and java programmers and is treated accordingly. The
programmers are generally held in high regard as they have heard of
concepts like OO and multi-threading.

VB.net attracts, well, vb programmers. And let me assure you, everyone
cares about that!
1. You have bad hiring practices
2. You have a training issue


Who said that Jon was particularly talking about his own company?

Do you not agree that VB has an image problem, which has been passed on
to some extent to VB.NET? However unfairly, I agree with Jon that there
is a bias against VB programmers.
Thus C# has no real advantage over VB.NET - your problem is an HR
issue.


I don't see the logic for the "thus" here - there are advantages C# has
over VB.NET which have nothing to do with hiring practices or training
issues. Operator overloading (which admittedly can be a blessing or a
curse), unsafe code (ditto), XML documentation without third party add-
ins, unsigned types, and the "using" statement for simple resource
disposal are some of them. VB.NET will be getting most if not all of
these in VS.NET 2005, but for the moment, they're very real advantages
for C#, IMO. (The using statement is the main one, for me - it does
nothing that you can't do without a try/finally, of course, but the
fact that it makes it so easy means that people are more likely to do
the right thing, IMO.)

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #17
Jon,

Starting a message war again?

Trying to prevent that
http://tinyurl.com/4tqm5

Cor
Nov 16 '05 #18
Cor Ligthert <no************@planet.nl> wrote:
Starting a message war again?


Not at all. Just responding to some faulty logic.

<snip>

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #19
Jon,

There are some advantages that to be a citizen from Darfur has above to be a
citizen from the UK.

Although it is raining very much in the UK, when I *had* to choose now, I
would choose for the UK.

:-)

Cor

"Jon Skeet [C# MVP]" <sk***@pobox.com>
..
Cor Ligthert <no************@planet.nl> wrote:
Starting a message war again?


Not at all. Just responding to some faulty logic.

<snip>

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 16 '05 #20
Anyways...

I've done large projects in both VB.NET and C#. My preference is C#.

It isn't that VB.NET is any less of a language than C# is, you can do
the same things in both. My preference for C# is a combination of
three things: keystrokes, cleanliness, and binding.

VB.NET implements OO principles, but does so in a really verbose way.
For instance, to do a read only property, you have to do this:

Protected ReadOnly Property Blah() As Int
Get
Return 1
End Get
End Property

In C#, it is:
[code:1:50beef814f]
protected int Blah{
get{
return 1;
}
}
[/code:1:50beef814f]

Since I tend to write a lot of properties, I find it to be a stumbling
block in VB. It just doesn't follow the natural flow of my typing,
but C# does.

As for cleanliness, there are multiple sub-issues here. For one, VB
comments are tragically painful. It's easy to use a /* */ block
comment in C#, especially since I don't program with a hand on the
mouse at all times. Another problem is that VB.NET is promotes
sloppy programming, because the typing system is loose by default.
Option Strict On and Option Explicit On are not defaulted to, like
they ought to be. The reasoning behind this is to make it easier to
port VB6 apps to VB.NET.

Lastly, the bindings for VB6 is odd. If you want to pass objects
internally between functions/methods, you have to use ByVal in the
declaration. This is not very natural for an OO language. It's
really easy, though, to use Interop because of this. C# interop
makes more sense, though, in that it requires you to use the ref
keyword to pass an object outside of the realm of the CLR.

The biggest reason for me, though, which I didn't elaborate on, is
case sensitivity. Although it's bad form to use two variables with
the same name, but differentiated by case, sometimes it is useful.
Especially for constants.

Save your keystrokes. Learn C#. ;-)[/code]

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
Nov 16 '05 #21

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Nicolas STAMPF | last post by:
Hello, I've just read documentation for both packages, and I can't seem to decide which one to use. I have some simple database things to do, but I'd like to have my code prepared for...
1
by: Larry | last post by:
I am a C++/Java programmer trying to get going with some simpe xml transformations at work here. I bought the O'Reilly book Learning xlst for kicks. Someone at work sent me this xml shown below,...
9
by: iaesun | last post by:
i'm trying to write a batch that will perform a complex task using set-based selects instead of a row-based cursor. let me know if you can help me figure out how. description of what i'm trying...
16
by: Atley | last post by:
I am trying to get a overall difference on two dates, I can get the difference in Years, Months, Weeks, Days, Hours, Minutes, Seconds, no problems... What I cannot seem to figure out is how to...
22
by: Paul James | last post by:
I'm a database developer working with MS Access, SQL Server and MySQL, and I would like to develop some browser-based front ends for my databases. However, building a web-based interface is new to...
2
by: sase m via DotNetMonster.com | last post by:
I want to let the user decide for the date in the query. I want to sort the database and put it in the datagrid. I wrote this query : SELECT *FROM table WHERE date BETWEEN #27/6/2005 20:20:30#...
5
by: strikefiend | last post by:
Ok, I'm somewhat new to .NET C# language and am having a bit of trouble. I'm trying to run the javascript confirm() method from my ascx page but I'm currently using C# as the main language of the...
34
by: Anthony Irwin | last post by:
Hi All, I am currently trying to decide between using python or java and have a few quick questions about python that you may be able to help with. #1 Does python have something like javas...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.