Just like you said: positive logic requires less cognitive load
For that reason, checking for a negative logic first and quit if true should be safer, more concise and readable than nesting two different logic inside an if/else statement
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.
Just like you said: positive logic requires less cognitive load
For that reason, checking for a negative logic first and quit if
true
should be safer, more concise and readable than nesting two different logic inside anif/else
statement