Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fkromer opened this issue Feb 20, 2016 · 3 comments
Open

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

fkromer opened this issue Feb 20, 2016 · 3 comments

Comments

@fkromer
Copy link
Contributor

fkromer commented Feb 20, 2016

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.

@fkromer
Copy link
Contributor Author

fkromer commented Feb 20, 2016

Quality attribute explicit assingment (3-tier.py) implicit assignment (mvc.py)
code reusability + -
usage complexity - +

@faif
Copy link
Owner

faif commented Feb 21, 2016

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.

@fkromer
Copy link
Contributor Author

fkromer commented Feb 21, 2016

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
Projects
None yet
Development

No branches or pull requests

2 participants