public void DoSomething() { if (a) { if (b) { if (c) { DoItRealy(); } } } }
public void DoSomething() { if (!a) { return; } if (!b) { return; } if (!c) { return; } DoItRealy(); }
public void DoSomething() { if ( ( a ) && ( b ) && ( c ) ) { DoItRealy(); } } public void DoSomething() { if (!a) { Log("Not a"); } else if (!b) { Log("Not b"); } else if (!c) { Log("Not c"); } else { Log("All requirements complied."); DoItRealy(); } }
Theme based on MadsSimple dasBlog theme by Mads Kristensen
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.