How best to handle duplicated code across platforms/tiers? -


I'm curious about how code handles duplication at multiple platforms / levels.

For example, in our application we have a screen that displays the claim a claim is considered outstanding if it satisfies certain criteria and users want to see who - Which claims are outstanding in their lists, so the application to do so is a piece of code.

We also report that are completely separate from the application, and the user wants to report all their outstanding claims as there is no way to create a claim unit and to see if this report owes the report So, it seems that we have to repeat some code.

You can do something in a function or database that provides a piece of information and your code, but then you are fully trusting DB for business logic and you will be able to claim each claim You have to travel round the DB, which you want to see in the app, not exactly right!

So, how does everyone handle situations like this and should I be aware of the best practices?

In your case especially if your business logic is included in a business domain level, then you have two applications Which can consume business domains independently from each other.

See 100,000 foot views.

  DATAAPATARA | Businessman | | Application Reporting Services  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -