The Anonymous Monk quoth:

"Business Logic" is not a layer. Your "Application logic" employs "business rules", but there is no "Business Logic".

Piffle. I don't know where you get that from.

Anything to do with how the business gets run gets coded in one set of class libraries.

Anything to do with an application program gets put in a separate class which asks the "Business Logic" nicely for a favor here and there:

Application Logic asks, "I got a guy here, wants to buy a widget ... what kinds we got, how many of each and what do they cost?"

"Business Logic" responds with the information requested.

Application Logic says, "this guy wants us to pay him to take a small green widget off our hands."

Business Logic replies, "I want some of the drugs he's on".

Get the difference between "Business Logic" and "Application Logic"? Business Logic holds across all applications, but the each application posesses its own logic.

"Business Logic" exists because I say it does, and it works for me to separate it into it's own layer.


In reply to Re: Three-layer web application architecture by cleverett
in thread Three-layer web application architecture by pg

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.