Wishlist - Things I'd like to see REMOVED from VB
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Wishlist - Things I'd like to see REMOVED from VB

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Posts
    234

    Wishlist - Things I'd like to see REMOVED from VB

    There's been a lot that has been added to the VB language over the last couple of years. And that's great, but I think maybe it's time that a few thing simply went away. Here's my list of things I'd like to see removed from the language (in no particular order).

    1. Default form Instances - Is this really necessary? I know it was removed early on, but then put right back in the next version. If I remember right, it was to help ease the transition for VB6ers to .NET. Here we are nearly 10 years later, and I still see plenty of questions of "why doesn't this work" because people are using the default instance when they shouldn't be.
    2. GoTo - Why is THIS still around? I realize that it's been a part of the BASIC language since Day 1. If we can take out line continuation (which I'm sure was no small undertaking), surely we can get rid of a couple extraneous commands that for the most part most of us avoid and recommend to others to avoid.
    3. On Error GoTo & On Error Resume Next - GoTo previous comment. (as a side note - On Error Resume Next, one of the worst things to happen)


    I thought I had more... but that's all I can think of at the moment. If anyone else wants to add to the list, be my guest. If anyone wants to respond or argue for/against anything in my list, be my guest.

    -tg
    * I don't respond to private requests for help. It's not conducive to the general learning of others.-I also subscribe to all threads I participate, so there's no need to pm when there's an update.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help - how to remove eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to???
    * On Error Resume Next is error ignoring, not error handling(tm). * Use Offensive Programming, not Defensive Programming.
    "There is a major problem with your code, and VB wants to tell you what it is.. but you have decided to put your fingers in your ears and shout 'I'm not listening!'" - si_the_geek on using OERN
    MVP '06-'10
    Share on Google+

  2. #2
    Join Date
    Jun 2010
    Posts
    6

    Re: Wishlist - Things I'd like to see REMOVED from VB

    Hi TechGnome,

    Once something goes into a language we cannot just simply remove it without the potential of breaking tons of applications. We can depreciate things but not remove. This is not just for Visual Basic but for any language. Yes these language constructs are there to make it easier for the traditional VB developer to move to the .NET platform but that doesn't mean that you have to use them.

    What would be better would be to depreciate certian things (like On Error GoTo) and give warnings in the IDE when folks used these older constructs.

    -B
    Share on Google+

  3. #3
    Join Date
    Dec 2007
    Posts
    234

    Re: Wishlist - Things I'd like to see REMOVED from VB

    Oh I get that, and understand. That's why it was a wish list. It's not so much that I have a problem with it, but rather when I see other struggling with it needlessly because they don't fully understand what they are doing. Sadly, I've seen cases where teachers are still using these archaic constructs in their teachings.

    -tg
    * I don't respond to private requests for help. It's not conducive to the general learning of others.-I also subscribe to all threads I participate, so there's no need to pm when there's an update.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help - how to remove eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to???
    * On Error Resume Next is error ignoring, not error handling(tm). * Use Offensive Programming, not Defensive Programming.
    "There is a major problem with your code, and VB wants to tell you what it is.. but you have decided to put your fingers in your ears and shout 'I'm not listening!'" - si_the_geek on using OERN
    MVP '06-'10
    Share on Google+

  4. #4
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,101

    Re: Wishlist - Things I'd like to see REMOVED from VB

    Quote Originally Posted by TechGnome View Post
    Sadly, I've seen cases where teachers are still using these archaic constructs in their teachings.

    -tg
    That is so true, and sad! I'm a teacher myself, and trying to convince "more experienced" users ( more experienced with VB 6 ) that On Error is a huge mistake takes forever, and sadly mostly falls onto deaf ears. I guess most the ex - VB6 - ers are either just being stubborn / blind to the fact that On Error staments do more harm than good.
    Share on Google+

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center