TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

In defense of Core Data (Part II)

20 点作者 LinaLauneBaer将近 11 年前

3 条评论

yoda_sl将近 11 年前
And to be clear, yes CoreData was launched on Mac OS a while back, and then added to iOS, but CoreData is in fact way older than that. CoreData is a descendant of EOF: Enterprise Objects Framework that was created at NeXT, during the Objective-C days (aka before WebObjects moved to Java).<p>So Apple has a long history on integrating the ObjC runtime with a back end database. I will be curious to see if something new for CoreData will be coming with Swift.
cageface将近 11 年前
<i>Don&#x27;t put anything in your model code</i><p>This is a SERIOUS code smell in my opinion. You <i>want</i> business logic in your model layer. That&#x27;s where it belongs. A good persistence layer does not dictate model design.
评论 #7894262 未加载
评论 #7894264 未加载
prodigal_erik将近 11 年前
Since the article assumes you already know, Core Data seems to be an iOS-only (and I guess MacOS?) ObjC ORM. If you want compile time safety or portability, look elsewhere.
评论 #7894138 未加载
评论 #7893954 未加载
评论 #7894261 未加载