1/ When coding, don't underestimate the power of state to confuse you! I was reminded of this recently. If confused by code (your's or anybody else's), the first thing to do make as many things immutable as possible, remove redundant concepts, and prefer calculation over state.
-
Show this thread
-
2/ Make state changes transnational and in one place as opposed to one off changes spread out all over the place. Remove as many conditionals as possible, and generally depending on checking null by client code is an antipattern for the same general reasons.
2 replies 0 retweets 10 likesShow this thread
*transactional. Yikes. My typos have skyrocketed lately.
6:48 PM - 27 Dec 2019
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.