Tag » Singleton

No, I'm not getting a pet.

“Don’t you at least have a pet?”

I’ve lost count of how many times I’ve been asked this question.  For me, it came on the scene around my late 20s and cemented itself as a staple in my early 30s.   625 altre parole


[Java] Simple thread-safe singleton class

public class threadSafeSingleton {

  //objects in singleton
  private HashMap<String, String> myHashMap = new HashMap<String, String>();
  private static threadSafeSingleton singletonInstance = null;

  protected threadSafeSingleton() {
  public static threadSafeSingleton getSingleton() {
    if (singletonInstance == null) {
      singletonInstance = new threadSafeSingleton();
    return singletonInstance;


[Design Pattern] Bạn đã triển khai mẫu Singleton như thế nào?

Trong các ngôn ngữ lập trình hướng đối tượng, chắc hẳn các bạn đã quen với những Design Pattern – những mẫu thiết kế và đặc biệt với là mẫu cơ bản thường gặp là Singleton. 2.050 altre parole

Chia Sẻ

Embryos on board!

Holy cow! It’s been SO long since my last post! So much has happened in the last month! It feels like it’s taken forever to get here, but we FINALLY got through the contract phase, all the medical appointments leading up to transfer(all were perfect). 137 altre parole


Ten years on

For a change of pace… I’ve been thinking most recently about the woman I’ve become and the major influences in my life that have lead me to end up where I am today. 744 altre parole


AMOTC Garage Sale and More

On The Rocks with Carmelina and Lexi had an amazing time with the Albuquerque Mother of Twins Club (AMOTC), as they prepared for their biggest fundraiser of the year. 19 altre parole

Mommy Talk