Should the user interface be implemented using the Singleton design pattern?

I cannot think of many reasons (or none at all) in which several user interfaces must be created in a desktop application. Is it a good practice to implement a user interface as a singleton? Are there any advantages or disadvantages to this approach?

+3
source share
5 answers

uh ... I always open several copies of Internet Explorer, Word and Excel!

EDIT: I also have several emails open right away in Eudora

I see no good reason to limit the user interface to one ...

+3
source

I can imagine a couple:

1) . , . OS. MDI , , .

2). , , , . , , .

, , Singleton -.

+2

? (, )?

, , Singleton. , .

+1

- . , (, / , /) , . , .

+1

singleton , , , - , .

+1

Source: https://habr.com/ru/post/1698938/


All Articles