Alexito's World

A world of coding šŸ’», by Alejandro Martinez

šŸ”— Linked post

Check out the linked article.

Let patterns emerge

Without entering in the dicussion about MVVM I just wanted to quote here an interesting paragraph of the linked post. It's mainly for my own memories, as it's something related to a topic that I've had in my mind for a while and I want to have this words saved somewhere that I can refer back when I'm lost in the forest of Patterns.

Donā€™t guess The right Patterns to extract will reveal themselves as the code evolves. Donā€™t force them. The biggest mistakes Iā€™ve made when designing software have been to enforce my preconceived notions of good design on a problem I didnā€™t understand yet. The catch is, until youā€™re deep in the weeds with actual user and business problems, you donā€™t understand the problems youā€™re facing. You canā€™t predict what users will do with your app. How can you predict what the right design to solve their problems is? Attempting to apply your pet software design before the code has emerged is the cause of many headaches. Sometimes a ViewModel (assuming we can define what exactly a ViewModel is) is the right fit for a particular ViewController. But let that decision be driven by the needs at hand, not a preconceived notion of what the design should be.

If you liked this article please consider supporting me