Path: csiph.com!usenet.pasdenom.info!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'desired.': 0.07; 'bits': 0.09; 'computed': 0.09; 'logic': 0.09; 'mvc': 0.09; 'php,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'rewrite': 0.09; 'vba,': 0.09; 'stored': 0.12; '6.0,': 0.16; 'correctness': 0.16; 'message-id:@4ax.com': 0.16; 'of)': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'all,': 0.19; 'input': 0.22; 'programming': 0.22; 'putting': 0.22; 'rules': 0.22; 'replace': 0.24; 'url:home': 0.24; 'java': 0.24; 'query': 0.26; 'defined': 0.27; 'header:X-Complaints-To:1': 0.27; 'function': 0.29; '-0700,': 0.31; 'layer': 0.31; 'languages': 0.32; 'another': 0.32; 'checking': 0.33; 'subject:?': 0.36; 'similar': 0.36; 'example,': 0.37; 'application': 0.37; 'implement': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'extended': 0.61; 'developed': 0.63; 'different': 0.65; 'yes': 0.68; 'price': 0.69; 'business': 0.70; 'products': 0.71; 'subject:Design': 0.78; 'subject:good': 0.84; 'vb.net,': 0.84; 'don\xe2\x80\x99t': 0.91; 'why?': 0.91; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Is MVC Design Pattern good enough? Date: Sun, 01 Jun 2014 19:02:29 -0400 Organization: IISS Elusive Unicorn References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: adsl-108-73-118-4.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1401663763 news.xs4all.nl 2942 [2001:888:2000:d::a6]:55796 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72388 On Sun, 1 Jun 2014 10:37:24 -0700, "Ernest Bonat, Ph.D." declaimed the following: >Hi All, > >I had developed many database business applications using MVC design >pattern with different programming languages like PHP, Java EE, VB.NET, C#, >VB 6.0, VBA, etc. All of them defined the Model layer as the data >management of the application domain and business logic implementation. I >ready don’t understand what the data has to do with applications business >logic. Nothing? Can we implement the application business logic in another >layer? Yes or no? Why? Explain? > Presuming a database system with stored procedure capability, one embeds the (business) rules for the database data as stored procedures in the same database... Things like quantity discounts for products for example, may use an SQL query in which the extended price is computed as a stored procedure function based upon the input quantity desired. Similar for validity checking of data ranges, etc.; putting these bits of business logic into the database means one can replace the "controller" without having to rewrite (and reverify the correctness of) the business logic. {Just a quick response off the top of my head} -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/