Relative Content

Tag Archive for filtering

Building a WordPress-like filter system

This question is purely hypothetical. I use WordPress a lot and know the filter structure from an implementation point of view. I’m now wondering what’s the best way to implement such a structure (not the way WordPress uses, but the best way).

Filtering a List

I will try to simplify my problem. Let say I have a collection (more specifically a List) with different types of elements, for explanation purpose let say we have objects “Person” with different age of birth and an ID. I will represent a person like this: {<id>,<year>}