Re: VB6, VB2005, or Something Else?



Paul,

¤ > Whatever opinions a C programmer has concerning VB isn't relevant if
they
¤ > don't use it.
¤
¤ Couldn't the same be said of those who don't use GoSub?
¤

Don't think the logic is the same. Since GoSub is part of the language
you're
using and familiar with, it's very easy to determine whether it is
appropriate.

Bob gives us a good illustration. I use Word very superficially (probably
about 1% of its total funcionality), but I do use it a lot. I don't think
that I am in a position to say what should or shouldn't be removed, because,
even if I don't use that certain funcionality, it is not up to me to say
that it is worthless.

¤ > ¤ We work for companies that sell programs.
¤ >
¤ > And that would be the only code you've ever written?
¤ >
¤ > Dan used to be an MVP. Just about all language MVPs who work the
¤ > newsgroups or Web forums post code
¤ > examples.
¤
¤ Generally code posted in the forums are short secuences to solve certain
¤ problems. It is vary rare to use GoSub in those stiuations. It is much
more
¤ common in business logic, but I doubt if business logic is ever posted
on a
¤ forum, or on a web page for that matter.

Actually that is probably a legitimate point. But then that would probably
limit
its use. Just from my experience, at least when I was consulting, I saw
quite a
bit of Visual Basic spaghetti code (mostly GoTo stuff), but I can't recall
any
instance where GoSub was used.

But you have to admit there are quite a few complete code examples on the
web,
such as those for components and more detailed and involved tasks, which
don't
use GoSub.

People stopped using GoSub (or never started) because it was looked down
upon. Just like C programmers looked down upon VB programmers. I would
imagine that most would be *embarased* to post code with GoSubs in it. I
personally found GoSub very useful, and could care less what others think.

Gary


.



Relevant Pages

  • Re: VB6, VB2005, or Something Else?
    ... ¤> language and it can be easily ... But if you're using several GoSubs in a Sub or Function then it's ... The ability to write bad code is not an excuse to use GoSub. ... I'd have to use a knife, but I would miss the screwdriver. ...
    (microsoft.public.vb.general.discussion)
  • Re: VB6, VB2005, or Something Else?
    ... By the way, the preformance of Gosub in PCode was quite good, it ... ¤ ... I'm not complaining about the necessary changes, ... that Microsoft intentionally and unnecessarily made it more difficult. ...
    (microsoft.public.vb.general.discussion)
  • Re: VB6, VB2005, or Something Else?
    ... ¤> ¤ vFred. ... ¤> No one was really complaining about the removal of GoSub other than ... probably DOS BASIC apps and not Visual Basic apps. ... as they had never worked with a BASIC language before and had little or no ...
    (microsoft.public.vb.general.discussion)
  • Re: VB6, VB2005, or Something Else?
    ... ¤ Paul, ... But if you're using several GoSubs in a Sub or Function then it's spaghetti code and I'm not ... The ability to write bad code is not an excuse to use GoSub. ... ¤> Not sure how you can say the majority of serious programmers used GoSub. ...
    (microsoft.public.vb.general.discussion)
  • Re: VB6, VB2005, or Something Else?
    ... ¤> Replacing GoSub code is trivial. ... have spaghetti code then hopefully you understand how it got that way to begin with. ... ¤> converting their GoSub code to equivalent Visual Basic.NET code. ...
    (microsoft.public.vb.general.discussion)

Loading