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 62 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.
  • 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
    • J Johnny J

      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 Offline
      C Offline
      CPallini
      wrote on last edited by
      #21

      Johnny J. wrote:

      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.

      There was irony. Roughly speaking, the languages are functionally equivalent so there must NOT be a big difference between (and there must be a big difference between VB6 and VB.NET). You can't say VB.NET is a crap, while saying C# is advanced, just because you like more the latter one's syntax. :)

      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]

      L J 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.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #22

        Division is different (and weird and confusing) in VB unless you use a backslash

        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.

          J Offline
          J Offline
          JHizzle
          wrote on last edited by
          #23

          I've had this ina few interviews, they usually just wanted to guage my understanding of the .NET framework. In the more recent one, it was because they knew I came from a C# background and they're predominantly a VB.NET house so wanted to make sure that I could switch ok.

          1 Reply Last reply
          0
          • C CPallini

            Johnny J. wrote:

            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.

            There was irony. Roughly speaking, the languages are functionally equivalent so there must NOT be a big difference between (and there must be a big difference between VB6 and VB.NET). You can't say VB.NET is a crap, while saying C# is advanced, just because you like more the latter one's syntax. :)

            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]

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #24

            'C#' == 0x4323 'VB' == 0x5642 0x5642 > 0x4323 So this proves that 'VB' is greater than 'C#' and because 'C++' is 0x432b2b it is the greatest. Best Wishes, -David Delaune

            C OriginalGriffO 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.

              L Offline
              L Offline
              leppie
              wrote on last edited by
              #25

              J a a n s wrote:

              The first question from the interview panel was the difference between VB.Net and C#.

              I would just answer: "I am here for a C# job, did you see VB.NET on my resume?"

              xacc.ide
              IronScheme - 1.0 RC 1 - out now!
              ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition

              J 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

                J Offline
                J Offline
                J4amieC
                wrote on last edited by
                #26

                Pete O'Hanlon wrote:

                They are doing you the favour of interviewing you, not the other way round.

                Rubbish. Or at least not the way I look at interviews. I can take any job I please, they are looking for 1 individual. Therefore Im doing them the favour of offering my services, if they don't cut the mustard (and that includes shoddy interview/working practices) I hit the door and walk into the next interview. At the very least, Interviews are a 2 way process - with me interviewing the company just as equally as they are interviewing me.

                R P 2 Replies Last reply
                0
                • L Lost User

                  'C#' == 0x4323 'VB' == 0x5642 0x5642 > 0x4323 So this proves that 'VB' is greater than 'C#' and because 'C++' is 0x432b2b it is the greatest. Best Wishes, -David Delaune

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

                  Well, I fear the VB6 coder testing your method...Oh, well, after all he/she is a VB6 coder. :)

                  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]

                  1 Reply Last reply
                  0
                  • L Lost User

                    'C#' == 0x4323 'VB' == 0x5642 0x5642 > 0x4323 So this proves that 'VB' is greater than 'C#' and because 'C++' is 0x432b2b it is the greatest. Best Wishes, -David Delaune

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

                    I'm sorry, but Alphabetical order takes precedence!

                    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

                    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

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

                      It was a scheduled one. They gave me the time slot 4 days back.

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

                      1 Reply Last reply
                      0
                      • C CPallini

                        Johnny J. wrote:

                        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.

                        There was irony. Roughly speaking, the languages are functionally equivalent so there must NOT be a big difference between (and there must be a big difference between VB6 and VB.NET). You can't say VB.NET is a crap, while saying C# is advanced, just because you like more the latter one's syntax. :)

                        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
                        #30

                        OK; sorry, nothing personal. I'm just tired of the whole VB/C# tug-o-war... :) Or just tired, full stop!

                        1 Reply Last reply
                        0
                        • L leppie

                          J a a n s wrote:

                          The first question from the interview panel was the difference between VB.Net and C#.

                          I would just answer: "I am here for a C# job, did you see VB.NET on my resume?"

                          xacc.ide
                          IronScheme - 1.0 RC 1 - out now!
                          ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition

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

                          :thumbsup: Good one, I think you're getting the job... :laugh:

                          1 Reply Last reply
                          0
                          • J J4amieC

                            Pete O'Hanlon wrote:

                            They are doing you the favour of interviewing you, not the other way round.

                            Rubbish. Or at least not the way I look at interviews. I can take any job I please, they are looking for 1 individual. Therefore Im doing them the favour of offering my services, if they don't cut the mustard (and that includes shoddy interview/working practices) I hit the door and walk into the next interview. At the very least, Interviews are a 2 way process - with me interviewing the company just as equally as they are interviewing me.

                            R Offline
                            R Offline
                            R Giskard Reventlov
                            wrote on last edited by
                            #32

                            Agreed: If I don't get seen within 15 minutes of the agreed time I start asking questions and, without a proper reason for the delay, I leave. It's just plain bloody rude to expect someone to give up their time and then keep them waiting without even bothering to tell them why.

                            me, me, me "The dinosaurs became extinct because they didn't have a space program. And if we become extinct because we don't have a space program, it'll serve us right!" Larry Niven nils illegitimus carborundum

                            J 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]

                              L Offline
                              L Offline
                              Luc Pattyn
                              wrote on last edited by
                              #33

                              CPallini wrote:

                              C# is a truly advanced language.

                              You're starting to make sense...

                              CPallini wrote:

                              They are functionally equivalent.

                              ...for a short moment. Yes there are some functional overlaps. You of all people should know VB.NET doesn't offer pointers. :-D

                              Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


                              I only read formatted code with indentation, so please use PRE tags for code snippets.


                              I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).


                              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

                                M Offline
                                M Offline
                                Mark_Wallace
                                wrote on last edited by
                                #34

                                Pete O'Hanlon wrote:

                                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.

                                If that's the respect they show you when you don't yet work for them, what can you expect when you take the job?

                                I wanna be a eunuchs developer! Pass me a bread knife!

                                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.

                                  M Offline
                                  M Offline
                                  Mark_Wallace
                                  wrote on last edited by
                                  #35

                                  ;

                                  I wanna be a eunuchs developer! Pass me a bread knife!

                                  1 Reply Last reply
                                  0
                                  • J J4amieC

                                    Pete O'Hanlon wrote:

                                    They are doing you the favour of interviewing you, not the other way round.

                                    Rubbish. Or at least not the way I look at interviews. I can take any job I please, they are looking for 1 individual. Therefore Im doing them the favour of offering my services, if they don't cut the mustard (and that includes shoddy interview/working practices) I hit the door and walk into the next interview. At the very least, Interviews are a 2 way process - with me interviewing the company just as equally as they are interviewing me.

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

                                    J4amieC wrote:

                                    I can take any job I please, they are looking for 1 individual. Therefore Im doing them the favour of offering my services, if they don't cut the mustard (and that includes shoddy interview/working practices) I hit the door and walk into the next interview.

                                    In a strong employment market, this is the case. The reality, at the moment, is that I don't need to hire you - there are a lot of others who would be willing to take the job. It's a hirers market at the moment and if you need a job, you can't afford to be that choosy; unless you fancy flipping burgers.

                                    "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 T M J J 6 Replies Last reply
                                    0
                                    • L Luc Pattyn

                                      CPallini wrote:

                                      C# is a truly advanced language.

                                      You're starting to make sense...

                                      CPallini wrote:

                                      They are functionally equivalent.

                                      ...for a short moment. Yes there are some functional overlaps. You of all people should know VB.NET doesn't offer pointers. :-D

                                      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


                                      I only read formatted code with indentation, so please use PRE tags for code snippets.


                                      I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).


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

                                      Luc Pattyn wrote:

                                      Yes there are some functional overlaps

                                      :-D

                                      Luc Pattyn wrote:

                                      C# is a truly advanced language.

                                      Luc Pattyn wrote:

                                      VB.NET doesn't offer pointers.

                                      :laugh:

                                      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]

                                      1 Reply Last reply
                                      0
                                      • P Pete OHanlon

                                        J4amieC wrote:

                                        I can take any job I please, they are looking for 1 individual. Therefore Im doing them the favour of offering my services, if they don't cut the mustard (and that includes shoddy interview/working practices) I hit the door and walk into the next interview.

                                        In a strong employment market, this is the case. The reality, at the moment, is that I don't need to hire you - there are a lot of others who would be willing to take the job. It's a hirers market at the moment and if you need a job, you can't afford to be that choosy; unless you fancy flipping burgers.

                                        "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
                                        J4amieC
                                        wrote on last edited by
                                        #38

                                        I agree in general. But I personally have experience, knowledge and good interview technique. Therefore its always a hiree's market. If a company is after a candidate who is willing to wait 4 hrs without ecxplaination, they're not after me.

                                        D L 2 Replies 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.

                                          A Offline
                                          A Offline
                                          Adriaan Davel
                                          wrote on last edited by
                                          #39

                                          Whatever the market, if they don't respect you enough to atleast apologise with a reason for the delay, don't bother, once you start there you will be considered cannon fodder...

                                          ____________________________________________________________ Be brave little warrior, be VERY brave

                                          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