The Singleton Design Pattern In Java

Поделиться
HTML-код
  • Опубликовано: 5 сен 2024

Комментарии • 7

  • @willtollefson
    @willtollefson  7 месяцев назад +7

    What type of singletons do you use? Have you run into situations where an enum singleton wasn't good enough?

  • @DenaTollefson
    @DenaTollefson 7 месяцев назад +5

    Fantastic tutorial on how to make safe, not easily broken singletons, Will! I like how you show us potential flaws when writing code, give us pracitical examples, and show us how to recognize issues then fix them. Great video!

    • @willtollefson
      @willtollefson  7 месяцев назад +4

      Thanks! There are mulitple singleton variants out there with different pros and cons for sure

  • @liongh8994
    @liongh8994 4 месяца назад +1

    amazing, The explanation way, and the english accent is clearly and understandably.

  • @lequilong2725
    @lequilong2725 7 месяцев назад +2

    can you make a video about thread-local and virtual thread

    • @willtollefson
      @willtollefson  7 месяцев назад +1

      Sure! That's a good idea

    • @willtollefson
      @willtollefson  6 месяцев назад

      Here's a video about virtual threads in JDK 21 and it touches on ThreadLocal a bit near the end!
      ruclips.net/video/aXGrR8Q9_ak/видео.html