I know that pattern as guard clauses, if it's specifically used to rule out error cases at the beginning of the function.
Assertion is another word for it, but that can mean different things to different people.
The name Bouncer Pattern is new to me, but it is a good metaphor to describe what happens (It prevents unwanted input from "getting inside" the main program logic).
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.
Thank you.
This approach is also known as BouncerPattern:
Bouncer Pattern
The bouncer pattern
Thats good to know, I will have a read! Thank you!
I know that pattern as guard clauses, if it's specifically used to rule out error cases at the beginning of the function.
Assertion is another word for it, but that can mean different things to different people.
The name Bouncer Pattern is new to me, but it is a good metaphor to describe what happens (It prevents unwanted input from "getting inside" the main program logic).