DEV Community

Discussion on: What Is Business Logic?

nestedsoftware profile image
Nested Software • Edited

It’s just a fancy way to say application logic. The business logic covers the logic that matters to the users or stakeholders of a system.

For example, if you’re building a tax preparation app, all of the various rules around what information people need to fill in and how that gets submitted to the government constitute the business logic.

Since few people really want to pay taxes, in this case the business logic is largely driven not so much by the end-user, but rather by the government to which the software ultimately submits the tax information. I suppose one could say the government is also a user of the tax software in a sense, but I prefer to use the term "stakeholder" to make the distinction from an end-user a bit more clear.