From 62e8467e59d7d30d7cbda080f6b5f1d37a17d905 Mon Sep 17 00:00:00 2001 From: mjfernez Date: Sun, 28 Jun 2026 14:44:00 -0400 Subject: 2026 Touch up, mostly FAQ --- thoughts/syntax/my-worst-habit.html | 14 ++------- thoughts/syntax/random-python-idiosyncrasies.html | 38 +++++++++-------------- 2 files changed, 17 insertions(+), 35 deletions(-) (limited to 'thoughts/syntax') diff --git a/thoughts/syntax/my-worst-habit.html b/thoughts/syntax/my-worst-habit.html index ac0c36a..61dcd6a 100644 --- a/thoughts/syntax/my-worst-habit.html +++ b/thoughts/syntax/my-worst-habit.html @@ -8,18 +8,10 @@ diff --git a/thoughts/syntax/random-python-idiosyncrasies.html b/thoughts/syntax/random-python-idiosyncrasies.html index 77d586c..57bfc21 100644 --- a/thoughts/syntax/random-python-idiosyncrasies.html +++ b/thoughts/syntax/random-python-idiosyncrasies.html @@ -8,22 +8,12 @@ @@ -92,22 +83,21 @@ Contents -Coding -Style Guide +Coding Style Guide -1) +1) Strings are double-quoted. Keys and chars are single-quoted. -2) Long strings belong in -parentheses -3) +2) Long strings belong +in parentheses +3) Tabs are four spaces and spaces are ALWAYS preferred to tabs -4) +4) Always add spaces between arithmetic, but never for brackets -5) EVERYTHING should be +5) EVERYTHING should be snake_case -6) +6) If it's over 100 lines, you probably need a new file (and a class) @@ -148,7 +138,7 @@ avoid escapes, really)
quoted_string = ( '"You miss 100% of the shots you don't take - Wayne Gretsky"' ' - Michael Scott' -)
That brings me to my next point.