{"id":276,"date":"2016-09-27T09:04:17","date_gmt":"2016-09-27T13:04:17","guid":{"rendered":"https:\/\/mberlove.com\/blog\/?p=276"},"modified":"2016-09-26T14:45:23","modified_gmt":"2016-09-26T18:45:23","slug":"there-are-two-kinds-of-coders-block","status":"publish","type":"post","link":"https:\/\/mberlove.com\/blog\/there-are-two-kinds-of-coders-block\/","title":{"rendered":"There are two kinds of \u201ccoder\u2019s\u00a0block\u201d\u2026"},"content":{"rendered":"<p>\u2026the code kind and the logic kind.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Let me briefly explain:<\/strong> coder\u2019s block is a lot like writer\u2019s block, except for programmers. You sit there staring at your screen, your hands hovering over the keys, mind ready to go at it\u200a\u2014\u200abut nothing happens.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Why?<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Here are the two reasons for, and kinds of, coder\u2019s block:<\/p>\n<h1>\n1. Code jungle\u00a0block<\/h1>\n<p>Hundreds of files. Tens of thousands of lines. Hundreds of thousands of variables. All necessary to the one feature you\u2019re developing. After a while, your brain gets clogged, stuffed up with all the content you\u2019re juggling in your head.<br \/>\nAt some point, it\u2019s simply too much! So that part of your brain shuts off for a while. You know what you\u2019re trying to do, but the rest of the pieces of the puzzle simply refuse to move around any more; they\u2019re tired.<\/p>\n<p>&nbsp;<br \/>\n<strong>How to\u00a0solve:<\/strong><br \/>\nFirstly, take a break! This kind of block is your mind\u2019s way of telling you to chill out for a while and give yourself a mental refresh. Physical activity is useful here too, anything from a walk to a game of volleyball.<br \/>\nSecondly, see if you can take some time to clean up the code, or just look through it a bit without trying to code anything at all. A more relaxed, broad approach to your task can move mountains (or blocks).<\/p>\n<p>&nbsp;<\/p>\n<h1>\n2. Logic\u00a0block<\/h1>\n<p>You\u2019re pretty sure the solution you need to write is pretty simple. The code itself may be only a dozen lines long. But you have no idea how to get there. What exactly do the specs for your project mean? How should you interpret the vaguely-worded requirements? Confusion sets in and suddenly you\u2019re paralyzed, trapped between the urge to work on and resolve this confounding issue and the need to back off of it and its complexities and let things sort themselves out in your head. Back and forth you bounce, making no real progress and growing increasingly stressed.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>How to\u00a0solve:<\/strong><br \/>\nAs before, take a break! But this time only to let your tension simmer down\u200a\u2014\u200ahere, you need to take very direct action. Talk to those who wrote the requirements, whether a client, manager, or developer, and get them to elucidate exactly what they need you to do. Talk to them in their language\u200a\u2014\u200aa developer like a developer, a manager in objectives and goals, a client in business logic.<br \/>\nCommunication is key, but it too has its limits\u200a\u2014\u200ayou\u2019ll also need to sit down, re-read your requirements in light of the new information you\u2019ve been given, and give it another stab. It\u2019s daunting, but can be overcome. You\u2019re a developer, and developers are problem solvers at heart.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u2026the code kind and the logic kind. &nbsp; &nbsp; Let me briefly explain: coder\u2019s block is a lot like writer\u2019s block, except for programmers. You sit there staring at your screen, your hands hovering over the keys, mind ready to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[125],"tags":[188,67,190,70,189],"class_list":["post-276","post","type-post","status-publish","format-standard","hentry","category-programming","tag-coders-bock","tag-coding","tag-performance","tag-programming","tag-stress"],"_links":{"self":[{"href":"https:\/\/mberlove.com\/blog\/wp-json\/wp\/v2\/posts\/276","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mberlove.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mberlove.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mberlove.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mberlove.com\/blog\/wp-json\/wp\/v2\/comments?post=276"}],"version-history":[{"count":2,"href":"https:\/\/mberlove.com\/blog\/wp-json\/wp\/v2\/posts\/276\/revisions"}],"predecessor-version":[{"id":278,"href":"https:\/\/mberlove.com\/blog\/wp-json\/wp\/v2\/posts\/276\/revisions\/278"}],"wp:attachment":[{"href":"https:\/\/mberlove.com\/blog\/wp-json\/wp\/v2\/media?parent=276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mberlove.com\/blog\/wp-json\/wp\/v2\/categories?post=276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mberlove.com\/blog\/wp-json\/wp\/v2\/tags?post=276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}