Questions tagged [business-logic]
The business-logic tag has no usage guidance.
15
questions
45
votes
6
answers
16k
views
Do stored procedures violate three-tier separation?
Some colleagues of mine have told me that having business logic in stored procedures in the database violates the three-tier separation architecture, since the database belongs to the data layer ...
54
votes
3
answers
73k
views
Where to put business logic in MVC design?
I have created a simple MVC Java application that adds records through data forms to a database.
My app collects data, it also validates it and stores it. This is because the data is being sourced ...
148
votes
10
answers
76k
views
How much business logic should the database implement?
I've worked in some projects where most of the business logic was implemented on the database (mostly through stored procedures). On the other side, I've heard from some fellow programmers that this ...
79
votes
5
answers
110k
views
Why put the business logic in the model? What happens when I have multiple types of storage?
I always thought that the business logic has to be in the controller and that the controller, since it is the 'middle' part, stays static and that the model/view have to be capsuled via interfaces. ...
54
votes
6
answers
13k
views
Business logic: Database vs code [duplicate]
I'm a student of systems engineering, and all my teachers and friends (that actually work in the area) say that it is better to have as much logic as possible implemented in the database (queries, ...
22
votes
4
answers
6k
views
Thick models Vs. Business Logic, Where do you draw the distinction?
Today I got into a heated debate with another developer at my organization about where and how to add methods to database mapped classes. We use sqlalchemy, and a major part of the existing code base ...
29
votes
2
answers
14k
views
How exactly should a CQRS Command be validated and transformed to a domain object?
I have been adapting poor-man's CQRS1 for quite some time now because I love its flexibility to have granular data in one data store, providing great possibilities for analysis and thus increasing ...
17
votes
6
answers
5k
views
Representing business rules with exceptions
I know it is expensive but (IMO) I believe it is a very good practice. I'm talking about rules like say, you can't save an Invoice if you are not a sales person... so in that case throwing an ...
12
votes
3
answers
492
views
How to educate business managers on the complexity of adding new features? [duplicate]
We maintain a web application for a client who demands that new features be added at a breakneck pace. We've done our best to keep up with their demands, and as a result the code base has grown ...
12
votes
4
answers
14k
views
Business Objects within a Data Access Layer
So I've been creating a data access layer via TDD and have approached somewhat of a concern. I'd rather not start down the wrong path, so I figured I'd ask you guys to see if my thoughts were in line ...
11
votes
6
answers
13k
views
Separation of retrieving data and business objects between DAL and BLL Layers
I did some research before posting this question. Among other questions or post, one of those is provided below. I could not get a clear mind how to determine..
Business Objects within a Data Access ...
8
votes
2
answers
2k
views
What layer to introduce human readable error messages?
One of the things that I have never been happy with on any project I have worked on over the years and have really not been able to resolve myself is exactly at what tier in an application should ...
3
votes
3
answers
348
views
Can a default value for a business process be set in the database column definition?
The business team in my company has come up with a new field to add to one of our entities. For new instances of this entity, it'll be calculated dynamically, but for previously existing instances, we ...
2
votes
3
answers
3k
views
Where should "query" business logic be placed in Domain-driven design?
System description
This is a simple eCommerce application containing a Products inventory managed by an Admin. The Products in inventory/repository will show in the User App. Admin has the ability to ...
1
vote
4
answers
1k
views
Rules engine suggestion for hard coded if-then-else
Reposting question as Previous post on same Topic was not clear.
Currently our financial application receives multiple feeds in csv format from client, there are usually 100k to 5M rows of data. ...