L
L
libera2016-03-08 20:53:51
WPF
libera, 2016-03-08 20:53:51

MVVM with or without it?

I'm learning WPF and so far so good, but I often come across MVVM, they write about it.
While MVVM itself did not study, only looked, logic understood more opinion. Although I do have questions.
My question is when to use MVVM? I understand complex and large projects, but if I have a project with only 100-200 lines, it's not very complicated. Collection of information from 1 site and that's it.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
Vyacheslav Zolotov, 2016-03-08
@SZolotov

C MVVM is easier in both large and small projects

A
Anton Papin, 2016-03-08
@i_light

Always use. Simple - always. WPF is designed from the ground up for binding and normal architecture.
Just because you can do it the same way as in WinForms doesn't mean it's worth doing.
Just remember as a mantra, created a project - add a reference to the MVVM framework, and work. Any framework, for example MVVMLight. Or Prism. Or your bike (I do this), any.

M
MonkAlex, 2016-03-09
@MonkAlex

You don't need MVVM if you don't plan to develop the project further, like supporting N sites on M different platforms or something like that. If expansion is planned, MVVM will come in handy, if only because it will be much easier to reuse the code.

T
Tsiren Naimanov, 2016-03-08
@ImmortalCAT

in general, patterns were invented, not only to simplify the code / logic, etc.,
but to make it easier to understand,
for example, other programmers started a conversation, and said they say, for example, I use a factory in this solution, etc.
the programmer already roughly understands what you mean
, etc.
to me it seems
better from the very beginning to accustom yourself to such code by patterns
well, you need to google antipatterns

A
AxisPod, 2016-03-11
@AxisPod

Take MVVM + Caliburn Micro. Mvvm Light is basically just a set of helpers, although there are also broadcast messages. Prism is too much to start with, maybe too hard.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question