Approach 1: Pros and Cons

  • Pro: The connection between classes is nice and unambiguous
  • Con: The TradeCalculator is totally tied to the ProfileFetcher
    • These classes are tightly coupled. TradeCalculator relies on the specific ProfileFetcher
    • Yeah? So what?
    • It makes unit testing the TradeCalculator difficult
  • Con: If you have many static methods, it can be tricky to see how classes are related

21 / 31