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
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.
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
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?
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
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 😉
Different modes of payment such as debit card, credit card, UPI, cash
Damn 🎉
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
Nice one! ✌🏻
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.
Outstanding
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
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
Nice
One more use case in games - Interaction with different types of power ups. Each power up can have it's own unique behavior/algorithm.
Different parking strategies in a parking lot :)
And how to decide which one to use when
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?
What's the difference between strategy and factory?
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
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 😉
Different characters in games.
Is it the right answer ??
Is it not a factory pattern?
why we can use template method?
LLD padha do please ya paid bhi kar do pr padha do please