Sujet : Re: Command Languages Versus Programming Languages
De : david.brown (at) *nospam* hesbynett.no (David Brown)
Groupes : comp.unix.shell comp.unix.programmer comp.lang.miscDate : 09. Apr 2024, 14:22:25
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <uv3feh$83fj$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0
On 09/04/2024 10:38, Lawrence D'Oliveiro wrote:
On Tue, 9 Apr 2024 10:11:09 +0200, David Brown wrote:
Comments to say when your loop or functions end is another big red flag
that the layout is bad.
Without #end comments: how easy is it to tell which lines belong to
the inner function, and which to the outer?
You could try doing what almost every other Python programmer does - use smaller functions and drop the silly line continuations.
When you see that you have a style that is very different from all the others you see around you, you have to consider what is more likely - are you a lone genius that sees what no one else does, or are you doing something weird and unhelpful?
Now, I know there are plenty of people who think Python's method of determining blocks is not ideal. But look up some statistics comparing Pascal and Python usage, and it should be quite clear that begin/end is not something many people find necessary.