DEV Community

Discussion on: What are some alternatives to the word "type"?

Collapse
 
griffinsauce profile image
Joris Griffioen

"kind" seems like a nice alternative but I must say that I end up either using a prefix like "orderType" or finding a way to not specify a type at all.

That might be an interesting second question: if you have to give something a type, what are differentiators? For instance a product might have a type: "paid" | "free" but you could also look at whether there is a price on it.

And in the other direction: when you add a type that implies a lot of difference, maybe you need separate entities.