DEV Community

Discussion on: Prefix vs Postfix When Using Increment & Decrement Operators.

 
caleb_rudder profile image
Caleb Rudder

Adding in the simplicity principle makes a lot of sense. In your original comment I was confused by the correlation of less steps and how correct a function is.

"the one which requires less cognitive effort is more correct."

This statement is what really answered my question. Thanks for taking the time to explain! That actually helped me better understand the simplicity principle better.