WPF: Is Prism overkill for small apps?

后端 未结 3 2218
天涯浪人
天涯浪人 2021-02-19 10:26

If I don\'t split my app into different modules (otherwise I would argue that Prism would defo be the way to go) should I use Prism?

I know that Prism gives a convenient

3条回答
  •  孤城傲影
    2021-02-19 10:50

    For a small application you could definitely see it as overkill, but even for a small application you have identified some useful aspects e.g. DelegatedCommand and IEventAggregator (which BTW come with weak event handling so not totally trivial to implement correctly).

    Perhaps a more light-weight framework might be more suitable. I only know Prism, so can't really comment.

    One point I would make though, is that it is very common for small applications to start small, but then evolve into bigger applications. Putting the relatively small amount of effort into architecting it right in the first place is better than paying for the monumental (and sometimes impossible) task of sorting it out later.

提交回复
热议问题