Mollyycolllinss's Categories
Mollyycolllinss's Authors
Latest Saves
Have you ever worked with pipelines in Laravel?!
Probably you have heard it while having an interview?
It has lots of use cases and one of its usage is middleware implementation in its kernel.
I'm going to write about pipelines and its design pattern.
thread 🧵
1/8
First of all Pipelines in Laravel are implemented based on chain of responsibility design pattern.
In chain of responsibility which is a behavioral design pattern we pass data to receivers and this receivers implement a specific interface that has a handler method.
2/8
Handler methods may deal with the passed argument and pass it to the next handler.
read more about the design pattern here :
https://t.co/XrJKXecyTv
Let's go for the main part :
3/8
Imagine we want to implement a twitter bot that gets some tweets around the trends and filter the words that we don't wanna show finally send as a new tweet from our bot.
About the filtering part, if it was me, I would implement it with pipelines.
Why?!
4/8
Currently I know exactly what words should be filtered but what about the future?! What if I want to add more filters, I will have to modify the source code and add more switch, if else statements, etc.
I want my code to be robust and maintainable keeping SOLID principles.
Probably you have heard it while having an interview?
It has lots of use cases and one of its usage is middleware implementation in its kernel.
I'm going to write about pipelines and its design pattern.
thread 🧵
1/8
First of all Pipelines in Laravel are implemented based on chain of responsibility design pattern.
In chain of responsibility which is a behavioral design pattern we pass data to receivers and this receivers implement a specific interface that has a handler method.
2/8
Handler methods may deal with the passed argument and pass it to the next handler.
read more about the design pattern here :
https://t.co/XrJKXecyTv
Let's go for the main part :
3/8
Imagine we want to implement a twitter bot that gets some tweets around the trends and filter the words that we don't wanna show finally send as a new tweet from our bot.
About the filtering part, if it was me, I would implement it with pipelines.
Why?!
4/8
Currently I know exactly what words should be filtered but what about the future?! What if I want to add more filters, I will have to modify the source code and add more switch, if else statements, etc.
I want my code to be robust and maintainable keeping SOLID principles.
Tripundra Dhaaran - Paapa Vimukti
Our generations are fascinated about Tripundram being just a religious symbol. There are in depth meanings of such a Tilak on a Seeker's Forehead
The very first mistake is the way it is applied.
Tripund isn't applied with dry Bhasm, it should be made wet and then applied in a prescribed manner with proper use of fingers and direction of application. Bhasm is collected from various sources
The most important ones mentioned in upanishats are 1. Yagnya Kund Bhasm 2. Bhasm made from Cow's Dung alone. A special agnihotram was perform to save the Bhasma after that for Dhaarana. A major mantra while applying bhasm is Mrutyunjaya Mantra
Dwijas have a very long process of applying the Tripundram along with their Sandhyavandanam. For commoners there are some basic rules people have to follow while applying Bhasm
Bhasm Applied in Morning - Should be mixed with water and applied
Bhasm Applied during Afternoon - Should be mixed with Chandan and Applied
Bhasm Applied during and after Pradosh - Should be applied Dry as such
Our generations are fascinated about Tripundram being just a religious symbol. There are in depth meanings of such a Tilak on a Seeker's Forehead
" No Tilak symbolizes Shree Viheen"
— Hindu Media Wiki (@HinduMediaWiki) December 21, 2020
Tilak Dharan on forehead is having deep science than one can ever imagine. It is not just a symbol of Sanatan but also builds a lot of confidence of human actually. It is related to Tejas & Varchasv of a human. pic.twitter.com/vM46BqU3f7
The very first mistake is the way it is applied.
Tripund isn't applied with dry Bhasm, it should be made wet and then applied in a prescribed manner with proper use of fingers and direction of application. Bhasm is collected from various sources

The most important ones mentioned in upanishats are 1. Yagnya Kund Bhasm 2. Bhasm made from Cow's Dung alone. A special agnihotram was perform to save the Bhasma after that for Dhaarana. A major mantra while applying bhasm is Mrutyunjaya Mantra

Dwijas have a very long process of applying the Tripundram along with their Sandhyavandanam. For commoners there are some basic rules people have to follow while applying Bhasm

Bhasm Applied in Morning - Should be mixed with water and applied
Bhasm Applied during Afternoon - Should be mixed with Chandan and Applied
Bhasm Applied during and after Pradosh - Should be applied Dry as such

Overpill, when #BigPharma exploits mental health - RT Documentary
#opioidcrisis
https://t.co/4HNubb02Hj
The #fentanyl drug epidemic in North America
The world is fighting a deadly pandemic. A synthetic drug is killing more people than gun crime, homicide and car accidents combined. #opioidcrisis
https://t.co/hmBF4zSCN6
#opioidcrisis
https://t.co/4HNubb02Hj

The #fentanyl drug epidemic in North America
The world is fighting a deadly pandemic. A synthetic drug is killing more people than gun crime, homicide and car accidents combined. #opioidcrisis
https://t.co/hmBF4zSCN6
