Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #31226

Re: Feedback on my python framework I'm building.

Newsgroups comp.lang.python
Date 2012-10-13 15:24 -0700
References (1 earlier) <mailman.2116.1350137553.27098.python-list@python.org> <4c7a82ca-de0c-4b8b-a128-9ecd1b4c8b31@googlegroups.com> <mailman.2124.1350146902.27098.python-list@python.org> <5f18f5d1-1442-4a10-922c-783dc6ddf657@googlegroups.com> <mailman.2132.1350153223.27098.python-list@python.org>
Subject Re: Feedback on my python framework I'm building.
From nbvfour@gmail.com
Message-ID <mailman.2150.1350167052.27098.python-list@python.org> (permalink)

Show all headers | View raw


On Saturday, October 13, 2012 2:33:43 PM UTC-4, Chris Angelico wrote:
> 
> 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. 

Have you ever read the zen of python? "Theres only one way to do it" is a core 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 obfuscated 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.
> 
> 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 giotto does is extract that data from the controller, pass it on to the model, 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 happen. Giotto doesn't care if your model calls Postgres or Mysql or Redis or 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 without needing to run postgres, and the backend developers can work on the backend through the command line.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-12 21:49 -0700
  Re: Feedback on my python framework I'm building. Etienne Robillard <animelovin@gmail.com> - 2012-10-13 04:18 -0400
  Re: Feedback on my python framework I'm building. Chris Angelico <rosuav@gmail.com> - 2012-10-14 01:12 +1100
    Re: Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-13 08:57 -0700
      Re: Feedback on my python framework I'm building. Etienne Robillard <animelovin@gmail.com> - 2012-10-13 12:10 -0400
      Re: Feedback on my python framework I'm building. Chris Angelico <rosuav@gmail.com> - 2012-10-14 03:48 +1100
        Re: Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-13 11:18 -0700
          Re: Feedback on my python framework I'm building. Chris Angelico <rosuav@gmail.com> - 2012-10-14 05:33 +1100
            Re: Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-13 15:24 -0700
              Re: Feedback on my python framework I'm building. Chris Angelico <rosuav@gmail.com> - 2012-10-14 10:06 +1100
              Re: Feedback on my python framework I'm building. Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-14 02:25 +0000
                Re: one obvious parser (was "Feedback on my python framework I'm building.") Tim Chase <python.list@tim.thechases.com> - 2012-10-13 21:53 -0500
                Re: Feedback on my python framework I'm building. MRAB <python@mrabarnett.plus.com> - 2012-10-14 03:58 +0100
            Re: Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-13 15:24 -0700
            Re: Feedback on my python framework I'm building. Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-14 03:37 +0000
              Re: Feedback on my python framework I'm building. Chris Angelico <rosuav@gmail.com> - 2012-10-14 15:20 +1100
              Re: Feedback on my python framework I'm building. Roy Smith <roy@panix.com> - 2012-10-14 08:48 -0400
                Re: Feedback on my python framework I'm building. Dave Angel <d@davea.name> - 2012-10-14 18:38 -0400
                Re: Feedback on my python framework I'm building. MRAB <python@mrabarnett.plus.com> - 2012-10-15 00:40 +0100
                Re: Feedback on my python framework I'm building. Roel Schroeven <roel@roelschroeven.net> - 2012-10-15 19:29 +0200
        Re: Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-13 11:18 -0700
      Re: Feedback on my python framework I'm building. Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2012-10-14 01:43 +0100
    Re: Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-13 08:57 -0700
  Re: Feedback on my python framework I'm building. Etienne Robillard <animelovin@gmail.com> - 2012-10-13 10:44 -0400

csiph-web