|
|
|
|
|
by wnmurphy
546 days ago
|
|
> Introduce intermediate variables with meaningful names Abstracting chunks of compound conditionals into easy-to-read variables is one of my favorite techniques. Underrated. > isValid = val > someConstant > isAllowed = condition2 || condition3 > isSecure = condition4 && !condition5 > if isValid && isAllowed && isSecure { //... |
|