In some apps this might mean validation, verification, authorization. Given the current state of your application it governs what a user is allowed to do, what is allowed to happen next, and what happens when they attempt to make changes. It is contrasted with the remainder of the software that might be concerned with lower-level details of managing a database or displaying the user interface, system infrastructure, or generally connecting various parts of the program.” What do I mean by business logic?Īccording to wikipedia, “In computer software, business logic or domain logic is the part of the program that encodes the real-world business rules that determine how data can be created, displayed, stored, and changed. Here is my journey to trying to find the best approach to structuring business logic in my React + Redux app. It is a hybrid of common declarative functionality (like cancellation) that wraps your imperative laser focused business code.Īpproaches for implementing business logic that I cover: I discuss some of the key highlights for each of these options.įinally I will propose a new library, redux-logic, which combines power and flexibility with simplicity. There are many approaches that will work but it is important to understand the tradeoffs to pick the best solution. It is an important question because it influences the architecture of our code and how well our app will absorb new features and complexity as it naturally grows over it’s lifetime. It is a question that we have all struggled with in building applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |