In C, C++ and C# when using a condition inside a function or loop statement it\'s possible to use a continue or return statement as early as possible and g
It depends a little on how long the branches are. The use of return/continue that you describe is good if the initial if
check is short, and the body is long. If both if
and else
parts are long, I would extract them to separate functions.
I recommend reading Code Complete, it discusses things like this a lot.