Unpopular opinion: don't rely on implicit truthy constructs in your language, and instead always convert to bool yourself.
For example, in Python rather than "if mylist:", do "if len(mylist) > 0:".
An example of trading more keystrokes for less cognitive burden for readers.
Apr 14, 2022 · 5:44 PM UTC
19
24
6
419










