Excellent point! Sometimes you may need lots of if statements, but more often than not, lots of ifs are a sign that your code is just too procedural. By abstracting away code in functions or classes you can often get rid of them.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Excellent point! Sometimes you may need lots of
ifstatements, but more often than not, lots ofifs are a sign that your code is just too procedural. By abstracting away code in functions or classes you can often get rid of them.