spader312,

A form of “self documentation” I like to do is create variables for conditions before using it in an if statement. If you break down a funky conditional into easy to read variables it becomes a lot more clear what it’s trying to do.

Idk how to write code on sync:


<span style="color:#323232;">const isHumid = xxxx;
</span><span style="color:#323232;">const isHot = yyyy;
</span><span style="color:#323232;">const isSunny = zzzzz;
</span><span style="color:#323232;">
</span><span style="color:#323232;">If (isHot &amp;&amp; isHumid &amp;&amp; isSunny) {
</span><span style="color:#323232;">    ...
</span><span style="color:#323232;">}
</span>
  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • [email protected]
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • Socialism
  • KbinCafe
  • TheResearchGuardian
  • oklahoma
  • feritale
  • SuperSentai
  • KamenRider
  • All magazines