Hacker News new | ask | show | jobs
by mtrpcic 2759 days ago
Out of curiosity, why have a singular Rule class that has a type (with internal branching logic based on that field), rather than separate Rule classes for each type of Rule, with Rule being a base class that users can extend to define their own rules?