[rescue] Python > 3.6 on Solaris 10

Liam Proven lproven at gmail.com
Mon Oct 18 04:42:40 CDT 2021


On Sat, 16 Oct 2021 at 19:54, Mike Katz <bitwiz at 12bitsbest.com> wrote:
>
> I completely agree about python and white space.B

You have a nasty case of capital-B-itis there you know.

I had a small epiphany about the indentation thing a while ago. I
found that there are actually formalized, named C indentation styles:

https://en.wikipedia.org/wiki/Indentation_style


K&R style & its variants 1TBS (OTBS), Linux kernel, mandatory braces,
Java, Stroustrup & BSD KNF.  Then Allman & Allman-8 style. Then the
Whitesmiths, GNU, Horstmann, Pico, Ratliff & Lisp styles.

I mean WTABF.

And I look at these and for me most of them are horrid. To me, proper
code indentation means that structures within other structures are
indented from them, and matching pairs of structures *must* be on the
same level. Most of those violate these 2 simple maxims.

Different people grew up with or learned different styles and feel
deeply about this. They'll fight for their preference.

There's no way to fix that by discussion. People will do what works for them.

The *only* way to fix it is to make it matter: make it significant. If
making your language readable is a primary consideration, more
important than terseness or anything, then you *must* make everyone
use the same indentation style. If it's possible to change it,
somebody will. If your editor forces it, they'll change editor,
whatever.

The *only* way to make it impossible for programmers to roll their own
indentation is to make the indentation meaningful. To make it part of
the syntax. Then everyone _has_ to use the same.

Take away their choice.

Considered that way, it seems a wise, prescient move to me. Take the
huge rabble of squabbling C programmers and force them to line up by
making the indentation significant.

The result is nice clean readable code and that, for me, is worth it.

> As for code that looks like noise

I agree, but all the random Bs in your message make it look like
you're on a very bad dialup connection with no parity yourself, you
know.


-- 
Liam Proven ~ Profile: https://about.me/liamproven
Email: lproven at cix.co.uk ~ gMail/gTalk/FB: lproven at gmail.com
Twitter/LinkedIn: lproven ~ Skype: liamproven
UK: (+44) 7939-087884 ~ Czech [+ WhatsApp/Telegram/Signal]: (+420) 702-829-053


More information about the rescue mailing list