22

Found this "new pattern" during refactor old legacy code... I call it "Singlefalse" pattern

Comments
  • 5
    Oh god! 😂😂😂
  • 1
    It's a no brainier :))
  • 0
    Aside from setting resource manager to that singleton (which is bad but I guess its "ok" since its legacy code) what is the singlefalse here? :)
  • 1
    @arekxv take a closer look...

    static $instance = null

    Is it null???

    Well obviously 😂 unless it was put in because of issues when using multiple threads 😅
  • 0
    @mrstebo I think you need to check what "static" next to it means. :)
Add Comment