Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. VB.Net is better then C# in web development......if not then why

VB.Net is better then C# in web development......if not then why

Scheduled Pinned Locked Moved ASP.NET
csharpquestion
6 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DineshSharma
    wrote on last edited by
    #1

    pls gives your views about this .....:laugh: I think but still confused :~ VB.Net is better then C# 'coz' vb.net has the same functionalties like c# and easy to use......but people love to work with C#....WHY?:confused:

    Dinesh Sharma

    R G G G 4 Replies Last reply
    0
    • D DineshSharma

      pls gives your views about this .....:laugh: I think but still confused :~ VB.Net is better then C# 'coz' vb.net has the same functionalties like c# and easy to use......but people love to work with C#....WHY?:confused:

      Dinesh Sharma

      R Offline
      R Offline
      RaviJJain
      wrote on last edited by
      #2

      Bcoz C# gives machine level access c# have all the vb.net functionality but vb.net doesn't:-O

      1 Reply Last reply
      0
      • D DineshSharma

        pls gives your views about this .....:laugh: I think but still confused :~ VB.Net is better then C# 'coz' vb.net has the same functionalties like c# and easy to use......but people love to work with C#....WHY?:confused:

        Dinesh Sharma

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        The best language for you is the one that you write the best code in. It doesn't matter how good a language is if you can't use it. When it comes to performance or capabilities, the differences between VB.NET and C# is not that big. Personally I prefer C# mostly because of the structure of the language, and the strict type checking. VB lets you get away with automatic conversions that really isn't good for you. For example, this works in VB: Dim Cnt As String Cnt = 1 Cnt = Cnt + 1 The result is that the string Cnt now contains "2" as VB automatically converts the value back and forth between strings and integers, so it works more or less as intended. The problem is that the conversions makes the code take about 600 times longer than if you would have used an integer variable instead. Imagine if you use this is a loop... Of course C# doesn't let you write such garbage. ;)

        --- b { font-weight: normal; }

        P 1 Reply Last reply
        0
        • G Guffa

          The best language for you is the one that you write the best code in. It doesn't matter how good a language is if you can't use it. When it comes to performance or capabilities, the differences between VB.NET and C# is not that big. Personally I prefer C# mostly because of the structure of the language, and the strict type checking. VB lets you get away with automatic conversions that really isn't good for you. For example, this works in VB: Dim Cnt As String Cnt = 1 Cnt = Cnt + 1 The result is that the string Cnt now contains "2" as VB automatically converts the value back and forth between strings and integers, so it works more or less as intended. The problem is that the conversions makes the code take about 600 times longer than if you would have used an integer variable instead. Imagine if you use this is a loop... Of course C# doesn't let you write such garbage. ;)

          --- b { font-weight: normal; }

          P Offline
          P Offline
          Paddy Boyd
          wrote on last edited by
          #4

          You also have operators that do one thing, and one thing only: e.g. in VB.net, this: "A string " & " concatenated." works the same as this: "A string " + " also concatenated." Which makes it interesting when you take Guffa's post about implicit conversion of numbers etc...

          1 Reply Last reply
          0
          • D DineshSharma

            pls gives your views about this .....:laugh: I think but still confused :~ VB.Net is better then C# 'coz' vb.net has the same functionalties like c# and easy to use......but people love to work with C#....WHY?:confused:

            Dinesh Sharma

            G Offline
            G Offline
            Grapes R Fun
            wrote on last edited by
            #5

            Silly answer, but very much true: vb.net is WORDY as he#$. I can easily identify different blocks of code in a c# document thanks to the symbol usage, but not in vb (IF... ENDIF... what's up with that?!?). Also, its syntax is close to c++ and java, so it keeps my skills functional on all those languages. Besides, if you want to be a "marketable" programmer, stick with c#, they get more/better opportunities.

            Nila "...for that, I will need a large cup of coffee and a brand muffin!" -Samantha Bea

            1 Reply Last reply
            0
            • D DineshSharma

              pls gives your views about this .....:laugh: I think but still confused :~ VB.Net is better then C# 'coz' vb.net has the same functionalties like c# and easy to use......but people love to work with C#....WHY?:confused:

              Dinesh Sharma

              G Offline
              G Offline
              GaryWoodfine
              wrote on last edited by
              #6

              This is an age old debate and there are countless examples of this debate on the internet. my advice to you, is that both languages use the .NET framework, so in essence niether are any better than each other. At the end of the day the language choice is that of the developer as to what syntax they prefer. I personally use both on a daily basis, and don't really care which one I use. It is up to the client as to which one they prefer to support and what skills they have in house to support the application.

              Kind Regards, Gary


              My Website || My Blog

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups