Results 1 to 11 of 11

Thread: C#, VB and the .net framework

  1. #1

    Thread Starter
    Fanatic Member CodedFire's Avatar
    Join Date
    Aug 2007
    Location
    In Cog Neato
    Posts
    568

    Post C#, VB and the .net framework

    So ive been learning C# as part of my get a job plan, i felt if i knew the two main .net languages i could put a .net programmer on my CV as apposed to a VB programer.

    Anyhow, one thing ive noticed is C# is taugth as a language your going to use in a "serious" envoiroment. For instance, a vb refrence book is alot bigger because it list all the common controls and their functionality and proceeds something like this: Intro, Variables, Code Control (looping etc), Controls, Methods and Functions, Classes, Databases, Xml, etc

    C# on the other hand is alot more compact, it shows you the textbox and the button explains what they are and tells you that all controls are fundamentily the same use MSDN library for the workings of other controls.

    Another comparission is how code is structered. For instance the example to make a calculator in vb is structured something like this. Desigin the form, write a method to handle calculations and tie it to the button handlers. In C# though the idea is to design a class that handles the calculations and this way it is independent of the interface. This means you can have the main ide reference the class and also a "test" ide in order to expose any potential bugs. Obviously for a claculator this is not the best design but i the concept really helps understand OO and keeping the interface and bussiness code seperate.

    It just seems that VB is taught as a hobbiest language were as C# is taught more as an everyday language to be used proffessionally. I cant understand why!

    Sorry i know this is a random rant but learning all about each language and the underlying framework is really quite fascinating! It also give great perspective on the two languages and the framework as a whole!
    Languages: Visual Basic 05/08, C# 08
    IDE: Express Editions
    Framework: 2.0, 3.0, 3.5


    Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: C#, VB and the .net framework

    Quote Originally Posted by CodedFire
    Anyhow, one thing ive noticed is C# is taugth as a language your going to use in a "serious" envoiroment...
    I work in what you call "serious envoiroment" and we are VB shop - All the development is done in VB 2005.
    In .Net language is irrelevant because framework is like "one to many" relationship - each class/functionality is equally accessible by any language.
    What's different [mainly] is the syntax. But on your resume you should be more specific about the language you know however.

  3. #3

    Thread Starter
    Fanatic Member CodedFire's Avatar
    Join Date
    Aug 2007
    Location
    In Cog Neato
    Posts
    568

    Re: C#, VB and the .net framework

    Oh i understand that the differences between both languages is not much what i cant understand is why one (vb) is taught in refrences more laxy dazy than the other (c#)
    Languages: Visual Basic 05/08, C# 08
    IDE: Express Editions
    Framework: 2.0, 3.0, 3.5


    Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak

  4. #4

  5. #5

    Thread Starter
    Fanatic Member CodedFire's Avatar
    Join Date
    Aug 2007
    Location
    In Cog Neato
    Posts
    568

    Re: C#, VB and the .net framework

    So would i! i do think that it would be better if writters would treat it the same as C#. Ive ordered some books from Apress im hoping they are better than others as i like their books regarding C# and the framework in general!
    Languages: Visual Basic 05/08, C# 08
    IDE: Express Editions
    Framework: 2.0, 3.0, 3.5


    Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak

  6. #6
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: C#, VB and the .net framework

    Well, just so you are aware that there is no perfect book - never was and never will be.
    Each book however offers something unique despite they all look alike - uniqueness really depends on author's expertise.

    Good luck!

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: C#, VB and the .net framework

    If you are getting that kind of teachings from that book then I would suggest getting another book. check out the books reviews first.

    See the response from the actual Microsoft VB developers:
    http://vbforums.com/showthread.php?t=500243
    http://vbforums.com/showthread.php?t=500263
    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

  8. #8
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: C#, VB and the .net framework

    VB is as serious as C#, they both have the same functionality because deep down they rely on the .NET framework, so that makes them a bit even with all other .Net languages (including IronPython, F#, .... etc)

    The reason writers treat VB as a novice programmer's language is beacuse it's one of the best entrances to the world of programming for people who know English.

    And by the way, the structure of the code is all about the developer, it's never about the language, given that .Net developers depend on the IDE to do the basics (Drag & Drop controls are "Friend" in VB and "private" in C#) but you can always change that. Other than that, it's all you.

    Another reason why VB books are usually for novice is because of the great work Microsoft marketing people are doing to make people capable of creating their own small applications. It's an attraction thing.

    Besides, who can resist using that neat My object
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  9. #9

    Thread Starter
    Fanatic Member CodedFire's Avatar
    Join Date
    Aug 2007
    Location
    In Cog Neato
    Posts
    568

    Re: C#, VB and the .net framework

    @RD: Any book ive used the learn vb is much the same. Its not that its bad i just find that the way they teach C# is better and should be applied to VB. Im glad i started to learn both because although they are syntaticly different they are much the same functionally and i get to learn to different views on how the framewrok can be thought!
    Languages: Visual Basic 05/08, C# 08
    IDE: Express Editions
    Framework: 2.0, 3.0, 3.5


    Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak

  10. #10
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: C#, VB and the .net framework

    The difference may be due to lots of C# programmers coming from C++, and the writers are the fools who think they can make a buck by writing a textbook (Does this include one of the admins here?). Coming from a C++ background, I would expect a different approach than coming to VB either from nothing, or from VB6. Those coming from VB6 would be coming from non-OO to OO, so that might be the issue that made the biggest impact on them. Coming from C++ to C# would be moving from OO to OO, so they might be showing the similarities more than the differences.

    Just a wild ass guess, though.
    My usual boring signature: Nothing

  11. #11

    Thread Starter
    Fanatic Member CodedFire's Avatar
    Join Date
    Aug 2007
    Location
    In Cog Neato
    Posts
    568

    Re: C#, VB and the .net framework

    Actually come to think of it that doesnt sound too far off. I mean if you read Accelarated C++ by keoing and Moo. Their would be great similarities between this style of learning and the style presented in the C# books. The only thing is this style of writing is fundementally flawed.

    Yes you can write larger programs quicker but because you were taught the implementation without the theory of any given piece of code you can only apply it in the context of which you first learned it.

    That being said the best refrences i have come across yet have to be Wrox. Although their books can be huge they are written very thoughtfully and are well rounded!
    Languages: Visual Basic 05/08, C# 08
    IDE: Express Editions
    Framework: 2.0, 3.0, 3.5


    Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak

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