DEV Community

Discussion on: What Is Business Logic?

henrebotha profile image
Henré Botha

Suppose you're writing a podcast library app. The logic that says, "Put the newest episodes at the top of the list," is an example of business logic - it's something a product owner would care about. It's something that affects the user experience directly. It's something that could distinguish your podcast app from competitors, who might list the most popular episodes at the top of the screen.

By contrast, logic that specifies how podcast files are read from disk is not business logic - your customers don't care, your product owner doesn't care, it's not a feature listed on the app store.