Not all logic is the same. There&#x27;s logic of the type: &quot;this is what we want to show, and we only want to show it if X is true&quot;, and there&#x27;s logic of the type: &quot;here&#x27;s how we calculate it and that&#x27;s all the complex stuff that X depends on&quot;.<p>If you refuse to put the former in your view, you&#x27;re making your code a lot more complex for little gain. But if you put the latter in your view, you&#x27;re making your view unreasonably complex and hard to read.<p>Neither extreme is good. You need separation of concerns, but some logic really does concern the view directly.