Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
netikras1986270d"views calling controller functions or loading other views"
duckWit600570dSpaghetti is on the menu.
K-Hole6970dI find a great practical strength of MVP is the ability to place your view layer in an entirely separate module/source set. This enforces two things: that it only talk to the presenter through the contract and vice versa. The business logic doesn't even have the necessary imports for Devs to spray a bunch of UI/platform specific code into what should be a logic module, which otherwise happens aaaall the time.
Cue the usual suspects coming to your desk and asking 'hey I er... Couldn't show this dialog here in [insert presentation class], how do I do it?'. But you know what? That doesn't last too long... Gets the message through.
Such a warm feeling of security.