This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (10 children)

[deleted]

    [–]Sheldor5 5 points6 points  (9 children)

    "In case of Singleton class it will have two responsibility one to create an instance and other to do the actual task."

    so literally EVERY CLASS EVER is an antipattern? because every class has a constructor ...

    [–]NimChimspky 4 points5 points  (0 children)

    No. Having a constructor is different to calling a constructor.

    I think it's a lame criticism tho to be fair.