Skip to main content
Fixed minor typo for clarity and made IDE more clearly an acronym
Source Link

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 ideIDE can remind you which is what. The maintenance cost of the class is minimal, the up fromfront cost of defining it is low, but the mental cost is remembering what's what becomes 0.

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.

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 front cost of defining it is low, but the mental cost is remembering what's what becomes 0.

Source Link
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.