Important code principle: Have a long, complex function? Resist the urge to just arbitrarily split it up into shorter one-use functions.
-
Show this thread
-
Inevitably, you'll make what the function actually does much harder to parse.
1 reply 1 retweet 6 likesShow this thread -
It's a fuzzy rule for sure, but my rule of thumb is: If a function is only called once, it probably shouldn't be a function.
3 replies 1 retweet 7 likesShow this thread
Replying to @AeornFlippout
Yeah, I started using J-Blow's syntax of opening an empty sub-scope to give myself cleaner separation/scope while keeping it in 1 functionpic.twitter.com/NuNEwK8upp
3:29 PM - 5 Nov 2017
0 replies
0 retweets
1 like
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.