Re: Joy of this, Joy of that

Liste des GroupesRevenir à col misc 
Sujet : Re: Joy of this, Joy of that
De : tnp (at) *nospam* invalid.invalid (The Natural Philosopher)
Groupes : comp.os.linux.misc
Date : 22. Nov 2024, 20:30:24
Autres entêtes
Organisation : A little, after lunch
Message-ID : <vhqm4g$1aarf$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Mozilla Thunderbird
On 22/11/2024 13:37, Pancho wrote:
On 11/22/24 10:35, The Natural Philosopher wrote:
On 21/11/2024 23:04, Pancho wrote:
On 11/21/24 15:45, 186282@ud0s4.net wrote:
On 11/21/24 3:09 AM, Pancho wrote:
On 11/20/24 21:05, Rich wrote:
John Ames <commodorejohn@gmail.com> wrote:
On Wed, 20 Nov 2024 03:37:58 -0500
"186282@ud0s4.net" <186283@ud0s4.net> wrote:
>
Hmmmmmmmm ... how many now have EVER programmed in BASIC ? Should do
a survey .....
>
Lord, who hasn't!? Well, probably depends on how you choose to qualify
it - we still use VB6 in-house at $EMPLOYER, and FreeBASIC is my go-to
for hacking together quick utility applications in daily life, but I
haven't touched old-school line-number spaghetti-Gotoese BASIC since
childhood, and certainly never built any application of real complexity
with it. Bet more than a few people here have, though, especially if we
cross-posted over to a.f.computers...
>
Given the typical age of most posters here, I'd say nearly every one of
us has written /something/ in one or more of the 75 different variants
of "BASIC" that have existed over time.
>
>
For me: BBC Basic, VAX Basic, Visual Basic (&VBA).
>
GOTO was deprecated before BBC Basic circa 1981. I never really saw it, apart from reasonable GOTO error usages. Wasn't it more a sign of lack of training than a linguistic feature?
>
   I found a good way to use GOTO however - in a handheld
   device where you had to enter several kinds of data
   about a location. The structure was a sort of "ladder"
   and pressing buttons would take you up and down the
   ladder via GOTOs. If you needed to edit yer last entry
   you just jumped one step up. The handheld only had a
   4-line display alas, so you couldn't show even one
   entire record, only one prompt at a time.
>
   Now each entry was only a few lines of code - the input,
   an error-detector and the up/down GOTO thing. Easy to
   keep track of. GOTO made the pgm simpler and more
   compact.
>
Sounds like a jump table. We still do that, but with functions rather than jumps.
>
Case statements...
>
In OO, switch/case statements were deprecated too :-) I can't remember exactly why. I think it was because we were supposed to use polymorphism instead.
 In practical project terms, giant switch statements were a pain in the bum, because everyone would constantly be modifying that bit of code and you would get source code merge conflicts.
 It's coming back to me, VAX BASIC programs would be designed to consist of a massive "do processing" loop, which would consist of a big switch statement containing a case for every type of report or behaviour the program was supposed to handle. Every time a new report was added, the switch had a case added.
 Then it reminds me of the Gang of Four visitor pattern, every time I saw it, it took me a whole morning's thinking energy to understand that it was just a simple switch :-).
 Coding is always a balance between flexibility and clarity, there is no "right" answer. You can make code more flexible by adding another layer of indirection, but it becomes harder to understand.
 
I echo that. The 'nogoto' was really a fool's rule. The wise man's guidance was 'make it clear what you are doing because you  or someone else - may need to understand it in a years time'
I dpnt find OO in general makes code easier to understand.

  
--
Of what good are dead warriors? … Warriors are those who desire battle more than peace. Those who seek battle despite peace. Those who thump their spears on the ground and talk of honor. Those who leap high the battle dance and dream of glory … The good of dead warriors, Mother, is that they are dead.
Sheri S Tepper: The Awakeners.

