Je viens de découvrir la fonction "inspect.cleandoc" de la librairie standard de #Python.
Je viens de découvrir la fonction "inspect.cleandoc" de la librairie standard de #Python.
Just found this piece on code styles, from the perspective of human cognitive capabilities and tendencies. This is something I've previously thought a lot about, and even given a short talk about! I've not had time to read it all yet, but from what I've read it seems very well grounded and thorough:
TABS. It is a question of #accessibility, you morons!
Death to #smartTabs (aka random haphazard inserts of spaces depending on the IDE at hand)!
Hey #PHP. When you use union and intersection types, do you include spaces?
(RT for reach, etc. This is survey data for @phpfig. If you know of any official policies by major projects already, please note/link in the replies.)
Some great points, some not so great ones:
“My Favorite C Programming Practices” [2014], Malcolm Inglis (https://github.com/mcinglis/c-style).
Via HN: https://news.ycombinator.com/item?id=40409956
#C #Programming #CProgramming #Style #CodingStyle #Guidelines #BestPractices #C11 #C17 #C99
Bisher den einzigen #CodingStyle Dissenz im Team gibt's bei:
Leerzeichen vor oder nach (cast) statements (von PSR/PER nicht abgedeckt):
if ((bool) $var)
if ((bool)$var)
funcyCall((string)$something, (float)'1.337', (array)$var);
Werden wir wohl einen Fight Rule Club aufmachen.