The Facade Pattern - Programming Design Patterns - Ep 7 - C++ Coding

Поділитися
Вставка
  • Опубліковано 17 гру 2024

КОМЕНТАРІ • 9

  • @m_sourcerer
    @m_sourcerer 2 роки тому

    Thanks a lot for this awesome series! Well done! Keep rocking!

  • @Dima-Teplov
    @Dima-Teplov Рік тому

    Thanks! A good example! Is the way of creating private elements (stack, heap or external objects) important from the point of view of the facade pattern?

  • @Embedonix
    @Embedonix 2 роки тому

    Nice stuffbro. I would use string_view

  • @reverse_shell
    @reverse_shell 2 роки тому

    Thanks for the video addition to the DP series. So this is commonly used for creating wrappers around other libraries or is this just the most common use for you?

    • @CodeTechandTutorials
      @CodeTechandTutorials  2 роки тому +1

      Good question! I would say both, though I don't think most people even realize when they are using it. If they are adapting the library rather and reinterfacing it, they would probably use the term adapt or Adapter.

  • @squarerootof2
    @squarerootof2 2 роки тому

    You upped the video resolution from 2:50 onwards, didn't you? Or maybe it was just YT.

  • @ryumin_217
    @ryumin_217 2 роки тому

    Does it make sense to check if pointer not null and set it to null after delete? In c++ we can legally delete zero pointer I guess

    • @CodeTechandTutorials
      @CodeTechandTutorials  2 роки тому

      I would say it depends on intention. If you're wanting to remove it entirely, the standard is to delete it and then zero the memory