In an application I'm working on, I have several instances where I am showing a (potentially somewhat long) list of items. These items are either of "Type A Items" or "Type B Items", and I want to indicate this for each one in the list. I see two obvious ways to do this:
I can simply add a "Type" column which lists the appropriate type for each item, like this:
Item Name | Type ---------------- Foo | A Bar | B Baz | A
Or, I can instead add a column called e.g. "Type A" and then add a checkbox for each item which is indeed of that type, like this:
Item Name | Type A ------------------ Foo | X Bar | Baz | X
I think I like the second format better, although I can't really come up with any strong reasoning as to why it's strictly better. Perhaps it works better when there are, e.g., a LOT of "Type A" items, and a small number of "Type B" items?
Which method is better to use if the number of items of each type are approximately even, and why? Let's assume I do indeed want to show all of the items in the same table, instead of having a separate table for each type.