<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[The Muscle Code's Blog]]></title><description><![CDATA[The Muscle Code's Blog]]></description><link>https://blog.themusclecode.co.uk</link><image><url>https://cdn.hashnode.com/res/hashnode/image/upload/v1601766710089/9QoWtj_8Y.png</url><title>The Muscle Code&apos;s Blog</title><link>https://blog.themusclecode.co.uk</link></image><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 03:45:28 GMT</lastBuildDate><atom:link href="https://blog.themusclecode.co.uk/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Writer's block in programming & 3 ways to crush it]]></title><description><![CDATA[Do you ever sit down lost & bewildered just staring at the screen? You're trying to solve a programming problem, but you can't even get one line in? Yes, that's right programmers get writer's block too.
Whether it's a lack of confidence, an 'off' day...]]></description><link>https://blog.themusclecode.co.uk/writers-block-in-programming-and-3-ways-to-crush-it</link><guid isPermaLink="true">https://blog.themusclecode.co.uk/writers-block-in-programming-and-3-ways-to-crush-it</guid><category><![CDATA[software development]]></category><category><![CDATA[Programming Blogs]]></category><dc:creator><![CDATA[Kwaku Danquah]]></dc:creator><pubDate>Mon, 10 Oct 2022 22:13:07 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1613923080987/SFZMEMCEp.webp" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Do you ever sit down lost &amp; bewildered just staring at the screen? You're trying to solve a programming problem, but you can't even get one line in? Yes, that's right programmers get writer's block too.</p>
<p>Whether it's a lack of confidence, an 'off' day, or a really difficult problem, all engineers at some point hit the wall.</p>
<p>Some will stress out, and others will feel like the imposter, but relax, and take a step back, here are 3 ways in which you obliterate through the wall:</p>
<h2 id="heading-1-rubber-ducking">1) Rubber Ducking</h2>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1601940599269/xwP7iQ3m_.jpeg" alt="Rubber Ducking.jpg" /></p>
<p>You're probably thinking what in the mother ducking is <code>Rubber Ducking</code>? </p>
<p><code>Rubber Ducking</code> is a technique first introduced in <code>The Pragmatic Programmer</code> by Andrew Hunt and David Thomas.</p>
<p>It's simply about describing your problem as if you were describing it to a duck, step by step.</p>
<p>I get it, nobody explains their problems to a duck, but this method is about voicing your problems out loud in the simplest manner possible. </p>
<p>By doing this you frame the complexity of the problem in a more rudimentary way, allowing you to build confidence and a clear picture.</p>
<h2 id="heading-2-take-a-real-break">2) Take a REAL Break!</h2>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1601940937807/UWPN3wCt1.jpeg" alt="Walking.jpg" /></p>
<p>A real break? </p>
<p>Yes, that means not scrolling through the void of social media, but going for a walk, drive, run, and just getting outside! </p>
<p>The amount of problems I've solved whilst AFK(Away From Keyboard) is countless. I'd be in the shower, driving, or even cooking some jollof rice(Ghanaian Dish) and the solution would just become so evident. </p>
<p>I really did not understand why this occurred so frequently until I studied the different types of thinking. </p>
<p>Diffused and focused, I learned a balance between the two is necessary to solve problems in most if not all STEM practices.</p>
<p><strong>Diffused </strong> thinking is synonymous with an idea coming to you while it's not at the forefront of your mind. <strong>Focused</strong> thinking is synonymous with focusing really hard to solve a problem and it's the only task at hand.</p>
<p>Have you ever wondered why you get great idea's in the shower or on long walks/drives? That's because you're mind is in a free-flowing state which is needed to directly think outside the box! 
<em>
Crucial Tip: Once you get the idea write it down straight away otherwise you'll lose it, don't rely on thinking you'll remember it later, you won't!</em></p>
<p>Focusing too hard whilst stuck may hinder your progress, as you're giving your brain little freedom to come up with new ideas. Try having a real break, allowing your brain to work its magic.</p>
<h2 id="heading-3-wishful-programming-top-down-programming">3) Wishful programming / Top down programming</h2>
<p>So this is about coding therefore we should finally see some code or at least something pseudo-like.</p>
<p>The problem we're trying to solve is to sort n amount of pancakes by size and flavour.</p>
<p>How are we going to do it? We could spend a lot of time designing a complex algorithm before we even kick off. How about instead we just wish' these methods into existence:</p>
<pre><code>public <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> main(<span class="hljs-built_in">String</span>[] args) {
        <span class="hljs-keyword">var</span> pancakes = List.Of(bigBlueberryPancake, smallBlueberryPancake, smallPancake);
        sortBySizeAndFlavour(pancakes);
  }
</code></pre><pre><code>public <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> sortBySizeAndFlavour(List&lt;Pancakes&gt; pancakes) {
     sortBySize(pancakes);
     sortByFlavour(pancakes);
}
</code></pre><p>This methodology specifies the complex pieces and divides them into successive smaller blocks of code. Enabling you not to get overwhelmed and giving you neural chunks to solve the larger problem at hand. A lot of the time it's best to start instead of just cranking out every detail before you write a line of code.</p>
<p>There are many more methods out there but here's a good place to start. Try these out next time you hit a firewall &amp; watch it crumble!</p>
<p>Sources: </p>
<ul>
<li><a target="_blank" href="https://www.coursera.org/learn/learning-how-to-learn">Learning How To Learn</a> </li>
<li><a target="_blank" href="https://pragprog.com/titles/tpp20/the-pragmatic-programmer-20th-anniversary-edition/">The Pragmatic Programmer</a> </li>
</ul>
]]></content:encoded></item></channel></rss>