Recently I had to refactor some legacy code. As in most cases, I had to split big parts of code into smaller, cleaner and readable functions. I ended with many functions, that had multiple, weird parameters. Let me show an example: public void SendOrder(Order order, XmlOrder xmlOrder, Insider insider) { string customerCode = CustomerServices .Get(insider.CustomerId)Read more