Skip to content

3-tier.py and mvc.py are almost identical #120

Description

@fkromer

3-tier.py and mvc.py are almost identical from a high level point of view. The only difference is that in 3-tier.py the logic instance and the ui instance may be assigned to the data instance explicitly. In mvc.py the model instance and the view instance is assiged to the controller instance statically during its creation.

Activity

  1. fkromer commented on Feb 20, 2016

    @fkromer
    Author
    Quality attribute explicit assingment (3-tier.py) implicit assignment (mvc.py)
    code reusability + -
    usage complexity - +
  2. faif commented on Feb 21, 2016

    @faif
    Owner

    What would you propose, to remove one of them? Initially there was only mvc.py but later on a contributor decided to also add 3-tier.py, and I thought that it might be useful for some people.

  3. fkromer commented on Feb 21, 2016

    @fkromer
    Author

    I like the explicit assignment concept in 3-tier.py. But most people will know and find the pattern under the name MVC. I would merge the explicit assigment of 3-tier.py into mvc.py and delete this version of 3-tier.py. I think i have read about a 5-tier pattern already. Maybe a n-tier pattern is missing and needs to be implemented as python example.

    Edit
    I found the example for a 5-tier pattern implementation but it is in object oriented C and in the domain of embedded software (look for "Model example" on this website). But i am pretty shure that i have read example code implemented in Java or some other true OOP language too. If i find the ressource i let you know...
    Some other explorative web ressources:
    n-tier/3-tier Pattern
    Difference between n-tier and 3-tier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions