bool foo = true; // Do this? if (foo) { } // Or this? if (foo == true) { }
I like one of them and my coworker the other. The result is the same, but what is (more) correct?
Neither is "more correct". My personal preference is for the more concise form but either is fine. To me, life is too short to even think about arguing the toss over stuff like this.