Pretty new concept to use property delegation to m...
# android
m
Pretty new concept to use property delegation to make MVP implementation much easier. I would love to have some feedback 🙂
l
marcinmoskala: hey @marcinmoskala just a little typo here, and should be
password
I think ( still reading though 😄, looking cool)
Copy code
override fun getEail() {
    return passwordView.text.toString()
}
}
m
True, sorry
r
While we’re on typos, should
checkVaildity
be
checkValidity
?
m
True again. Will be online in minute
m
If the code was in repo, all these typos would not compile or at least there would be a weak warning. 🙂
c
I once made a typo, in the word typo, while I was pointing out a colleague's typo ¯\_(ツ)_/¯
😂 3
🙃 2
d
The title is a clickbait, but the implementation is very elegant. I like that it keeps the Presenter framework independent while minimizing the typical MVP View boilerplate
👍 1
simple smile 1
k
Would also help if it explained why using MVVM with Android bindings is bad. I don't think it's that bad except for the compile time stack mess if there's a compile issue. Just don't put logic in your XML files
3
m
I put all the logic in XML files whenever I use android bindings. It's a lot of fun.
🧌 2
m
@kenkyee I may be wrong, because I base on opinions I heard and my experiences for over half year ago. But when I tried it, it was hard to make it work with Kotlin. Especially for more complex use-cases.
k
It didn't play well with the kotlin plugin for a while...and stack traces are almost as useless as the dagger 2 ones 😔
g
@marcinmoskala We use databindings a lot with Kotlin and we have very complex use-cases in some parts of application, no issue. Completely disagree that DataBindings is something bad or weak, you can implement everything what you have in your article but using even less code and more reusable in some cases (in your code viewmodel coupled with view id).
👍 2
m
I would like to see it one day. Still, here there is no need for annotation processing and code generation, and it is easy to analyze how it is working. Everything have its pros and cons 🙂