laravel 4 months ago
php-based framework #Web Development

Nesting "If Statements" is Bad | Do This Instead

This is the guard clauses technique to make your if else statements easier to understand and read. If else conditions is one of the most used thing in coding, but using if statement and nesting them like this is the worst thing ever. In this video I will tell you why you should never use nested if else statement when you code and program.

Laravel
by taylor otwell