{"id":23,"date":"2021-10-29T04:19:10","date_gmt":"2021-10-29T04:19:10","guid":{"rendered":"https:\/\/blogs.oregonstate.edu\/kcodeblog\/?p=23"},"modified":"2021-10-29T04:19:10","modified_gmt":"2021-10-29T04:19:10","slug":"the-wonders-of-a-break","status":"publish","type":"post","link":"https:\/\/blogs.oregonstate.edu\/kcodeblog\/2021\/10\/29\/the-wonders-of-a-break\/","title":{"rendered":"The wonders of a break"},"content":{"rendered":"\n<p>Resetting the mind<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.sciencenews.org\/wp-content\/uploads\/2018\/08\/081818_book_feat_free.jpg\" alt=\"\" \/><\/figure>\n\n\n\n<p>There I was. Trying. Thinking. Working.  And failing. <\/p>\n\n\n\n<p>What is the problem? Why won&#8217;t this work? I followed the documentation. I double checked my syntax. I retraced my steps and reviewed my logic. But my code is failing and I am not getting the result I am expecting. What is missing?<\/p>\n\n\n\n<p>Working on the capstone project with my group, I encountered this experienced that I&#8217;ve been through multiple times before (as do all coders). The experience of seemingly doing everything correct, yet getting an incorrect feedback from testing. It happens when learning a new language, while still occurring while using familiar tech.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/i.pinimg.com\/originals\/fc\/4a\/25\/fc4a2510775b8c5b13c349908d11bb8d.jpg\" alt=\"\" \/><\/figure>\n\n\n\n<p>Our project requires the use of a natural language parser to interpret and manipulate user input. I decided to venture out to learn regular expressions. And wow. After several hours of reading documentation, looking through tutorials, I just barely was able to return a searched group of characters from a string.<\/p>\n\n\n\n<p>I was frustrated. Did I just waste the all this time and not even see if this was applicable to our project? I decided to take a break and work on something else. <\/p>\n\n\n\n<p>The day after, I decided to return to my venture. Lo and behold, I was able to successfully do what I intended with regex. It was, as if, something clicked and I was able to better see how the syntax worked, and use regular expression.<\/p>\n\n\n\n<p>This was not the only time this happened. It really does seem that taking a break and distancing your mind on a certain topic really does more than brute forcing it for another few hours. I&#8217;ve really heard a lot of advice, not just for programming, about the importance of taking a break. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/hips.hearstapps.com\/ghk.h-cdn.co\/assets\/cm\/15\/11\/55000e4582e64-nap-okay-xln.jpg\" alt=\"\" \/><figcaption>Taking a nap is good for you&#8230; sometimes<\/figcaption><\/figure>\n\n\n\n<p>It just feels both good and exasperating that sometimes, all I needed was to step away and focus of something else for a while. I was so close, but just blocked off at that moment in time. Just need to breathe and relax to find they way through.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Resetting the mind There I was. Trying. Thinking. Working. And failing. What is the problem? Why won&#8217;t this work? I followed the documentation. I double checked my syntax. I retraced my steps and reviewed my logic. But my code is failing and I am not getting the result I am expecting. What is missing? Working &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blogs.oregonstate.edu\/kcodeblog\/2021\/10\/29\/the-wonders-of-a-break\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;The wonders of a break&#8221;<\/span><\/a><\/p>\n","protected":false},"author":11663,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.oregonstate.edu\/kcodeblog\/wp-json\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.oregonstate.edu\/kcodeblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.oregonstate.edu\/kcodeblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/kcodeblog\/wp-json\/wp\/v2\/users\/11663"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/kcodeblog\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":2,"href":"https:\/\/blogs.oregonstate.edu\/kcodeblog\/wp-json\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":25,"href":"https:\/\/blogs.oregonstate.edu\/kcodeblog\/wp-json\/wp\/v2\/posts\/23\/revisions\/25"}],"wp:attachment":[{"href":"https:\/\/blogs.oregonstate.edu\/kcodeblog\/wp-json\/wp\/v2\/media?parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/kcodeblog\/wp-json\/wp\/v2\/categories?post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/kcodeblog\/wp-json\/wp\/v2\/tags?post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}