Today we’re going to start applying the new techniques you learned to build our app, using Core Data to create books and a custom
RatingView component to let users store how much they liked each book, built using
The way we handle data is critically important to our work. Sometimes it’s as simple as figuring out what should be a an integer and what should be a string; other times it requires a little theory, such as being able to choose between arrays and sets; and still other times it means we need to think about how objects relate to each other.
A quote from Linus Torvalds that I love very much is this one: “Bad programmers worry about the code; good programmers worry about data structures and their relationships.” I like it partly because it re-enforces the view that designing good data structures is critically important, but also because it’s a reminder that once you master one language it’s relatively easy to move to others – the syntax might be different, but the data structures are usually the same if not very similar.
Today you have three topics to work through, in which you’ll apply your new-found Core Data skills with
@Binding, and more.
Don’t forget to tell others about your progress – you’re building your own Core Data models and SwiftUI components now, and it helps keep you accountable.
Need help? Tweet me @twostraws!
SPONSORED Check out Stream's cross-platform open source chat SDK on GitHub! Write once and deploy your app with fully featured chat UI on iOS and macOS.
Link copied to your pasteboard.