if there are multiple errors one element can display, the presenter should decide which error message is displayed. If there is only one, then the presenter can say view.showEmailInvalidError() etc
in the first case view.showPasswordInvalidError(errorPwNotLongEnough) or something
string lookup is ok, but I think the idea is that the view does not decide for itself which error to show, if there are multiple options for the same field
well you can name it onSubmitAction or something to make it more generic. But the idea is that the view only informs the presenter. It does not tell the presenter what to do
> The MVP pattern was described by Fowler in 2004 and he retired it in 2006 by splitting the pattern into Supervising Controller (SC) and Passive View (PV). In SC, the View is bound to the Model but not in PV; in PV, the View is only changed by the Presenter directly.
I'm interested in MVVM as well, i'ts extensively used in web front-end frameworks
> This release also brings Kotlin/Native Beta that compiles Kotlin code directly to native binaries. The multiplatform capabilities of Kotlin now cover all supported platforms, so one can share business logic between such components as Android and iOS apps.
I occasionally have unresolved import errors that are actually bullshit. When they start to pile up and I can't work properly anymore, I reimport the project and it always fixes it
As far as I'm aware, there's NO REASON why column one in this gist isn't included in the schema.
The real name for column_one is short which I thought could be the problem, if it were a sqlite keyword, but I've tried changing it to something else but no luck.
lmao wait just kidding
changing the property name from short to something else worked?!?! what the hell is the columnInfo() annotation for then
Yeah it appears I can't use short, but even after changing it, I'm still facing issues with databinding. :/ so I fixed one problem, but I have another one somewhere else