Skip to main content
1 of 2
whatsisname
  • 27.7k
  • 14
  • 76
  • 95

I think using Tuples in API boundaries is troublesome. If you just have one, it's easy enough to remember what Item1 is, but when you have 20, it gets harder to remember.

The question is is it worth it having names for my parameters?

Making little classes is somewhat annoying, but it's a small price to pay to gain the ability to name the items. Now, your ide can remind you which is what. The maintenance cost of the class is minimal, the up from cost of defining it is low, but the mental cost is remembering what's what becomes 0.

whatsisname
  • 27.7k
  • 14
  • 76
  • 95