Why not bypass Presenter when fetching data from Model?
Hi,
I though that I can save a lot of work by bypassing Presenter when fetching data from the Model, like this:
class FrontendApplication : public FrontendApplicationBase
{
public:
FrontendApplication(Model &m, FrontendHeap &heap);
virtual ~FrontendApplication() {}
//added this
Model& getModel()
{
return model;
}
...Is there any problem with this approach, when fetching/setting Model data?
View <-> Presenter <-> Model
vs.
View <-> Model
If I use Presenter, I need to implement viewPresenter.cpp and viewPresenter.hpp for every single variable, which seems crazy amount of work, for seemingly 0 purpose.
I could just use application().getModel().getVariable(), right?
Thanks!