4 ms·
> We lost that argument because no one cared I think the Python community in general adopted that Concept though. The term "view function" is much more common
by the_mitsuhiko 15y ago
> We lost that argument because no one cared
I think the Python community in general adopted that Concept though. The term "view function" is much more common than "controller method". Flask at one point even had the term MTV in the docs I think but we just got rid of it and no longer mention any design patterns there. It's just too much confusion.
Often enough people jump into the IRC channel and ask how to use "MVC" with Flask and what their question really boils down to is how to use a class instead of a function. Design patterns are good and well, but I think documentation should encourage more thinking outside the box.
- zzzeek 15y ago> encourage more thinking outside the box. think outside the box ? how about...."controller function" ! There now I've blown your mind. Who says controllers have to be classes ? Again in GOF days, it was all smalltalk/C++, everything was a class. Not the case with what we use today. A "module of functions" is not terribly different.
- the_mitsuhiko 15y agoYou are preaching to the choir. :-)