Date Sujet#  Auteur
19 Nov 24 * Joy of this, Joy of that806root
20 Nov 24 +* Re: Joy of this, Joy of that4Lawrence D'Oliveiro
20 Nov 24 i`* Re: Joy of this, Joy of that3root
20 Nov 24 i +- Re: Joy of this, Joy of that1Lawrence D'Oliveiro
20 Nov 24 i `- Re: Joy of this, Joy of that1rbowman
20 Nov 24 `* Re: Joy of this, Joy of that801186282@ud0s4.net
20 Nov 24  +* Re: Joy of this, Joy of that193Rich
20 Nov 24  i+- Re: Joy of this, Joy of that1The Natural Philosopher
21 Nov 24  i`* Re: Joy of this, Joy of that191186282@ud0s4.net
21 Nov 24  i +* Re: Joy of this, Joy of that2Lawrence D'Oliveiro
14 Jan 25  i i`- Re: Joy of this, Joy of that1Bozo User
21 Nov 24  i +* Re: Joy of this, Joy of that187The Natural Philosopher
22 Nov 24  i i`* Re: Joy of this, Joy of that186Don_from_AZ
22 Nov 24  i i `* Re: Joy of this, Joy of that185Lawrence D'Oliveiro
23 Nov 24  i i  `* Re: Joy of this, Joy of that184186282@ud0s4.net
23 Nov 24  i i   +* Re: Joy of this, Joy of that5Lawrence D'Oliveiro
24 Nov 24  i i   i`* Re: Joy of this, Joy of that4186282@ud0s4.net
24 Nov 24  i i   i +* Re: Joy of this, Joy of that2Lawrence D'Oliveiro
24 Nov 24  i i   i i`- Re: Joy of this, Joy of that1186282@ud0s4.net
24 Nov 24  i i   i `- Re: Joy of this, Joy of that1rbowman
23 Nov 24  i i   `* Re: Joy of this, Joy of that178The Natural Philosopher
23 Nov 24  i i    +- Re: Joy of this, Joy of that1rbowman
23 Nov 24  i i    +- Re: Joy of this, Joy of that1Lawrence D'Oliveiro
24 Nov 24  i i    +* Re: Joy of this, Joy of that174186282@ud0s4.net
24 Nov 24  i i    i+- Re: Joy of this, Joy of that1rbowman
24 Nov 24  i i    i`* Re: Joy of this, Joy of that172Rich
24 Nov 24  i i    i +* Re: Joy of this, Joy of that168The Natural Philosopher
24 Nov 24  i i    i i+* Re: Joy of this, Joy of that159Rich
24 Nov 24  i i    i ii`* Re: Joy of this, Joy of that158D
25 Nov 24  i i    i ii `* Re: Joy of this, Joy of that157rbowman
25 Nov 24  i i    i ii  `* Re: Joy of this, Joy of that156D
25 Nov 24  i i    i ii   `* Re: Joy of this, Joy of that155The Natural Philosopher
25 Nov 24  i i    i ii    +* Re: Joy of this, Joy of that15D
26 Nov 24  i i    i ii    i`* Re: Joy of this, Joy of that14rbowman
26 Nov 24  i i    i ii    i +- Re: Joy of this, Joy of that1D
26 Nov 24  i i    i ii    i `* Re: Joy of this, Joy of that12Pancho
26 Nov 24  i i    i ii    i  `* Re: Joy of this, Joy of that11Rich
26 Nov 24  i i    i ii    i   +* Re: Joy of this, Joy of that2Chris Ahlstrom
27 Nov 24  i i    i ii    i   i`- Re: Joy of this, Joy of that1Pancho
26 Nov 24  i i    i ii    i   `* Re: Joy of this, Joy of that8rbowman
26 Nov 24  i i    i ii    i    +* Re: Joy of this, Joy of that4D
27 Nov 24  i i    i ii    i    i+- Re: Joy of this, Joy of that1Rich
27 Nov 24  i i    i ii    i    i`* Re: Joy of this, Joy of that2rbowman
27 Nov 24  i i    i ii    i    i `- Re: Joy of this, Joy of that1D
27 Nov 24  i i    i ii    i    `* Re: Joy of this, Joy of that3The Natural Philosopher
27 Nov 24  i i    i ii    i     `* Re: Joy of this, Joy of that2rbowman
28 Nov 24  i i    i ii    i      `- Re: Joy of this, Joy of that1The Natural Philosopher
25 Nov 24  i i    i ii    `* Re: Joy of this, Joy of that139Lawrence D'Oliveiro
27 Nov 24  i i    i ii     `* Re: Joy of this, Joy of that138186282@ud0s4.net
27 Nov 24  i i    i ii      `* Re: Joy of this, Joy of that137Lawrence D'Oliveiro
28 Nov 24  i i    i ii       `* Re: Joy of this, Joy of that136186282@ud0s4.net
28 Nov 24  i i    i ii        +* Re: Joy of this, Joy of that133rbowman
28 Nov 24  i i    i ii        i`* Re: Joy of this, Joy of that132186282@ud0s4.net
28 Nov 24  i i    i ii        i +* Re: Joy of this, Joy of that3rbowman
29 Nov 24  i i    i ii        i i`* Re: Joy of this, Joy of that2186282@ud0s4.net
29 Nov 24  i i    i ii        i i `- Re: Joy of this, Joy of that1rbowman
28 Nov 24  i i    i ii        i `* Re: Joy of this, Joy of that128Lawrence D'Oliveiro
29 Nov 24  i i    i ii        i  `* Re: Joy of this, Joy of that127186282@ud0s4.net
29 Nov 24  i i    i ii        i   +* Re: Joy of this, Joy of that116rbowman
30 Nov 24  i i    i ii        i   i`* Re: Joy of this, Joy of that115186282@ud0s4.net
30 Nov 24  i i    i ii        i   i +- Re: Joy of this, Joy of that1Lawrence D'Oliveiro
30 Nov 24  i i    i ii        i   i `* Re: Joy of this, Joy of that113rbowman
30 Nov 24  i i    i ii        i   i  +* Re: Joy of this, Joy of that2The Natural Philosopher
1 Dec 24  i i    i ii        i   i  i`- Re: Joy of this, Joy of that1Lawrence D'Oliveiro
1 Dec 24  i i    i ii        i   i  `* Re: Joy of this, Joy of that110186282@ud0s4.net
1 Dec 24  i i    i ii        i   i   +* Re: Joy of this, Joy of that5The Natural Philosopher
1 Dec 24  i i    i ii        i   i   i+* Re: Joy of this, Joy of that2Rich
3 Dec 24  i i    i ii        i   i   ii`- Re: Joy of this, Joy of that1186282@ud0s4.net
1 Dec 24  i i    i ii        i   i   i+- Re: Joy of this, Joy of that1D
2 Dec 24  i i    i ii        i   i   i`- Re: Joy of this, Joy of that1186282@ud0s4.net
1 Dec 24  i i    i ii        i   i   +* Re: Joy of this, Joy of that2Lawrence D'Oliveiro
3 Dec 24  i i    i ii        i   i   i`- Re: Joy of this, Joy of that1186282@ud0s4.net
1 Dec 24  i i    i ii        i   i   `* Re: Joy of this, Joy of that102rbowman
3 Dec 24  i i    i ii        i   i    `* Re: Joy of this, Joy of that101186282@ud0s4.net
3 Dec 24  i i    i ii        i   i     +* Re: Joy of this, Joy of that2The Natural Philosopher
3 Dec 24  i i    i ii        i   i     i`- Re: Joy of this, Joy of that1rbowman
3 Dec 24  i i    i ii        i   i     `* Re: Joy of this, Joy of that98rbowman
5 Dec 24  i i    i ii        i   i      `* Re: Joy of this, Joy of that97186282@ud0s4.net
5 Dec 24  i i    i ii        i   i       +* Re: Joy of this, Joy of that92D
6 Dec 24  i i    i ii        i   i       i`* Re: Joy of this, Joy of that91186282@ud0s4.net
6 Dec 24  i i    i ii        i   i       i +* Re: Joy of this, Joy of that37rbowman
6 Dec 24  i i    i ii        i   i       i i+* Re: Joy of this, Joy of that34D
7 Dec 24  i i    i ii        i   i       i ii+* Re: Joy of this, Joy of that2186282@ud0s4.net
7 Dec 24  i i    i ii        i   i       i iii`- Re: Joy of this, Joy of that1D
7 Dec 24  i i    i ii        i   i       i ii+* Re: Joy of this, Joy of that17186282@ud0s4.net
7 Dec 24  i i    i ii        i   i       i iii`* Re: Joy of this, Joy of that16D
7 Dec 24  i i    i ii        i   i       i iii +* Re: Joy of this, Joy of that14Rich
7 Dec 24  i i    i ii        i   i       i iii i`* Re: Joy of this, Joy of that13D
7 Dec 24  i i    i ii        i   i       i iii i `* Re: Joy of this, Joy of that12Rich
7 Dec 24  i i    i ii        i   i       i iii i  +* Re: Joy of this, Joy of that10D
8 Dec 24  i i    i ii        i   i       i iii i  i+* Re: Joy of this, Joy of that7Rich
8 Dec 24  i i    i ii        i   i       i iii i  ii+* Re: Joy of this, Joy of that5rbowman
8 Dec 24  i i    i ii        i   i       i iii i  iii`* Re: Joy of this, Joy of that4Rich
8 Dec 24  i i    i ii        i   i       i iii i  iii +* Re: Joy of this, Joy of that2The Natural Philosopher
9 Dec 24  i i    i ii        i   i       i iii i  iii i`- Re: Joy of this, Joy of that1The Natural Philosopher
8 Dec 24  i i    i ii        i   i       i iii i  iii `- Re: Joy of this, Joy of that1rbowman
8 Dec 24  i i    i ii        i   i       i iii i  ii`- Re: Joy of this, Joy of that1D
8 Dec 24  i i    i ii        i   i       i iii i  i`* Re: Joy of this, Joy of that2Robert Riches
8 Dec 24  i i    i ii        i   i       i iii i  i `- Re: Joy of this, Joy of that1D
7 Dec 24  i i    i ii        i   i       i iii i  `- Re: Joy of this, Joy of that1D
8 Dec 24  i i    i ii        i   i       i iii `- Re: Joy of this, Joy of that1186282@ud0s4.net
7 Dec 24  i i    i ii        i   i       i ii`* Re: Joy of this, Joy of that14D
7 Dec 24  i i    i ii        i   i       i i`* Re: Joy of this, Joy of that2186282@ud0s4.net
6 Dec 24  i i    i ii        i   i       i `* Re: Joy of this, Joy of that53D
5 Dec 24  i i    i ii        i   i       `* Re: Joy of this, Joy of that4Lawrence D'Oliveiro
29 Nov 24  i i    i ii        i   `* Re: Joy of this, Joy of that10Lawrence D'Oliveiro
28 Nov 24  i i    i ii        `* Re: Joy of this, Joy of that2Lawrence D'Oliveiro
25 Nov 24  i i    i i`* Re: Joy of this, Joy of that8vallor
24 Nov 24  i i    i `* Re: Joy of this, Joy of that3D
24 Nov 24  i i    `- Re: Joy of this, Joy of that1Rich
21 Nov 24  i `- Re: Joy of this, Joy of that1Rich
20 Nov 24  +* Re: Joy of this, Joy of that606John Ames
20 Nov 24  `- Re: Joy of this, Joy of that1rbowman

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal