Strategy Design Pattern - Use Cases & Examples!

Поделиться
HTML-код
  • Опубликовано: 7 окт 2024
  • #lowleveldesign #softwareengineer #designpatterns

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

  • @sainihith
    @sainihith Год назад +9

    Different modes of payment such as debit card, credit card, UPI, cash

  • @mihirsawant8817
    @mihirsawant8817 Год назад +9

    Encryption algorithms, like for security which algorithm to pick out of 2-3 so that it is random and also server can select any one when requested by client

  • @parmarkamlesh6493
    @parmarkamlesh6493 Год назад

    Compression algorithm like zip and rar , by passing file list at run time we can pass zip or rar strategy and compress the files. Comparator interface is also a example of the same in java.

  • @anandtomar2754
    @anandtomar2754 9 месяцев назад

    Outstanding

  • @pimc172
    @pimc172 3 месяца назад

    I'm running simulations for a board game we are developing. I'm developing strategies for what i expect to be different type of players with their...own strategy

  • @amitkrishna2412
    @amitkrishna2412 Год назад +3

    Which type of Tax calculation algorithm to be applied for what type of user or if the user has a certain set of tex benefit calculate tax accordingly

  • @theaamirslab
    @theaamirslab 10 месяцев назад

    Nice

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

    One more use case in games - Interaction with different types of power ups. Each power up can have it's own unique behavior/algorithm.

  • @pratyushprateek2934
    @pratyushprateek2934 Год назад +2

    Different parking strategies in a parking lot :)

  • @binarytraveller
    @binarytraveller Год назад +1

    And how to decide which one to use when

  • @singhji4149
    @singhji4149 Год назад

    Hi keerti,
    Recently i have seen videos it is outstanding.
    There is request can take springboot course from basic to advance? Please 🙏? Let me know when it will start?

  • @abhinavsinghal1530
    @abhinavsinghal1530 Год назад +3

    What's the difference between strategy and factory?

    • @nativelearning
      @nativelearning 9 месяцев назад

      Totally different constructs , factory is used to build or construct after construction is it used in the way it is created and strategy is used to get/set/create/inject (behaviour can change in runtime) algorithms to its users

    • @nativelearning
      @nativelearning 9 месяцев назад

      Let me do one better 😉
      Check out strategy and bridge pattern class diagram , both will be exactly same and checkout why this is named differently, happy search in google / chat gpt 😉

  • @adarshkhatei7743
    @adarshkhatei7743 Год назад

    Different characters in games.
    Is it the right answer ??

  • @sushmithakatti2567
    @sushmithakatti2567 Год назад

    Is it not a factory pattern?

  • @ermahesh2009
    @ermahesh2009 Год назад

    why we can use template method?

  • @ashishpal5088
    @ashishpal5088 Год назад +1

    LLD padha do please ya paid bhi kar do pr padha do please