- For something to merit a name, it must be used in at least 2 places.
- Favour operations, avoid keywords.
- Some punctuation is semantically essential (
||
,?
,!
), some is only arguably useful sometimes ({
,;
). Favour the first, avoid the second when you can. - ☝️ Parentheses are the exception.
(
is brilliant, so is,
. Use them eagerly!
Created
December 1, 2017 10:47
-
-
Save barneycarroll/978ac347a658f92bb31a6fdb9e4b820f to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ideas for a theme to encourage good practices in this area:
Distinguish between imports, signature & declaration references
Maybe a scale of reference colour saturation mapping to scope, ie
☝️
a
,b
, andc
are increasingly less colourful☝️
b
, is most colourful (b
&c
are equally less colourful?) (c
is discoloured because it's out of scope?)