Better React Prop Types with Discriminated Union
November 15, 2022 - 3 min read
When I started my development journey as a junior developer, I used to be the one constantly seeking permission before doing anything. I didn't feel competent and confident enough to do something without first asking for approval.
At that time, it felt like a cautious move, but it had more implications than I could have imagined.
It was like a ritual—waiting for approval from above before I could proceed. What I didn't know was that my seeking permission way of communicating was making myself and the rest of the team slower. I wasn't ready to take responsibility for the decision, and it was reflected in the way I communicated.
Working with much experienced people revealed to me their different communication style:
Instead of asking "Do you think we should do this?" they were saying, "I intend to do this."
It might seem like a subtle shift, but trust me, it sparks a major transformation.
It's a little tweak that completely changed my approach. It's a switch from the usual permission-seeking to confidently stating "I intend to." All of a sudden, I wasn't stuck in limbo waiting for validation. I was stepping up, sharing my intentions with all reasoning and, most importantly, taking responsibility for my actions.
That way, we are moving the authority and decision making to the lower level. The upper level only needs to notice and review your intention and say "Very well". This does not mean that it takes away all of their responsibility and thinking. They can focus on the bigger picture while still having all the intentions in mind.
Here's why this shift was such a game-changer for me:
I realized that leadership isn't about holding all the answers; it's about empowering every team member to contribute their unique insights.
Embracing "I intend to" wasn't just about adjusting my communication style; it marked a shift in my entire perspective. This change in mindset had a profound impact on how I work and collaborate. It's a small phrase that carries immense empowerment.
So, if you ever find yourself caught up in the loop of seeking permission, consider trying out the "I intend to" approach. It might feel different initially, but it's worth the experiment. My journey was transformed by a simple shift in communication and so can be yours.