Eliminate the branching by the if-else ladder and make the rule engine a simple O(1) lookup
Default evaluation does not need to wait for all conditions to get processed. If a key does not exist in the lookup table, it returns the default condition straightaway
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.
So what is the benefits of using a lookup table other than it looks much cleaner?
From the 1st link in the resources section: