Explain the Singleton class and method in Ruby like I'm five

Did you find this post useful? Show some love!
DISCUSSION (3)

Not sure if it explains like 5 or if it's even legible, but I had my attempt on it quite recently.

.

Like I said, might not have been good, but I'd really appreciate any feedback at all! (I've just started blogging)

I bail on the "explanation for a five year old" because it's quite a hard concept to grasp and I can't see a direct parallel with practical real world examples. Fortunately @rpalo does a terrific job here explaining it:

Yes, it's a very hard concept. BTW thanks, I'll definitely check this out today.

Classic DEV Post from May 8

How to build native desktop apps with JavaScript

any application that can be written in JavaScript, will eventually be written in JavaScript

imadityang
Mechatronics Engineer, Full Stack Web Developer and a new Blogger. My AOI include AI, Blockchain, and Computer Science.

Don't ghost on us ❀️

Sign Up

DEV is home to the best community-driven resources on the web. All 100% free and publicly available.

Discover more by creating your account.