Post 57015 by radiocaravan@octodon.social
 (DIR) More posts by radiocaravan@octodon.social
 (DIR) Post #57013 by BestGirlGrace@social.illegalpornography.com
       2018-09-17T05:11:38Z
       
       0 likes, 0 repeats
       
       Python, you don't have to be this cute all the time
       
 (DIR) Post #57014 by BestGirlGrace@social.illegalpornography.com
       2018-09-17T05:16:58Z
       
       0 likes, 0 repeats
       
       I actually  renamed the parameter so this statement would read like a sentence. "and not horny" looked better than "and be_horny == False" or "and not be_horny"
       
 (DIR) Post #57015 by radiocaravan@octodon.social
       2018-09-17T05:18:11Z
       
       0 likes, 0 repeats
       
       @BestGirlGrace human readability is essential in code, if you want to go back and adjust it later.
       
 (DIR) Post #57016 by BestGirlGrace@social.illegalpornography.com
       2018-09-17T05:19:44Z
       
       0 likes, 0 repeats
       
       @radiocaravan It's incredibly helpful to write code that reads like sentences. If a function returns a bool, I'll try to name it is_something or should_something so you can write if (object.is_gay()) { do_stuff(); }
       
 (DIR) Post #57017 by thatcosmonaut@knzk.me
       2018-09-17T05:22:01Z
       
       0 likes, 0 repeats
       
       @BestGirlGrace @radiocaravan agree so hard, i made a state machine library around writing state machine logic that reads like sentences and it helps my brain not hurt
       
 (DIR) Post #57024 by BestGirlGrace@social.illegalpornography.com
       2018-09-17T05:22:51Z
       
       0 likes, 0 repeats
       
       @thatcosmonaut @radiocaravan You see testing frameworks do this, too. Assert.That.AreEqual(x, y)