# Response: The Laws of Core Data

DevFeed: [Response: The Laws of Core Data](<https://devfeed.tech/articles/response-the-laws-of-core-data-37512.md>)

Original publisher: [Read original article](<https://www.cimgf.com/2018/05/10/response-the-laws-of-core-data/>)

Author: Marcus Zarra

Published: 2018-05-10T21:39:50Z

Content type: opinion

Language: en

Sources: [Cocoa Is My Girlfriend](<https://devfeed.tech/sources/cocoa-is-my-girlfriend.md>)

Topics: [Persistence](<https://devfeed.tech/topics/persistence.md>), [Concurrent Programming](<https://devfeed.tech/topics/concurrent-programming.md>)

Tags: [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [controllers](<https://devfeed.tech/tags/controllers.md>), [core-data](<https://devfeed.tech/tags/core-data.md>), [data](<https://devfeed.tech/tags/data.md>), [main-thread](<https://devfeed.tech/tags/main-thread.md>), [migrations](<https://devfeed.tech/tags/migrations.md>), [network](<https://devfeed.tech/tags/network.md>), [persistence](<https://devfeed.tech/tags/persistence.md>), [threads](<https://devfeed.tech/tags/threads.md>)

## AI overview

The author responds to another developer's proposed laws of Core Data, agreeing that Core Data should be treated as an object model rather than a database or thin SQLite wrapper. The article argues for encapsulating the persistence stack, using contexts only on their assigned queues, treating managed objects as data objects, and using parent-child contexts when working with external systems such as networks or imports and exports.

## Source excerpt

Recently, I saw a post from Dave DeLong and knowing his history with the framework I read it with extreme curiosity. Unfortunately, that read led to this post as I disagree strongly with a number of the laws he has laid down. Since I know people are going to be asking me about this post [...]