This story on HackerNoon has a decentralized backup on Sia.
Transaction ID: cYp8B8aHcMNLa0ZBBv70A17ntJU90WLWv0pTgaIk-dU
Cover

Stop Using The ‘else’ Keyword in Your Code

Written by @dangtrunganh | Published on 2020/5/12

TL;DR
If-else keyword built into nearly every programming language and simple conditional logic are easy for anyone to understand. But if you are a good programmer, don’t use this keyword. One of the biggest mistakes I fell into when starting was overusing the else keyword when writing conditionals. I stopped using this keyword in my programs since 5 years ago. To avoid if/else if, to only use if statements, to spend the time to ensure the entry criteria for your group of if’s are mutually exclusive.

[story continues]


Written by
@dangtrunganh
I write about things that I like and things that I don’t, mainly in the business, art and tech spher

Topics and
tags
javascript|tips|programming|tricks|agile|coding-skills|design-patterns|beginners
This story on HackerNoon has a decentralized backup on Sia.
Transaction ID: cYp8B8aHcMNLa0ZBBv70A17ntJU90WLWv0pTgaIk-dU