What exactly consists of 'Business Logic' in an application?

后端 未结 8 1369
走了就别回头了
走了就别回头了 2020-12-24 03:30

I have heard umpteen times that we \'should not mix business logic with other code\' or statements like that. I think every single code I write (processing steps I mean) con

8条回答
  •  醉梦人生
    2020-12-24 03:58

    Business logic is pure abstraction, it exists independent of the materialization/visualization of the data in front of your user, and independent of the persistence of the underlying data.

    For example, in Tax Preparation software, one responsibility of the business logic classes would computation of tax owed. They would not be responsible for displaying reports or saving and retrieving a tax return.


    @Lars, "services" implies a certain architecture.

提交回复
热议问题