DWR.IO

Tagged: coding standards

Yoda Conditional Statements

January 2, 2015

Here’s a little gem on conditional statements that I saw for the first time in the WordPress Coding Standards a few months ago. When writing out a conditional logic, it is recommended to place the variable on the right side of the comparison operator and the constants or literals on the left.

Read note →
← All notes