These are a collection of tips and tricks you can use to improve the performance and readability of your code.
If an expression returns a Boolean value, we don’t also need to compare that result to true or false.
Putting complex logic into a function increases code readability. By giving that function a descriptive name, it can explain what is happening in it.
When chaining conditions together, putting them into named variables makes code more readable.
When naming variables that hold Boolean values, using a prefix that indicates as much helps with readability.