Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

9
  • 2
    My head hurts. . Commented May 22, 2018 at 19:39
  • @RobertHarvey because my code is that bad? Commented May 22, 2018 at 20:11
  • 2
    It just seems like an awful lot of ceremony for something that could be solved with a simple first-class function. Commented May 22, 2018 at 20:21
  • One function with dozen of if's - not the best way to go. Commented May 23, 2018 at 7:41
  • 1
    I'm curious, what is the reasoning for having a separate class for each company that you do business with? That obviously won't scale if your business takes off. Commented May 23, 2018 at 19:59