Stop using ELSE statements - Try this instead
Автор: Friendly Neighborhood Coder
Загружено: 2020-10-04
Просмотров: 19405
Always use a guard clause instead of ELSE statements. The other day I came across a Medium article that said - STOP USING ELSE statements in your programs. I did some research and found some other articles having similar content.
In this video, I'm explaining why you should always try to avoid using else statements in your code. You can always replace them with Guard clauses. Watch the video to find out more. I will be posting another video with a technique explaining how we can avoid If-conditions as well.
References
------------------
/ why-you-need-to-stop-using-else-statements
https://en.wikipedia.org/wiki/Guard_(...)
/ coding-tip-try-to-code-without-if-statements
/ java-write-code-thats-mode-readable-scalab...
/ how-to-prevent-using-if-else-statements-in...
/ dont-use-else
/ stop-using-if-else-statements
Music credits: https://www.bensound.com/
If you enjoyed watching this video, please consider to like and subscribe as well, so I can keep working on more videos like this. Have a nice day!
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: