Few days ago I had an idea I can't get off my head: Do I really need the "flag" property? Now I use it to define importance of an entity and mostly to disable certain particles or entities, but all these things can be done by "order" property.
I don't use order for entities, so it may act as flag. 0 = disabled, 1 = new, 2 = unverified, 3 = verified. I use order for date or appearence length of an actor in particular movie, so it already has a value.
I feel there's no need for the "flag" anymore. It came from the time I thought I may stuck four different "values" into single particle, but this was just a wrong assuption. Everything should be in the value only, everything else is additional value. DateTime in order is great, but only as a "timestamp" for the value. And if I fill the timestamp, why would I want to hide it? I always can set order for the entity to zero and it won't show up anyway.
Sure, there might be situations, when I need to hide the particle without losing any information in the order property, but more often I will take advantage of smaller data model and less code in the framework.
No comments:
Post a Comment