Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maybe -unserializedRepresentation... should be a class method? #104

Open
ahti opened this issue Oct 4, 2014 · 0 comments
Open

Maybe -unserializedRepresentation... should be a class method? #104

ahti opened this issue Oct 4, 2014 · 0 comments

Comments

@ahti
Copy link

ahti commented Oct 4, 2014

Just a quick thought: I just made the mistake to implement -unserializedRepresentation... in a way that relied on another database field being loaded already.

This mistake could be made impossible by changing the method to be a class method. Alternatively, a way to specify in which order database values are unserialized could be provided, although that could well be unnecessary complexity.

What I am worried about is people making the same mistake I did and having it work fine in development just by chance, and then having a change in e.g. how enumerateObjectsAndKeys... works screw up apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant