▲ | foldl2022 2 days ago | |||||||
A nice side-effect of "variables at the top": you keep your functions short. | ||||||||
▲ | Turskarama 2 days ago | parent [-] | |||||||
"Functions should always be short" is also one of those guidelines that people treat like a hard rule. There are occasions when a 100 line function is easier to read than 5 20 line functions, or god forbid 20 5 line functions. Stop being overly dogmatic, it ALSO leads to worse code. | ||||||||
|