Re: Programming Context

Liste des GroupesRevenir à ol advocacy 
Sujet : Re: Programming Context
De : physfitfreak (at) *nospam* gmail.com (Physfitfreak)
Groupes : comp.os.linux.advocacy
Date : 24. Apr 2024, 21:53:43
Autres entêtes
Organisation : Modern Human
Message-ID : <v0bo07$ct8g$2@solani.org>
References : 1 2 3
User-Agent : Mozilla Thunderbird
On 4/24/24 06:39, Farley Flud wrote:
Recall that the first written languages, like Chinese, went
up to down, i.e. vertically.
 The human brain prefers a vertical orientation when grasping
sections.
 When dealing with deeply nested structure, the horizontal indents
will literally start pushing code way off the page.  In such
cases vertical indentation is almost mandatory.
Vertical doesn't require comparison with stuff written earlier in the code to sense the grouping, so you have a point there. Makes it faster to read.
In the conventional way, when code groupings takes them too far to the right, it can be remedied by creating a function or a subroutine to shorten the width.
For me, the ideal way has been to use an IDE that separates groups horizontally, but also draws a vertical line to connect the beginning and end statements of each group. There was one and I used it years back, now I don't know which IDE it was. It really helped with eye fatigue that's formed by constantly trying to imagine the groupings without such lines, and only using the relative indentations between them.

Date Sujet#  Auteur
23 Apr 24 * Programming Context23Farley Flud
23 Apr 24 +- Re: Programming Context1Chris Ahlstrom
23 Apr 24 +* Re: Programming Context3rbowman
23 Apr 24 i+- Re: Programming Context1Farley Flud
24 Apr 24 i`- Re: Programming Context1Lawrence D'Oliveiro
24 Apr 24 +* Re: Programming Context3Physfitfreak
24 Apr 24 i`* Re: Programming Context2Farley Flud
24 Apr 24 i `- Re: Programming Context1Physfitfreak
24 Apr 24 +* Re: Programming Context10Lawrence D'Oliveiro
24 Apr 24 i+* Re: Programming Context8candycanearter07
24 Apr 24 ii+- Re: Programming Context1RonB
25 Apr 24 ii`* Re: Programming Context6Lawrence D'Oliveiro
25 Apr 24 ii +* Re: "left-justified"2Lawrence D'Oliveiro
25 Apr 24 ii i`- Re: "left-justified"1RonB
25 Apr 24 ii +* Re: Programming Context2rbowman
25 Apr 24 ii i`- Re: Programming Context1Physfitfreak
25 Apr 24 ii `- Re: Programming Context1RonB
24 Apr 24 i`- Re: Programming Context1RonB
24 Apr 24 +* Re: Programming Context3DFS
24 Apr 24 i`* Re: Programming Context2Joel
24 Apr 24 i `- Re: Programming Context1DFS
24 Apr 24 +- Re: Programming Context1DFS
24 Apr 24 `- Re: Programming Context1DFS

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal