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. The Lounge
  3. Difference between c# and VB.Net

Difference between c# and VB.Net

Scheduled Pinned Locked Moved The Lounge
csharpquestioncareer
78 Posts 46 Posters 35 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.
  • J Offline
    J Offline
    J a a n s
    wrote on last edited by
    #1

    Last weekend I went for an interview in a Reputed organization. The first question from the interview panel was the difference between VB.Net and C#. I just came back!!! Can any one here spot the differences :)

    "Never put off until run time what you can do at compile time." - David Gries, in "Compiler Construction for Digital Computers", circa 1969.

    D M C D P 20 Replies Last reply
    0
    • J J a a n s

      Last weekend I went for an interview in a Reputed organization. The first question from the interview panel was the difference between VB.Net and C#. I just came back!!! Can any one here spot the differences :)

      "Never put off until run time what you can do at compile time." - David Gries, in "Compiler Construction for Digital Computers", circa 1969.

      D Offline
      D Offline
      Dalek Dave
      wrote on last edited by
      #2

      C# is what you use when coding for yourself VB is what you use when coding for others higher up the management food chain.

      ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

      J M 2 Replies Last reply
      0
      • J J a a n s

        Last weekend I went for an interview in a Reputed organization. The first question from the interview panel was the difference between VB.Net and C#. I just came back!!! Can any one here spot the differences :)

        "Never put off until run time what you can do at compile time." - David Gries, in "Compiler Construction for Digital Computers", circa 1969.

        M Offline
        M Offline
        Marcus_Idle
        wrote on last edited by
        #3

        So because someone on the panel asked a fairly open question, which was probably designed just to get you talking, you think the organisation is no good?

        J 1 Reply Last reply
        0
        • J J a a n s

          Last weekend I went for an interview in a Reputed organization. The first question from the interview panel was the difference between VB.Net and C#. I just came back!!! Can any one here spot the differences :)

          "Never put off until run time what you can do at compile time." - David Gries, in "Compiler Construction for Digital Computers", circa 1969.

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #4

          VB.NET is a crap, C# is a truly advanced language. They are functionally equivalent. :rolleyes:

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
          [My articles]

          J L L L 4 Replies Last reply
          0
          • J J a a n s

            Last weekend I went for an interview in a Reputed organization. The first question from the interview panel was the difference between VB.Net and C#. I just came back!!! Can any one here spot the differences :)

            "Never put off until run time what you can do at compile time." - David Gries, in "Compiler Construction for Digital Computers", circa 1969.

            D Offline
            D Offline
            Dylan Morley
            wrote on last edited by
            #5

            I had to maintain some legacy VB 6.0 code the other day I can't use it anymore....my fingers automatically put a semicolon after everything; Can't stop myself;

            T 1 Reply Last reply
            0
            • J J a a n s

              Last weekend I went for an interview in a Reputed organization. The first question from the interview panel was the difference between VB.Net and C#. I just came back!!! Can any one here spot the differences :)

              "Never put off until run time what you can do at compile time." - David Gries, in "Compiler Construction for Digital Computers", circa 1969.

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              And did you pass the test or did you fail to explain the differences? There are real differences between the two languages, e.g. VB.NET has XML literals.

              "WPF has many lovers. It's a veritable porn star!" - Josh Smith

              As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

              My blog | My articles | MoXAML PowerToys | Onyx

              J 1 Reply Last reply
              0
              • M Marcus_Idle

                So because someone on the panel asked a fairly open question, which was probably designed just to get you talking, you think the organisation is no good?

                J Offline
                J Offline
                J a a n s
                wrote on last edited by
                #7

                Marcus_Idle wrote:

                asked a fairly open question

                My discussion was scheduled at 9:30 AM, and was done at 1:30 PM, till then I had to wait there, with out any satisfactory reasons from the HR dept. I was so frustrated when I went to the panel. Listening to the first question from the panel made me think otherwise.

                "Never put off until run time what you can do at compile time." - David Gries, in "Compiler Construction for Digital Computers", circa 1969.

                P A E E 4 Replies Last reply
                0
                • D Dalek Dave

                  C# is what you use when coding for yourself VB is what you use when coding for others higher up the management food chain.

                  ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

                  J Offline
                  J Offline
                  Johnny J
                  wrote on last edited by
                  #8

                  For me it's the other way around... :)

                  1 Reply Last reply
                  0
                  • C CPallini

                    VB.NET is a crap, C# is a truly advanced language. They are functionally equivalent. :rolleyes:

                    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                    [My articles]

                    J Offline
                    J Offline
                    Johnny J
                    wrote on last edited by
                    #9

                    Utterly stupid and biased reply. VB and C# are ALMOST identical, there are no big differences.

                    J C OriginalGriffO G 4 Replies Last reply
                    0
                    • J Johnny J

                      Utterly stupid and biased reply. VB and C# are ALMOST identical, there are no big differences.

                      J Offline
                      J Offline
                      Johnny J
                      wrote on last edited by
                      #10

                      Addenda: I myself prefer VB over C#, but I don't go around saying that C# is crap (because it isn't - just different syntax)

                      I 1 Reply Last reply
                      0
                      • J Johnny J

                        Utterly stupid and biased reply. VB and C# are ALMOST identical, there are no big differences.

                        C Offline
                        C Offline
                        CPallini
                        wrote on last edited by
                        #11

                        [Roger Waters' tone] Do you understand irony, Johnny? [/Roger Waters' tone] BTW it looks like you're a VB coder... ;P --Carlo-The-Utterly-Stupid-And-Biased

                        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                        [My articles]

                        J 1 Reply Last reply
                        0
                        • D Dylan Morley

                          I had to maintain some legacy VB 6.0 code the other day I can't use it anymore....my fingers automatically put a semicolon after everything; Can't stop myself;

                          T Offline
                          T Offline
                          Tom Deketelaere
                          wrote on last edited by
                          #12

                          Dylan Morley wrote:

                          I had to maintain some legacy VB 6.0 code the other day

                          You and your fancy new language, I had / have to maintain vb3 legacy code (but in the process of updating it to .NET :) )

                          1 Reply Last reply
                          0
                          • P Pete OHanlon

                            And did you pass the test or did you fail to explain the differences? There are real differences between the two languages, e.g. VB.NET has XML literals.

                            "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                            As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                            My blog | My articles | MoXAML PowerToys | Onyx

                            J Offline
                            J Offline
                            J a a n s
                            wrote on last edited by
                            #13

                            IMHO C# and VB.Net are two different languages with different language syntax. If we have to spot the differences we can point out hundreds, but they should not cant' be compared like this. Personally I will prefer C# over VB.Net.

                            "Never put off until run time what you can do at compile time." - David Gries, in "Compiler Construction for Digital Computers", circa 1969.

                            P 1 Reply Last reply
                            0
                            • J Johnny J

                              Utterly stupid and biased reply. VB and C# are ALMOST identical, there are no big differences.

                              OriginalGriffO Offline
                              OriginalGriffO Offline
                              OriginalGriff
                              wrote on last edited by
                              #14

                              Well, not quite: VB is based on a "toy" language, invented to let non-programmers do things with computers. It has been forced in lots of different directions until it arrived, creaking at the seams, at it's current state. C# is a "new" language (as in designed with a blank sheet), taking all the lessons learnt from C, C++, VB and others to produce a modern language with modern computers in mind. It has it's faults, but at least it is what it was designed to be.

                              Did you know: That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.

                              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                              "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                              I 1 Reply Last reply
                              0
                              • J J a a n s

                                IMHO C# and VB.Net are two different languages with different language syntax. If we have to spot the differences we can point out hundreds, but they should not cant' be compared like this. Personally I will prefer C# over VB.Net.

                                "Never put off until run time what you can do at compile time." - David Gries, in "Compiler Construction for Digital Computers", circa 1969.

                                P Offline
                                P Offline
                                Pete OHanlon
                                wrote on last edited by
                                #15

                                J a a n s wrote:

                                If we have to spot the differences we can point out hundreds, but they should not cant' be compared like this.

                                Yes they can. It's a valid way to see if someone has taken a more reasoned and detailed look at the common methods to programming .NET. What they are looking for is an understanding of the languages, so that they can see if you are aware of issues such as C# being able to produce code that can't be used in VB.NET, or the use of unsafe. Frankly, your attitude shows that you have little understanding of why somebody would consider this important, and little appreciation of the subtleties of the languages.

                                "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                                As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                                My blog | My articles | MoXAML PowerToys | Onyx

                                1 Reply Last reply
                                0
                                • J J a a n s

                                  Marcus_Idle wrote:

                                  asked a fairly open question

                                  My discussion was scheduled at 9:30 AM, and was done at 1:30 PM, till then I had to wait there, with out any satisfactory reasons from the HR dept. I was so frustrated when I went to the panel. Listening to the first question from the panel made me think otherwise.

                                  "Never put off until run time what you can do at compile time." - David Gries, in "Compiler Construction for Digital Computers", circa 1969.

                                  P Offline
                                  P Offline
                                  Pete OHanlon
                                  wrote on last edited by
                                  #16

                                  J a a n s wrote:

                                  with out any satisfactory reasons from the HR dept

                                  That's their prerogative. If, for instance, they are interviewing lots of people then they, quite frankly, don't have to give you a reason. They are doing you the favour of interviewing you, not the other way round.

                                  "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                                  As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                                  My blog | My articles | MoXAML PowerToys | Onyx

                                  OriginalGriffO J J M J 7 Replies Last reply
                                  0
                                  • C CPallini

                                    [Roger Waters' tone] Do you understand irony, Johnny? [/Roger Waters' tone] BTW it looks like you're a VB coder... ;P --Carlo-The-Utterly-Stupid-And-Biased

                                    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                                    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                                    [My articles]

                                    J Offline
                                    J Offline
                                    Johnny J
                                    wrote on last edited by
                                    #17

                                    Yes, but this didn't strike me as irony, I seems like c actually means it, and I'm so tired of listening to people who are supposed to be intelligent people write such nonsense as this. As for my coding, I code in both C# and VB.NET with same enthusiasm... (or lack thereof, whichever the case might be) :)

                                    C 1 Reply Last reply
                                    0
                                    • P Pete OHanlon

                                      J a a n s wrote:

                                      with out any satisfactory reasons from the HR dept

                                      That's their prerogative. If, for instance, they are interviewing lots of people then they, quite frankly, don't have to give you a reason. They are doing you the favour of interviewing you, not the other way round.

                                      "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                                      As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                                      My blog | My articles | MoXAML PowerToys | Onyx

                                      OriginalGriffO Offline
                                      OriginalGriffO Offline
                                      OriginalGriff
                                      wrote on last edited by
                                      #18

                                      It is very rude, though - 30 mins is ok, but 4 hours is taking the mickey! Especially if the interview is pretty early - 09:30 makes it what, the second of the day? If that is the general attitude of the company, then they don't seem to give a monkeys for the staff. I would probably walk out; it's not as if they are paying me to be there...

                                      Did you know: That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.

                                      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                                      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                                      C 1 Reply Last reply
                                      0
                                      • D Dalek Dave

                                        C# is what you use when coding for yourself VB is what you use when coding for others higher up the management food chain.

                                        ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

                                        M Offline
                                        M Offline
                                        Mycroft Holmes
                                        wrote on last edited by
                                        #19

                                        I had to laugh at this one - I moved the teams from VB to C# about 2 years ago and the MD asked why I had done it, the answer was so he could no longer understand the code. It didn't go down that well in a large meeting.

                                        Never underestimate the power of human stupidity RAH

                                        D 1 Reply Last reply
                                        0
                                        • M Mycroft Holmes

                                          I had to laugh at this one - I moved the teams from VB to C# about 2 years ago and the MD asked why I had done it, the answer was so he could no longer understand the code. It didn't go down that well in a large meeting.

                                          Never underestimate the power of human stupidity RAH

                                          D Offline
                                          D Offline
                                          Dalek Dave
                                          wrote on last edited by
                                          #20

                                          I am under instructions from my boss to only use VB as he can follow it and he knows a tiny bit of VBA so wants it consistant. OK, no probs, but I try to float in c# where I can, simply to confound him from time to time.

                                          ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

                                          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