Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'output': 0.04; 'model,': 0.05; 'that?': 0.05; 'framework.': 0.07; 'thats': 0.07; 'api': 0.09; 'python': 0.09; 'command-line': 0.09; 'forcing': 0.09; 'happen.': 0.09; 'postgres': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'subject:python': 0.11; 'backend': 0.15; 'interfaces': 0.15; 'languages.': 0.15; 'guide.': 0.16; 'library"': 0.16; 'postgres,': 0.16; 'programmer,': 0.16; 'subject:Feedback': 0.16; 'wrote:': 0.17; 'basically': 0.17; 'instance,': 0.17; 'module,': 0.17; 'python?': 0.20; 'bit': 0.21; 'aspect': 0.22; 'cc:2**0': 0.23; 'example': 0.23; 'mention': 0.23; 'cc:no real name:2**0': 0.24; 'command': 0.24; 'pass': 0.25; 'least': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'developers': 0.26; 'language.': 0.27; 'core': 0.27; 'functions.': 0.27; 'library.': 0.27; "doesn't": 0.28; 'chris': 0.28; 'run': 0.28; '"do': 0.29; 'concern': 0.29; 'perl': 0.29; 'usually': 0.30; 'framework': 0.30; 'basic': 0.30; 'extract': 0.33; 'front': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'but': 0.36; 'data.': 0.36; 'programmers': 0.36; 'should': 0.36; 'october': 0.37; 'does': 0.37; 'received:209': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'skip:l 20': 0.38; 'takes': 0.39; 'end': 0.40; 'your': 0.60; 'from:no real name:2**0': 0.60; 'most': 0.61; 'needing': 0.62; 'personal': 0.62; 'ever': 0.63; 'more': 0.63; 'making': 0.64; 'offer': 0.65; 'want,': 0.65; 'fact,': 0.69; 'designers': 0.75; '(your': 0.84; 'controller,': 0.84; 'it"': 0.84; 'motto': 0.84; 'zen': 0.84; 'controller': 0.91 Newsgroups: comp.lang.python Date: Sat, 13 Oct 2012 15:24:04 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=173.88.33.244; posting-account=s5n-HgoAAAADkPp3Xa9skJeRDkBou06u References: <634c9dca-e64d-40c6-b9d5-cf04a86a220a@googlegroups.com> <4c7a82ca-de0c-4b8b-a128-9ecd1b4c8b31@googlegroups.com> <5f18f5d1-1442-4a10-922c-783dc6ddf657@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 173.88.33.244 MIME-Version: 1.0 Subject: Re: Feedback on my python framework I'm building. From: nbvfour@gmail.com To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org 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: , Message-ID: Lines: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1350167052 news.xs4all.nl 6901 [2001:888:2000:d::a6]:46700 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31226 On Saturday, October 13, 2012 2:33:43 PM UTC-4, Chris Angelico wrote: >=20 > Nice theory, but this is the bit that I fundamentally disagree with. > Forcing programmers to work in one particular style is usually not the > job of the language/framework/library. That should be up to the > programmer, or at least the local style guide.=20 Have you ever read the zen of python? "Theres only one way to do it" is a c= ore motto of the python language. In my opinion, this is the most important= aspect of python and is what makes python so much better than PHP and perl= and all the other "do it however you want, the more convoluted and obfusca= ted the better!" languages. > I do like your plan of > having identical interfaces to the same functionality (your example of > web-based and command-line is particularly appealing to my personal > tastes), but the same can usually be achieved with a well-built > library. In fact, all you need to do is have your model as a simple > Python module, and then the view and controller call on its functions. >=20 > What does your framework offer over a basic system like that? This "well built library" you mention basically describes my framework. You= write a model method/function that takes data and then returns data. All g= iotto does is extract that data from the controller, pass it on to the mode= l, then take the output of the model and pass it in to the view. You write = the view, you write the model. Giotto provides the API for making al this h= appen. Giotto doesn't care if your model calls Postgres or Mysql or Redis o= r RabbitMQ, thats not of any concern to the framework. The advantage of this is that the framework can 'mock' out the model layer = very easily. For instance, your front end designers can work on the HTML wi= thout needing to run postgres, and the backend developers can work on the b= ackend through the command line.