[)roi(]
Executive Member
- Joined
- Apr 15, 2005
- Messages
- 6,282
Not adopting MVVM doesn't imply this, but yes making code heavy views is a code smell, but no more than massive ViewModel and/or massive Controller.Agreed. But having code behind the form is just terrible. Unfortunately that is how WinForms/C# programming is taught. And I understand why. But it sticks and most devs never move on to use a proper pattern.
No worries. Some even question SOLID., which is good because most of what is now accepted as good practice was discovered by someone who chose to not just fall in line and accept the standard of the day.Don't agree with Gossman. But that's just me.
It's an "Easy vs Simple" situation; that is, we shouldn't forget its always relative to an individual; as we know initially complex topics can become simple over time, however for a starting developer, almost everything is some degree of complex.MVVM is not complex. If you have an MVVM framework that works, it becomes 2nd nature to use it and think along this pattern. MVVM makes lots of things much simpler. Simpler and less code. The less code the better. MVVM (or MVC) also lets you run automated tests against the VM/C to verify UX behaviour & state. Not so with the code-behind mess.
With MVVM your design starts off with the desired UX. IMO that is far better than to slap controls onto a form and click-click eventhandlers. The VM (or Controller) also provides the separation between the view and whatever happens in the back-end. Many devs just slap that into the event handlers in the code-behind. Ugh...
Hence I recommended he just focus on building the app; as its often easier to appreciate a fix after hitting an issue.
Last edited: