|
|
|
|
|
by Aqueous
1147 days ago
|
|
Why is this the top story? This is a major foot gun. Don’t write business logic in the database. You may think you are simplifying things but in fact you are making them more complex. Instead adopt a solution for structuring your business logic in a sane way, such as using a workflow engine. Your code will become simpler and well organized that way without creating a tangled web of distributed rules, as well as exist all in one place. |
|
Alternatively, write all the business logic in the database. This way you can better leverage the DB features and ensure that logic only needs to be written once.