Nintendo Switch
Nintendo Switch was firstly released in 2017, after 8 years now the Switch 2 is coming soon, really looking forward to it.🥳
Playing games properly is a good way to relax. 🎮
Nintendo Switch was firstly released in 2017, after 8 years now the Switch 2 is coming soon, really looking forward to it.🥳
Playing games properly is a good way to relax. 🎮
Never take your body for granted.
❤️Love your body❤️
Heart beats, lungs breathe, ears hear, eyes see, nose smells, mouth tastes, skin feels, brain thinks, hands work, legs walk, feet run, stomach digest, liver detox, kidney filter, bladder store, intestines absorb, pancreas regulate, gallbladder store, spleen filter, bones support, muscles move, joints connect, blood circulate, lymph flow, nerves transmit, hormones regulate, immune system protect, reproductive system reproduce, etc.
Grateful! & Healthy!
Template Method is a behavioral design pattern that allows you to define a skeleton of an algorithm in a base class and let subclasses override the steps without changing the overall algorithm’s structure.
Let’s consider the example of One Time Password (OTP) functionality. There are different ways that the OTP can be delivered to a user (SMS, email, etc.). But irrespective whether it’s an SMS or email OTP, the entire OTP process is the same:
Iterator is a behavioral design pattern that allows sequential traversal through a complex data structure without exposing its internal details.
Thanks to the Iterator, clients can go over elements of different collections in a similar fashion using a single iterator interface.
The main idea behind the Iterator pattern is to extract the iteration logic of a collection into a different object called iterator. This iterator provides a generic method of iterating over a collection independent of its type.
Command is behavioral design pattern that converts requests or simple operations into objects.
The conversion allows deferred or remote execution of commands, storing command history, etc.
Let’s look at the Command pattern with the case of a TV. A TV can be turned ON by either:
We can start by implementing the ON command object with the TV as a receiver. When the execution method is called on this command, it, in turn, calls the TV.on function. The last part is defining an invoker. We’ll actually have two invokers: the remote and the TV itself. Both will embed the ON command object.