Skip to content

Instantly share code, notes, and snippets.

@harukizaemon
Created March 3, 2013 10:34
Show Gist options
  • Save harukizaemon/5075599 to your computer and use it in GitHub Desktop.
Save harukizaemon/5075599 to your computer and use it in GitHub Desktop.
Example of the kinds of TODO's I write. It's not really a todo, more of a "TODON'T" but it's also a reminder to do something else in the future say, for example, if we were to drop iPhone 4 support.
// TODO: Using the main context as the parent of the background context works
// fantastically on the iPhone 5 but not so much on the 4 where it takes
// too much processing from on the main thread and makes it jerky and
// unresponsive. Same goes for merging changes the old-fashioned way.
//
// As a compromise, we use old-fashioned merging but only deletions, as
// these would otherwise cause the main context to barf if/when trying
// to save an object that was deleted in the background. *phew*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment