Short Circuit Evaluation: What You Need to Know
Too Long; Didn't Read
In most programming languages, the process of evaluating the second argument depending on the first one is automatically handled for you. To take advantage of Short circuit evaluation, you need to think carefully about the order of your conditions. If you have a validation function that depends on more than one condition, for example, you check that a user password has a length of more than 8 characters and then match it with the Regex pattern, the performance of this validation function can be different.