Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
It's a way of designing code.
Most languages have them but among the most common are singletons and factories.
A singleton is a class that only gets instanced once.
A factory is the opposite where a new instance is always returned. -
@nblackburn Thank you for the explanation! I have to admit that this was for the weekly thing (your Dev nightmare in 4 words) - but I appreciate that the community is so kind on devRant! Keep being a positive influence buddy!
Related Rants
What's a design pattern
undefined
wk36