Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sockeqwe committed Jan 11, 2017
1 parent 61f61de commit 774e042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2017-01-09-mosby3-mvi-1.md
Expand Up @@ -185,7 +185,7 @@ class PersonsModel {
}
{% endhighlight %}

Guess what? **Model reflects the State**. Once I have understood this, a lot of state related issues are solved (and prevented from the very beginning) and suddenly my Presenter has exactly one output: _getView().render(PersonsModel)_. This reflects a simple mathematical function like _f(x) = y_ (also possible with multiple inputs i.e. f(a,b,c), exactly one output). Math might not be everyone's cup of tea but a mathematician doesn't know what a bug is. Developers do.
Guess what? **Model reflects the State**. Once I have understood this, a lot of state related issues are solved (and prevented from the very beginning) and suddenly my Presenter has exactly one output: _getView().render(PersonsModel)_. This reflects a simple mathematical function like _f(x) = y_ (also possible with multiple inputs i.e. f(a,b,c), exactly one output). Math might not be everyone's cup of tea but a mathematician doesn't know what a bug is. Software Engineers do.

Understanding what a "Model" is and how to model it properly at the end solves the "State Problem"

Expand Down

0 comments on commit 774e042

Please sign in to comment.