On 10/10/2022 13.47, MRAB wrote:
On 2022-10-10 00:40, dn wrote:
On Sun, 9 Oct 2022 at 15:39, Axy via Python-list
<python-list@python.org> wrote:
"shortest block first"
Have never heard this advice before. Kind-of rankled with me, as it did
for others.
Enquiring minds want to know... Played Duck, duck, go on this: zero hits
amongst a pile of similar phrases - turns-out there's an algorithm with
a similar name, but not related, and an electronics approach (way too
'low' a level for translation to us though).
Tried prefixing with "program" but no such advice to programmers or
program[me] designers.
Tried prefixing with "python", but equal lack of joy.
Would OP please quote source?
[snip]
After a few minutes searching I found this:
https://docs.typo3.org/m/typo3/reference-coreapi/9.5/en-us/CodingGuidelines/CglPhp/PhpFileFormatting/PhpSyntaxFormatting.html
"""It is recommended to create conditions so that the shortest block of
code goes first."""
Thanks for this!
So, a Domain-Specific Language for a CMS.
If this is only reference, then hardly a tenet of ComSc thinking or
programming-languages!
For fun: Typo3 is based on PHP. Advice (apparently) not replicated in
PHP-docs (if, else, etc).
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list