It's a wrong pattern in any language. The fact tha...
# announcements
d
It's a wrong pattern in any language. The fact that
getInstance
takes two parameters suggests that the returned instance somehow depends on those parameters. That is only the case when you call it for the first time, which is not very intuitive to anyone using your code.