Hello! I’ve just finished this course and thought it was great, I’m looking forward to going back and modifying the game to make sure I understand the concepts.
One question I’ve had throughout the course, you’ve been using the pattern
if (a != b) { return }
// desired code
rather than
if (a == b)
{
// desired code
}
This is different than the other courses I’ve taken through gamedev.tv. Is this generally just a personal preference thing, or does it have other implications? I personally find the method used in this course easier to parse, but am unsure if it’s appropriate to use as a widescale approach.
Thanks!