What is the general definition of something that can be included or excluded?
Posted
by
gutch
on Programmers
See other posts from Programmers
or by gutch
Published on 2011-03-15T06:41:26Z
Indexed on
2011/03/15
8:21 UTC
Read the original article
Hit count: 251
design
|recommendations
When an application presents a user with a list of items, it's pretty common that it permits the user to filter the items. Often a 'filter' feature is implemented as a set of include or exclude rules. For example:
- include all emails from [email protected], and
- exclude those emails without attachments
I've seen this include/exclude pattern often; for example Maven and Google Analytics filter things this way.
But now that I'm implementing something like this myself, I don't know what to call something that could be either included or excluded. In specific terms:
- If I have a database table of filter rules, each of which either includes or excludes matching items, what is an appropriate name of the field that stores
include
orexclude
? - When displaying a list of filters to a user, what is a good way to label the
include
orexclude
value?
(as a bonus, can anyone recommend a good implementation of this kind of filtering for inspiration?)
© Programmers or respective owner