Sujet : Re: Joy of this, Joy of that
De : nospam (at) *nospam* example.net (D)
Groupes : comp.os.linux.miscDate : 27. Nov 2024, 10:12:06
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <c3e5d0c1-c345-3533-a50d-9f6500f8cd84@example.net>
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 25
On Wed, 27 Nov 2024,
186282@ud0s4.net wrote:
On 11/26/24 4:12 AM, D wrote:
On Mon, 25 Nov 2024, 186282@ud0s4.net wrote:
On 11/25/24 4:56 AM, D wrote:
On Mon, 25 Nov 2024, 186282@ud0s4.net wrote:
On 11/24/24 7:36 PM, Lawrence D'Oliveiro wrote:
On Sun, 24 Nov 2024 19:35:57 -0500, 186282@ud0s4.net wrote:
Do kinda pref "{ }" or "begin end" over the dangling depth thing ...
get six or eight levels into something and it's a total bitch to spot
what's inside what without using comments.
So use the comments. That’s what I do.
Only good way ...
Not a killer, but kinda annoying. The eye doesn't
spot indents nearly was well as hard delimiters.
You can have indents _and_ delimiters for the ultimate in eye spotting capability! ;)
As I said to Larry, I almost always use just 2-space
indents so deeply-nested stuff doesn't tend to run
off the page margin. Object langs make this even worse
with all the something.something.something.something
sorts of lines.
SOME of the IDEs for Python KINDA help, can spot
nestings fairly well, but I mostly just use nano
in one terminal and do test runs from another.
Something like PyCharm or Visual are kinda overkill
most of the time.
I use four, but since worked as a systems administrator (or what today be called "devops") I never wrote any programs large enough, or complicated enough, to run out of line space.
>
My last big Python app was about 450 lines of code - and
it had LOTS of option switches (TOO many!). Things got
nested really deep sometimes.
>
Shrank that to about 250 lines of Pascal (the re-think
plus leaving out the options even I never used).
>
This is what I do not like about power shell. Some of the commands are way too long to type. I like ls, df, du & co! It would be horrible to have to type list_files every time.
>
I kinda have to admit, or brag, that I never used PowerShell.
>
But yea, shortish generally IS a lot better. Longish is
one reason I hate JS, and then there was COBOL :-)
>
Haven't done a COBOL app for a long time ... I'll have
to do something ... found a COBOL IDE of sorts somewhere ...
ah, OpenCobolIDE (a PyPy pgm).
>
Ahh yes... forgot about javascript. It makes me cry when I see it. =(
Note that the 250 lines of pascal could be reduced further to 1 line if you find out the true name of god and use that instead!