Email the Author

You can use this page to email Christian Tietze about Exploring Mac App Development Strategies.

Please include an email address so the author can respond to your query

This message will be sent to Christian Tietze

This site is protected by reCAPTCHA and the Google  Privacy Policy and  Terms of Service apply.

About the Book

Driven by Example, this Book Applies Useful Patterns of Clean Software Architecture to Mac App Development

You do some kind or other of what may be called "software architecture" anyway.

So better know the reasons for the moves you take. Own the alternatives, and design your code accordingly to gain confidence that your stuff is really working.

Learn how to …

  • design reusable code,
  • get a solid test harness up and running, and
  • separate the components of your application. 

All this will make your application easier to change and easier to maintain. It will make you a happier developer, even when you're just exploring new parts of the Cocoa Framework.

To develop Mac applications, you'll need to know why and how to separate components. Using the latest technology and a head-start into Swift programming, this book will show you the pro's and con's of several design decisions and discuss alternative approaches so you get to know your options.

The Core Ideas of the Book

I want to share the core ideas and theses of the book with you:

  • Apple's Core Data is a very invasive framework. It works best when you couple everything, beginning at the user interface, to Core Data entities. Cocoa Bindings make a lot of the magic possible, but they come at a cost: the Core Data entities (or NSManagedObject subclasses, for that matter) are bound to do a lot of different things for different "clients", wheras by 'client' I mean consuming views, background services, and the like. It'd be easier to maintain the code if you model entities for each "Bounded Context" separately.
  • Adopting Domain-Driven Design thinking, small service objects are favorable. It's easy to create Data Transfor Objects in Swift using structs, for example. Core Data should be pushed outside the domain (i.e. where the business logic is hosted) and become an implementation detail.
  • Once you free your app from the entanglement by Core Data (and other Apple suggested best practices which don't scale well), you will be able to leverage powerful design patterns. I created domain event wrappers around NSNotification to make event handling easier and failure-proof. Using events to propagate changes (instead of using Bindings, for example) makes concurrent programming easier.

That's part of the topics we cover in this book. Maybe you won't be a DDD expert afterwards, but so neither am I. Instead, we'll explore useful patterns to make the code manageable and to get more comfortable ever writing Mac applications which are ready to scale.

The Book is Open Source, by the way!

The book is Open Source. You can contribute on GitHub:

  • Book manuscript and manuscript website
  • Example project code

Just create a pull request if you came up with a better description of something, or if you want to add a useful reference, for example. Together, we can make the book a lot better.

Your feedback is much appreciated!


About the Author

Christian Tietze’s avatar Christian Tietze

@ctietze

Instagram

Christian develops the Word Counter for Mac on his own and has a few years experience creating iOS apps, too. He can move fast and deploy often thanks to clean code and solid application design.

Christian writes regularly on his own website where you may find out more about future book projects. He's also writing for Zettelkasten.de, where he and his pal Sascha are discussing theory and practice of good knowledge management.

Logo white 96 67 2x

Publish Early, Publish Often

  • Path
  • There are many paths, but the one you're on right now on Leanpub is:
  • Develop-mac-apps-clean-architecture-swift › Email Author › New
    • READERS
    • Newsletters
    • Weekly Sale
    • Monthly Sale
    • Store
    • Home
    • Redeem a Token
    • Search
    • Support
    • Leanpub FAQ
    • Leanpub Author FAQ
    • Search our Help Center
    • How to Contact Us
    • FRONTMATTER PODCAST
    • Featured Episode
    • Episode List
    • MEMBERSHIPS
    • Reader Memberships
    • Department Reader Memberships
    • Author Memberships
    • Your Membership
    • COMPANY
    • About
    • About Leanpub
    • Blog
    • Contact
    • Press
    • Essays
    • AI Services
    • Imagine a world...
    • Manifesto
    • More
    • Partner Program
    • Causes
    • Accessibility
    • AUTHORS
    • Write and Publish on Leanpub
    • Create a Book
    • Create a Bundle
    • Create a Course
    • Create a Track
    • Testimonials
    • Why Leanpub
    • Services
    • TranslateAI
    • TranslateWord
    • TranslateEPUB
    • PublishWord
    • Publish on Amazon
    • CourseAI
    • GlobalAuthor
    • Marketing Packages
    • IndexAI
    • Author Newsletter
    • The Leanpub Author Update
    • Author Support
    • Author Help Center
    • Leanpub Authors Forum
    • The Leanpub Manual
    • Supported Languages
    • The LFM Manual
    • Markua Manual
    • API Docs
    • Organizations
    • Learn More
    • Sign Up
    • LEGAL
    • Terms of Service
    • Copyright Policy
    • Privacy Policy
    • Refund Policy

*   *   *

Leanpub is copyright © 2010-2025 Ruboss Technology Corp.
All rights reserved.

This site is protected by reCAPTCHA
and the Google  Privacy Policy and  Terms of Service apply.

Leanpub requires cookies in order to provide you the best experience. Dismiss