this post was submitted on 07 Oct 2025
169 points (91.2% liked)

Programmer Humor

26817 readers
2958 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Shirasho 13 points 3 days ago (1 children)
[–] KoalaUnknown@lemmy.world 9 points 3 days ago* (last edited 3 days ago) (2 children)

Yes, it’s cut down for the meme.

In reality, it would probably look more like this:


public class Singleton
{
  private static readonly Lazy<Singleton> lazy = new Lazy<Singleton>(() => new Singleton());

  private Singleton(){}

  public static Singleton Instance
  {
      get
      {
         return lazy.Value;
      }
   }
}

or this:


public class Singleton
{
   private static readonly Singleton instance = new Singleton();

   private Singleton(){}

   public static Singleton Instance => instance;
}

[–] MonkderVierte@lemmy.zip 2 points 3 days ago (1 children)

Second is more readable.

Btw lazy; why can "second" be "zweite" or "Sekunde" depending on context??

[–] brotundspiele@sh.itjust.works 3 points 2 days ago (1 children)

Why can „Bank“ be a 🏦 or a 🛋️? It's a common feature of many languages that words can have multiple meanings. It's called Teekesselchen in German, which is funny because Teekesselchen is a Teekesselchen itself: It can either mean „small tea kettle“ or „word with more than one meaning“.

But more importantly, why is there no emoticon for bench? I had to use a couch instead.

[–] MonkderVierte@lemmy.zip 2 points 2 days ago

But more importantly, why is there no emoticon for bench? I had to use a couch instead.

Yep. Unicode has lots of useless smileys but is missing some important ones. And some often used (like facepalm) are in hard-to-decipher realistic style instead of the usual round face.

And thanks for the explanation.

Yup, that's correct.