{"id":6,"date":"2024-01-20T05:28:27","date_gmt":"2024-01-20T05:28:27","guid":{"rendered":"https:\/\/blogs.oregonstate.edu\/phillipma\/?p=6"},"modified":"2024-01-20T05:28:27","modified_gmt":"2024-01-20T05:28:27","slug":"462-blog-post-1","status":"publish","type":"post","link":"https:\/\/blogs.oregonstate.edu\/phillipma\/2024\/01\/20\/462-blog-post-1\/","title":{"rendered":"462 Blog Post 1"},"content":{"rendered":"\n<p>Based on the articles I read about clean code from Codacy and Pluralsight, one thing I&#8217;d like to start doing more often is writing short functions that only do one thing. This idea is based on the single responsibility principle (SRP), which says that a function should have one purpose and perform it effectively. If a function only has one job, it&#8217;s &#8220;more understandable, readable, and maintainable.&#8221; I&#8217;ve been guilty of adding to many responsibilities to a single function so this is something I would like to do a better job of following. <br><br>Something I would like to avoid doing is commenting unclearly. Another thing I&#8217;ve been guilty of is overcommitting so this is something I&#8217;d like to avoid. I would like to be more succinct in my comments and not have paragraph long things that would only take a couple of sentences to describe. I notice some of my comments can sometimes be repetitive or confusing and this is something I would like to avoid in the future.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Based on the articles I read about clean code from Codacy and Pluralsight, one thing I&#8217;d like to start doing more often is writing short functions that only do one thing. This idea is based on the single responsibility principle (SRP), which says that a function should have one purpose and perform it effectively. If [&hellip;]<\/p>\n","protected":false},"author":13747,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.oregonstate.edu\/phillipma\/wp-json\/wp\/v2\/posts\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.oregonstate.edu\/phillipma\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.oregonstate.edu\/phillipma\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/phillipma\/wp-json\/wp\/v2\/users\/13747"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/phillipma\/wp-json\/wp\/v2\/comments?post=6"}],"version-history":[{"count":2,"href":"https:\/\/blogs.oregonstate.edu\/phillipma\/wp-json\/wp\/v2\/posts\/6\/revisions"}],"predecessor-version":[{"id":9,"href":"https:\/\/blogs.oregonstate.edu\/phillipma\/wp-json\/wp\/v2\/posts\/6\/revisions\/9"}],"wp:attachment":[{"href":"https:\/\/blogs.oregonstate.edu\/phillipma\/wp-json\/wp\/v2\/media?parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/phillipma\/wp-json\/wp\/v2\/categories?post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/phillipma\/wp-json\/wp\/v2\/tags?post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}