Results 1 to 17 of 17

Thread: VB or C#? I have to convince another programmer.

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2003
    Posts
    830

    VB or C#? I have to convince another programmer.

    Hello,

    We are about to rewrite a 40,000 line VB6 application. Should we use VB.NET or C#?....AND WHY?

    Thanks!

  2. #2
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: VB or C#? I have to convince another programmer.

    I would recommend C#. Some reasons: Power and reusability, Standards, C# programmers earn more..
    Check out this thread..
    http://www.vbforums.com/showthread.php?t=379274

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: VB or C#? I have to convince another programmer.

    I would reccommend VB.NET. The conversion will be easier and simpler for you guys, and since it was written in VB6 anyways, it would be logical to continue development in the VB6-related language: VB.NET.

  4. #4
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196

    Re: VB or C#? I have to convince another programmer.

    In theory some could do VB and others c# but in reality why bother. Your choice should probable be based on peoples experience. If most developers are familiar with curly bracket type languages then go c#. If they are only used to VB then stick with that. As developers they should be able to pick up any language relatively quickly.

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: VB or C#? I have to convince another programmer.

    It's odd now, we can actually look at them as the 'curly bracket' language and the 'lots-of-words' language. That's one outcome of the ease of portability

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: VB or C#? I have to convince another programmer.

    Neither of them are really related to VB6, and C# has the advantages mentioned by jcis above, so I'd reccommend it. But there's hardly a difference either way.

  7. #7
    Addicted Member MasterBlaster's Avatar
    Join Date
    Jul 2002
    Location
    Seattle
    Posts
    196

    Re: VB or C#? I have to convince another programmer.

    Use the bus theory. "If someone gets hit by a bus it will be eaiser to replace a C# coder than a VB.net coder.
    "And most of the evils of society can, in fact, be cured through information. We have a society that has been disinformed and based on the disinformation has made irrational choices. And that's what I mean by 'ignorance.' People, who ordinarily might be smart, are deprived of the data by which to make a rational decision, don't have the data to do it."
    Frank Zappa

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  9. #9
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: VB or C#? I have to convince another programmer.

    Either will do the job. If the app is currently written in VB6 then I doubt that it requires anything that C# would do better than VB.NET. I think that the first consideration should be what experience the people doing the conversion have. If some already have experience with one language then that should probably be the one you choose. If noone has experience with either then the next consideration should probably be that it is probably going to be easier to port from VB6 to VB.NET than to C#, if only because the syntaxes are more similar. That's not to say that it's not a stepp learnign curve to go from VB6 to VB.NET because the differences are marked. Sometimes VB6 experience can actually hinder your uptake of VB.NET because you can tend to fight the language to make it work like VB6 instead of changing your ways to work like VB.NET. The other consideration should be what you think the choice will mean long term, both for this app and for the developers. All else being equal, C# is probably a better choice for the developers, although obviously not if they specifically need VB.NET for some other projects.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  10. #10
    Fanatic Member Slaine's Avatar
    Join Date
    Jul 2002
    Posts
    641

    Re: VB or C#? I have to convince another programmer.

    VB.NET is closer to C# than VB6 so I doubt it would make much difference.

    If it was my decision, and it meant retraining/refreshing was required I would go with which ever skillset I thought would get me the most money in the market place when I moved on
    Martin J Wallace (Slaine)

  11. #11
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB or C#? I have to convince another programmer.

    Quote Originally Posted by Slaine
    If it was my decision, and it meant retraining/refreshing was required I would go with which ever skillset I thought would get me the most money in the market place when I moved on
    This is the most relevant reason right here.

  12. #12
    Banned
    Join Date
    Oct 2005
    Posts
    22

    Re: VB or C#? I have to convince another programmer.

    C# is better in almost every respect. I was hired as a VB.net programmer but I was able to argue that C# was more suitable for commercial applications and now 100% of my code is C#.

    The reasons are almost endless, VB.net is always playing catch-up to C# in every new release anyway. Personally I find it easier to write C# because manual refactoring of the code is often a lot easier and there are many more low-level (well, low-ish) features such as pointers, fixed() and stackalloc[]. Plus things like strings are more advanced and the endless concatenation of constants to strings is greatly reduced.

    C# is also between 1% and 3% faster across the board than VB.net, (this can be verified by benchmarking, have a go ).

    Don't listen to all that crap about re-training either, a VB6 programmer WILL find it easier to re-train into C# than into VB.Net. VB.Net is too close (syntax wise) to VB6 and it tricks you into making loads of stupid mistakes. C# on the other hand feels completely different and you'll make the transition much faster.

    If you go from VB6 to VB.net you WILL forget most of what you know about VB6 and you will find it incredibly hard to go back to VB6 (when you need to maintain old code). C# will let you retain your old Vb6 knowledge.

    Mendhak, recommending Vb.net? For shame.

  13. #13
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB or C#? I have to convince another programmer.

    Quote Originally Posted by ~teh_pwn3rz~
    .... a VB6 programmer WILL find it easier to re-train into C# than into VB.Net. VB.Net is too close (syntax wise) to VB6 and it tricks you into making loads of stupid mistakes. C# on the other hand feels completely different and you'll make the transition much faster.

    If you go from VB6 to VB.net you WILL forget most of what you know about VB6 and you will find it incredibly hard to go back to VB6 (when you need to maintain old code). C# will let you retain your old Vb6 knowledge.
    These are two outstanding points neither of which I'd considered.

  14. #14
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: VB or C#? I have to convince another programmer.

    Both of which are not entirely true. The validity of both of the points depends upon the programmer's own competency.

  15. #15
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: VB or C#? I have to convince another programmer.

    I think that a feature should be added to this forum where every sentence has "I think that " added to the beginning of it by default. You're all stating your opinion as though it was fact. Now if you'd all just accept my opinion as fact then we'd have no problem... except for all the stuff breaking all over the place of course.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  16. #16
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: VB or C#? I have to convince another programmer.

    Didn't you learn in Physics class (Grade 11) that whatever Mendhak states is divine truth?

    (And that the universe revolves around mendhak, but that is merely conjencture at this point in time.)

  17. #17
    Banned
    Join Date
    Oct 2005
    Posts
    22

    Re: VB or C#? I have to convince another programmer.

    We don't have grades in the UK, we just have to repeat the first year until we are old enough to vote.

    In response to jmcihlihiiihlhinney (sp? ) I do actually know what I'm on about, having been on all 3 sides of this pseudo-philosophical meta-fence. I speak the truth yound paduan.

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