Avoid else and nested if/else

preview_player
Показать описание
The more if/else blocks we have the harder our code becomes to understand. Pair that up with nested if/else blocks and it becomes even harder to understand. That is why we should try to avoid nesting as much as possible, and not use else blocks if we can avoid it... In this short, I show you one way to do clean up a nested if/else.

#shorts
Рекомендации по теме