Hacker News new | ask | show | jobs
by default-kramer 454 days ago
> Kind of disagree with this article, when you add a "noun" (aka type), you're often introducing a new abstraction.

The article is talking about simple "bundle of values" types; the example is the CreateSubscriptionRequest. This is not an abstraction. It is simply a declaration of all the fields that must be provided if you want to create a subscription. And it is usually superior to passing those N fields around individually.

1 comments

yeah this is correct, somehow I jumped to a different conclusion :)