currently building statistics application , have core data model setup have 1 object nsnumber recorded wins , 1 object losses each time player player records stat. these objects number 1. after re-evaluating model realized have have 1 attribute each of 9 options record boolean of true or false , sum have posted copy of current data model before make change.
i want see if correct on that. if did go down way how sum total of true objects vs false objects a multiplication statistic how go doing boolean objects? code like? still learning programming language , decided start working project using core data....!!

your model flawed. practically hardcoding data model. problematic on many levels.
for example: paladins, priests , rogues should reflected data, not attribute names of entities. should abstract these things away entity has name attribute.
less importantly, using plurals entity names. misleading, entities describe categories of data, not tables. entity names verbs in them, "storeusersdeck" more outlandish. it's deck of cards, why not "deck"? similar argument can made attribute , relationship names.
i not understand model, here example illustrate kind of simplification should looking for:
deck -name -(categories) <<-------------------------->> category -name -(cards) <--------------------------->> card -(category) finally, point of booleans/numbers: simplifying data model should here well. assuming each category can have 1 result, count of wins or count of losses.
result -iswin [boolean] -count [number] -(category) <<--------------> category or result wincount , losecount if required.
Comments
Post a Comment