Business and application logic?

I often see the phrases "business logic" and "application logic" in terms of web development (I assume that this also applies to programming in general, and not just to web development).

This is completely new to me, so I really don't know what that means, can anyone explain to me what exactly is meant by this? Is this just a "sound word" used by programmers? Or?

+37
business logic
Sep 21 '09 at 19:40
source share
4 answers

Business logic is basically a system rule in accordance with functional specifications. For example, an object A of type B should relate to C and D, but not E. Application Logic is more of a technical specification, for example, using Java and OJB servlets to store an Oracle database. In the end, these are audio words that will help describe the levels of technology in the application. We hope that we try to separate the various levels, creating the best application design.

+34
Sep 21 '09 at 19:47
source share

Say that you are writing a system that solves a business problem for a client.

The sum of all your code — is the application logic or system architecture — is basically the complete system that you are building.

Business logic is a subset of code that models and manages actual business processes. "What happens when an order for product X is placed? How is the cost of product Y calculated?" I.e. bits of code where you probably need some input from an expert / expert / project participant.

Ideally, business logic is divided into its own level or level ( see the Wikipedia article on N-level architecture ). The rest of the code can often be simply thought of as an infrastructure that will help execute this business logic (database wrapper, helper functions, service facades, external integration, graphical interface, etc.).

+37
Sep 22 '09 at 6:29
source share
+1
Sep 21 '09 at 19:42
source share

First, what do you need to know (input)?

Identity of the person making the transfer Amount of the transfer of money Number of the control account of the source Number of the target current account What are some of the "business rules" that should apply?

The person making the request must have the authority to do so. A transaction must be atomic. A transaction may have reporting requirements for the government if it exceeds a certain amount. By "atomic" I mean that the transaction must succeed completely or it must fail completely. You do not have transactions with an account when money is withdrawn from one account without coming to another (money disappears), or money is deposited to the account, but not debited from another account (money magically appears from nowhere).

0
Dec 15 '17 at 13:52
source share



All Articles