Would singleton be a good design pattern for a microblogging site?

后端 未结 3 1396
一整个雨季
一整个雨季 2021-01-15 07:52

I have not used any OO in the past in projects, as I kept it simpler (in fact using archaic mysql_query calls and my own filtering), so I wanted to start a new project, lear

3条回答
  •  天涯浪人
    2021-01-15 08:06

    If I am not mistaken singleton is an antipattern. But depending on the task it can be used.

提交回复
热议问题