🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.folklore.computers
Article #623733

Re: The birth of BASIC

#623733
From: hanc...
Date: Mon, 04 Jun 2018 19:44
26 lines
3018 bytes
On Sunday, June 3, 2018 at 10:02:43 AM UTC-4, Andrew Swallow wrote:
> On 02/06/2018 20:11, hanc...@bbs.cpcn.com wrote:
> > On Saturday, June 2, 2018 at 12:19:34 PM UTC-4, Andrew Swallow wrote:
> > 
> >> The writers of BASIC obviously knew FORTRAN. They chose GOTOs over blocks.
> > 
> > BASIC had GOSUB.  Some BASIC's had CHAIN.
> > 
> 
> GOSUB is a CALL statement without parameters. Although GOSUB is 
> recursive. However having to implement variables as arrays shows how 
> inelegant actually recursion is.

The earlier simpler versions of BASIC allowed only a branch in an
IF statement, e.g. IF A=B THEN {go to branch}.  Later versions
allowed an imperative statement after the THEN as well as some
logical arrangement, such as ELSE.  M/S QuickBasic allowed SELECT CASE.

My point is that even back circa 1970, programmers were making
their programs modular, even in BASIC.  While it might not have
been "pure" structured programming, it was a step forward.  By
then, programmers realized that in complicated programs spaghetti
code was bad and endeavored to avoid it.

As someone else mentioned, just having a "structured" program without
GOTO's did not eliminate the risk of creating confusing spaghetti code.
Technical Details
Message-ID: <d9b980e0-d47c-4eaf-85b5-af6a985107be@googlegroups.com>
Path: mbox-mo1.pugleaf.net!p41-v6ni3076qtp.1!nntp.google.com!x25-v6no3440190qto.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
References: <874lisvjda.fsf@usenet.ankman.de> <fnammmFl3d5U4@mid.individual.net> <pep9gi$ssu$1@dont-email.me> <877enj7cme.fsf@usenet.ankman.de> <2111hdh5qbjo4o6ot3n9cuqfgk1pqdn8ck@4ax.com> <86ad7a17-fbd3-4056-98aa-91e1b38932ce@googlegroups.com> <1778842547.549582573.514335.peter_flass-yahoo.com@news.eternal-september.org> <-8-dnaDqYe0JXo_GnZ2dnUU78bmdnZ2d@giganews.com> <68034291-0143-4693-b8fe-755df7f87322@googlegroups.com> <PcqdnYC22cafaI7GnZ2dnUU78S3NnZ2d@giganews.com>

Show Full Headers
Complete Article Headers
X-Received: by 2002:ac8:12cb:: with SMTP id b11-v6mr5558426qtj.61.1528141485536;        Mon, 04 Jun 2018 12:44:45 -0700 (PDT)
X-BeenThere: alt.folklore.computers@googlegroups.com
Received: by 2002:a0c:d606:: with SMTP id c6-v6ls12561231qvj.7.gmail; Mon, 04 Jun 2018 12:44:44 -0700 (PDT)
X-Received: by 2002:a0c:d687:: with SMTP id k7-v6mr4995qvi.22.1528141484809;        Mon, 04 Jun 2018 12:44:44 -0700 (PDT)
X-Received: by 2002:a25:d0c4:: with SMTP id h187-v6mr1014189ybg.9.1528141484678; Mon, 04 Jun 2018 12:44:44 -0700 (PDT)
Path: mbox-mo1.pugleaf.net!p41-v6ni3076qtp.1!nntp.google.com!x25-v6no3440190qto.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: alt.folklore.computers
Date: Mon, 4 Jun 2018 12:44:44 -0700 (PDT)
In-Reply-To: <PcqdnYC22cafaI7GnZ2dnUU78S3NnZ2d@giganews.com>
Complaints-To: groups...@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=8.41.192.198; posting-account=WKyNOQkAAACNglsCZiIox1kdy9R-66KH
NNTP-Posting-Host: 8.41.192.198
References: <874lisvjda.fsf@usenet.ankman.de> <fnammmFl3d5U4@mid.individual.net> <pep9gi$ssu$1@dont-email.me> <877enj7cme.fsf@usenet.ankman.de> <2111hdh5qbjo4o6ot3n9cuqfgk1pqdn8ck@4ax.com> <86ad7a17-fbd3-4056-98aa-91e1b38932ce@googlegroups.com> <1778842547.549582573.514335.peter_flass-yahoo.com@news.eternal-september.org> <-8-dnaDqYe0JXo_GnZ2dnUU78bmdnZ2d@giganews.com> <68034291-0143-4693-b8fe-755df7f87322@googlegroups.com> <PcqdnYC22cafaI7GnZ2dnUU78S3NnZ2d@giganews.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d9b980e0-d47c-4eaf-85b5-af6a985107be@googlegroups.com>
Subject: Re: The birth of BASIC
From: hanc...@bbs.cpcn.com
Injection-Date: Mon, 04 Jun 2018 19:44:44 +0000
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit