Results 1 to 18 of 18

Thread: C# vs VB.Net (yet another one...)

  1. #1

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Arrow C# vs VB.Net (yet another one...)

    Aside from speed (I've heard C# is faster than VB.Net), what are the other mitigating factors that would encourage one to learn C# over VB.Net?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  2. #2
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: C# vs VB.Net (yet another one...)

    not again!!!!
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  3. #3

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: C# vs VB.Net (yet another one...)

    yes, again...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  4. #4
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: C# vs VB.Net (yet another one...)

    OK, I'll just give you my 2 cents:
    before you worry about which is better to use, make sure you know what the Framework is all about. What is the FCL, CLR, CTS, GC, blah blah blah.
    Then dig into some MSIL, just do it!

    THEN see if you still have a problem deciding which is best yourself. Ask that question here, and you just start a mud-fight.

    I choose C#. Only because I allready used VB for some time, and it will be easier to move from C# (syntax wise) to C++ and Java. So my motivation is all about creating a path to enable me to learn some new stuff.

    I'm going to unsubscribe from this thread now...I allready know what is coming...
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  5. #5

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: C# vs VB.Net (yet another one...)

    Actually I prefer VB.Net over C# because I came from VB6.0 though I have experience with C/C++ also which I think is somewhat similar to the syntax of C#... What annoys me at times are when I read in newspapers that some company's prefer programmers with C# knowledge rather than VB.Net...

    And to think that they are just both compiled in the same MSIL...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  6. #6
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: C# vs VB.Net (yet another one...)

    well, imagine you are the boss, and knows little about these stuff, and you hear how great .Net is and that C# is specifically created for the .Net. Who you gonna hire?
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  7. #7
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: C# vs VB.Net (yet another one...)

    Reasons:
    - It is a tiny bit faster in some areas.
    - C# is MS flag ship. It gets the newest feautures the first.
    - It has C syntax, (this can both be good and bad)
    - C# programmers are in general (or at least used to) be paid more.
    - It is MS prefered language.

    ANd probably some other reasons.

    But then again. Someone that loves VB.NET can probably write a just as long list on why to use VB.NET in stead of C#. So in the end...it doesn't matter what I think. And an other thing. If you first know C#, then you more or less know VB.NET too. It is just a few syntax changes, and some limitations and you are there. No big deal. So go with the language you feel most comfortable with, or the language your teacher or boss says you should learn, and it all should end in a good way for you too..


    - ØØ -

  8. #8
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: C# vs VB.Net (yet another one...)

    Quote Originally Posted by dee-u
    Actually I prefer VB.Net over C# because I came from VB6.0 though I have experience with C/C++ also which I think is somewhat similar to the syntax of C#... What annoys me at times are when I read in newspapers that some company's prefer programmers with C# knowledge rather than VB.Net...

    And to think that they are just both compiled in the same MSIL...

    On the inside C# is more like VB.NET then C++....


    - ØØ -

  9. #9

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: C# vs VB.Net (yet another one...)

    Quote Originally Posted by NoteMe
    Reasons:
    - It is a tiny bit faster in some areas.
    - C# is MS flag ship. It gets the newest feautures the first.
    - It has C syntax, (this can both be good and bad)
    - C# programmers are in general (or at least used to) be paid more.
    - It is MS prefered language.
    -Tiny bit? Is it tiny enough to be negligible? Is VB.Net a tiny bit faster in some areas also?
    -Never learned about it but why is C# the MS Flag Ship?
    -What if it has C Syntax?
    -Why is it if VB.Net programmers could also do what C# programmers can do?
    -Why is it the MS preferred language?

    Thanks for taking time...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  10. #10
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: C# vs VB.Net (yet another one...)

    Quote Originally Posted by dee-u
    -Tiny bit? Is it tiny enough to be negligible? Is VB.Net a tiny bit faster in some areas also?

    Yes, in most cases it is. Non of those languages are buildt for speed anyway.

    Quote Originally Posted by dee-u
    -Never learned about it but why is C# the MS Flag Ship?
    It is their prefeared language. A lot of their tools and so on are buildt using C# these days. It is an easy to use language, and you get results very fast.

    Quote Originally Posted by dee-u
    -What if it has C Syntax?
    ? C# has C syntax...what do you mean..

    Quote Originally Posted by dee-u
    -Why is it if VB.Net programmers could also do what C# programmers can do?
    What do you mean? They can and they can't. Both languages are buildt on the .NET framework. And in some way or an other a VB.NET programmer can do what a C# programmer can do, even if it doesn't have all the same language feautures.

    Quote Originally Posted by dee-u
    -Why is it the MS preferred language?
    All ready answered.


    - ØØ -

  11. #11

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: C# vs VB.Net (yet another one...)

    Quote Originally Posted by NoteMe
    It is their prefeared language. A lot of their tools and so on are buildt using C# these days. It is an easy to use language, and you get results very fast.
    I thought C was more difficult to learn than VB then why is C# an easy language?

    Quote Originally Posted by NoteMe
    ? C# has C syntax...what do you mean..
    You listed it as a reason on why one would rather choose C# over VB.Net hence I am asking what's the significance if it has C Syntax?

    Quote Originally Posted by NoteMe
    What do you mean? They can and they can't. Both languages are buildt on the .NET framework. And in some way or an other a VB.NET programmer can do what a C# programmer can do, even if it doesn't have all the same language feautures.
    Are there any things that C# programmers can do that VB.Net can't do? If none then why are they being paid more?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  12. #12
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: C# vs VB.Net (yet another one...)

    Quote Originally Posted by dee-u
    I thought C was more difficult to learn than VB then why is C# an easy language?
    Yeah C is more difficult, but don't confuse C with C#. THe only thing they have in common is the C look alike syntax.


    Quote Originally Posted by dee-u
    You listed it as a reason on why one would rather choose C# over VB.Net hence I am asking what's the significance if it has C Syntax?
    Some like C syntax some like Basic syntax. I like C syntax, hence I wrtoe it up. Hence my comment behind that line too. Read it again.


    Quote Originally Posted by dee-u
    Are there any things that C# programmers can do that VB.Net can't do? If none then why are they being paid more?
    [/QUOTE]


    Thats a long storry (that doesn't have a 100% answer). You can read about it here if you have the time:
    http://www.fawcette.com/vsm/2003_07/...tments/ednote/


    - ØØ -

  13. #13
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: C# vs VB.Net (yet another one...)

    C# is better because...

    * On average C# is around 2% faster than VB.Net (from my own benchmarking experience).
    * You can use pointers (Major bonus imho)
    * its more strict than VB.net (even with VB's Option Strict On)
    * It looks nicer () and there are better looping and parameter semantics.

    If speed is important then you can really make C# a lot faster than the nearest VB.net version, pointers are a great optimisation feature.
    I don't live here any more.

  14. #14
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: C# vs VB.Net (yet another one...)

    learn them all!
    ...oh hell, what am I doing here??????
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  15. #15
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: C# vs VB.Net (yet another one...)

    Quote Originally Posted by StrangerInBeijing
    learn them all!
    ...oh hell, what am I doing here??????

    Hehheehe...true though. But that was kind of my point too. If you know one you know them all.


    - ØØ -

  16. #16
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: C# vs VB.Net (yet another one...)

    Heck, I don't know why I am doing this...

    Read this (quite good) forum discussion on the differences between C# and VB, and why C# is prefered
    Also, attached is the whitepaper for differences between the two languages.

    Hack, give me 100 extra points for even considering to reply again to one of these! My ego, my ego!
    Attached Files Attached Files
    Last edited by StrangerInBeijing; Sep 28th, 2005 at 04:28 AM.
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  17. #17

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: C# vs VB.Net (yet another one...)

    Thanks people for taking time... Just want to ask this 'last' question: Is C# always faster than VB.Net (2003 and 2005 versions)? And in what areas does it out-speed VB.Net? Let's say if I write an app in C# does it necessarily mean than the app is faster compared to its equivalent made in VB.Net (with all the optimizations in both versions)?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  18. #18
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256

    Re: C# vs VB.Net (yet another one...)

    Speed is not factor. Knowing both is benificial to you. Once you get past the syntax they are basically the same. I know both but I prefer C#. VB is too wordy and when you I'm reading someone else's code it can become very tedious. Its like reading a book.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width