programming languages

  • I know this is for SQL server, but all of you out there know the answer to this question:

    What is a good source of unbiased info about the relative value of programming in C#.Net vs VB.Net for a web-based application? Everyone seems to like what is most familiar to them, and I am looking for objective differences.

    Thanks for the input.

  • Actually I think, it will get very hard to find unbiased information. Too much in such discussions depends solely on personal preferences. And such discussion are very likely to get heated. Maybe you find some use in this:

    http://www.google.de/search?q=c%23+vs+vb.net&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:de-DE:official

    --
    Frank Kalis
    Microsoft SQL Server MVP
    Webmaster: http://www.insidesql.org/blogs
    My blog: http://www.insidesql.org/blogs/frankkalis/[/url]

  • At the risk of being accused of being facetious, here are the differences between C# and VB.NET:

    - C# uses { and } to delimit blocks, whereas VB.NET generally uses new lines and tokens that are English words

    eg

    if (condition) { true-block } else { false-block }

    versus

    If condition Then

       true-block

    Else

       false-block

    End If

    - C# uses [ and ] for array subscripts, whereas VB.Net uses ( and )

    - um....

    - that's it

     

    Seriously, the fact that it is very nearly possible to *mechanically* translate between C# and VB.NET (with Option Strict on, which is should always be) should provide evidence that there are no significant objective differences, which is why everyone " seems to like what is most familiar to them". If you like terseness, being forced to be explicit about what you mean at all times, and having your manager be unable to read your code, use C#. If you like reading English, being allowed to get away with ambiguous phrasing, and letting the compiler guess what you mean sometimes, use VB.NET.

    The key thing about .NET is that since what you are actually programming is the CLR (remember what this stands for: Common Language Runtime), it doesn't matter at all what syntax you prefer to invoke it. VB.NET feels more like Java than VB, at any rate.

     

  • Thanks, guys.

    I really appreciate the input!

    Smk

     

  • I've coded in both and honestly have noticed no benefit of one over the other. My preference is C#, but VB.NET works fine as well. Depends on the requirements of the project.

  • I prefer VB, but you'll find more sample code in C#.

    So long, and thanks for all the fish,

    Russell Shilling, MCDBA, MCSA 2K3, MCSE 2K3

  • C# has its origins in C/C++ operating system programming while VB has developed as a programming language for business applications. Right now they are quite similar, but I expect Microsoft to develop them both more in that direction, i.e. I'm expecting C# to be a little more powerful and VB a little faster to develop in.

    So, do you want to be able to write unmanaged code and deal with pointers? Or do you want to be able to finish your project a day early?

    My 2 cents,

    Markus Lofstrom

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply