3 ms·
> naming a new type (e.g. "widgetsByName") is tedious to many More than tedium, it's a bit sinister because the convention of creating 'parallel' slice types w
by frou_dh 10y ago
> naming a new type (e.g. "widgetsByName") is tedious to many
More than tedium, it's a bit sinister because the convention of creating 'parallel' slice types with names like that blurs the line between what's a noun and what's a verb. With a type name like that, one would expect a value of that type to always be sorted, right? Nope! A "widgetsByName" is just a flower in the breeze hoping that the sort.Sort bumble-bee makes contact.