Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 17, 2023 07:00 am GMT

Coders block

I often find myself in a state where I simply cant code. You can call it procrastination, I prefer the term coders block as it makes me feel less guilty about it. But the truth is it happens every once in a while and I dont like it.

Throughout my career Ive always strived towards perfection: Ive received incredible praise for my work, job offers were lining up and when things werent going perfect I was falling into a deep hole of self-loathing.

And now here I am again, desperately trying to push my productivity up and finish the work I can no longer postpone. The saboteurs at the backseat of my mind keep telling me that Im a fluke and a failure: for not being able to concentrate and just get the job done, for starting something just to drop it in the middle of it and lots of other nasty things.

And they are right about one thing: theres a pattern here and I am good at recognising patterns and working around them.

Block vs Flow

Why am I sometimes in the flow and other times I cant write a single line of the most primitive CSS?

One would suggest I lack motivation, but Im well aware of the benefits I will receive once Im finished: be it praise or monetary reward.

Can it be the opposite? Am I not afraid enough to fail? No, I am terrified of being seen as a failure, of letting people down, of making there lives harder and disappointing them.

Truth is: I just dont want to do this particular task at this particular moment because I want to do something else. I am motivated, but towards completely different objective that feels more important, rewarding or simply more fun.

When my motivation and task align - Im in the flow and everything is easy and fast. Otherwise theres an internal conflict of interests and I end up playing tug-of-war with myself until one side gives up.

Resolving internal conflicts

Theres a great approach that Ive learned recently called non-violent communication. At the core of it is the concept that humans are wired to be compassionate and the violence stems from unmet needs as a defence mechanism.

Looking for the underlying needs helped me tremendously in interpersonal communication and I thought Ill give it a try to resolve an internal conflict too.

The process goes like this: identify and separate facts from the feelings, then discover underlying needs and finally come up with potential actions to satisfy those needs.

In my case I have an incomplete task at hand and I cant seem work on it for more than 5 consecutive minutes. I feel boredom and shame. I need a sense of challenge because professional growth is important to me, and I am ashamed because I value reliability: its important that I feel confident that I can fulfil promises I make.

So what actions can I take to ensure that my needs of professional growth and relatability are met?

The last one is easy: I have to finish the task and find ways to avoid similar situations in the future (hence the research article).

But how can I get professional growth from a boring task?

The place one is least willing to look

Growth stems from creativity: from trying something new and unexpected. Coincidentally (not really) new and unexpected kills boredom. Unfortunately, it also requires change and a change is uncomfortable and even stressful as leaving the safe space of our settled beliefs is not much different from leaving our home and going on an adventure.

When I started this task, I had a plan B: this exact form has been implemented already, but the code was messy and used some quite outdated libraries. Merging the old with the new is something I have never done before: Im an adept of napalm refactoring (as in rewriting from grounds up rather then dealing with imperfect code). And there I have it: an opportunity to grow, to be less judgemental of code that just works and to incorporate outdated code into a fresh and modern tech stack and see if I can make it not only work, but make it beautiful.

Once Ive come to this realisation I got an incredible surge of desire to work on the task I loathed a moment before. Ive dropped this article at that exact point and dived into it.

Im happy to report that one hour later I had a working prototype of the page in question, allowing creation of JSX components from Pug templates and I couldnt be more proud of this solution. Cant wait to show it to my teammates! It might make their lives easier as well!

Thank you for reading! Would you mind sharing what are the coders blocks that youve overcome and how?


Original Link: https://dev.to/valeriavg/coders-block-4p33

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To