people writing code like if foo: stuff1 if bar: stuff2 and not if not foo: return stuff if not bar: return stuff
-
-
single point of return is nonsense when you have to nest sixteen times to fuckery in order to achieve it
-
i just call it "early return"
-
I'm with
@f_borretti here. nested conditionals at least let you treat the entire block as a single expression, which i find easier to reason about. if it gets ridiculously excessive, that's usually a sign that you could break it down into separate functions. - End of conversation
New conversation -
-
-
a lot of people seems to believe in flat Earth, but they're wrong, simple as that
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.