News for hackers. Stuff that matters.
Re:Should you use CoreData? by mmorey on Tuesday October 15, 2013 @10:07AM (#6553262)
If you plan on using Core Data please read objc.io issue #4[1].

The reason I use Core Data is because the alternatives for data persistence are not that great. We basically have NSCoding Protocol[2] and FMDB[3]. I find both cumbersome to use.

Also, not that it matters for this conversation but it is Core Data, not CoreData.

[1] http://www.objc.io/issue-4/editorial.html

[2] https://developer.apple.com/library/mac/documentation/Cocoa/...

[3] https://github.com/ccgus/fmdb

Re:Should you use CoreData? by mpweiher on Tuesday October 15, 2013 @10:33AM (#6553406)
objc.io issue 4 actually demonstrates one of the issues with Core Data: if you check the code, you see that it is not modeling the domain, instead it is encoding interactions with the database. Sigh.
Re:Should you use CoreData? by mmorey on Tuesday October 15, 2013 @10:39AM (#6553444)
Are you referring to the full Core Data application[1]? Can you give an example of what you mean by "encoding interactions with the database"?

[1] https://github.com/objcio/issue-4-full-core-data-application

Re:Should you use CoreData? by skue on Tuesday October 15, 2013 @05:08PM (#6556346)
I'm curious why you find FMDB cumbersome? I've always found it pretty easy to work with.
Re:Should you use CoreData? by tonyarnold on Tuesday October 15, 2013 @11:55PM (#6557925)
I find it cumbersome because it's as much work as Core Data and seems to have many of the same API choices around threading, but I also have to write SQL. I don't like writing SQL.