DEV Community

Monty Harper
Monty Harper

Posted on

1

To Singleton or Not To Singleton??

So I'm thinking about using a singleton to store the user preferences for the app I'm working on. As a beginner I hear this is a controversial design pattern choice. To Singleton or not to Singleton? That is my question. Experienced developers, please weigh in! Thanks.

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs