{"id":14,"date":"2025-01-17T05:47:32","date_gmt":"2025-01-17T05:47:32","guid":{"rendered":"https:\/\/blogs.oregonstate.edu\/branthebuilder\/?p=14"},"modified":"2025-01-17T05:47:32","modified_gmt":"2025-01-17T05:47:32","slug":"clean-it-up","status":"publish","type":"post","link":"https:\/\/blogs.oregonstate.edu\/branthebuilder\/2025\/01\/17\/clean-it-up\/","title":{"rendered":"Clean it up"},"content":{"rendered":"\n<p>While I have taken the OSU courses on SWE, which both heavily discuss clean code and code smells. I find that some of the good tips and guidelines have been forgotten, or there are some that I haven&#8217;t seen before. For example this article from <a href=\"https:\/\/patrickkarsh.medium.com\/code-smells-every-software-engineer-should-know-f50766135a33\">Patrick Karsh<\/a> discusses the God Object, which is an object that unintentionally takes on too many responsibilities. This hasn&#8217;t ever been too much of an issue for me but I can see how someone could do this unintentionally. Though I must say I have a related worry given the programming goals I have and my capstone project I do worry about classes or files becoming too monolithic. Looking at the data structures and classes that are required I worry they might get too heavy. For example the player class has to handle many different tasks and objects from experience to inventory and relationships. I do think this would be a good topic to research, see how other devs have tackled this task, and what best practices exist.<\/p>\n\n\n\n<p>The other side of it, things I would like to correct within myself has to do with my pride and history as a programmer. I don&#8217;t any cases besides snake case. I understand that other languages have different conventions, and this is due to me having started with Python but I find snake case to be the easiest to read and cleanest looking naming convention. Furthermore, I also want to get better at my general naming conventions. Being descriptive while eliminating &#8220;noise&#8221; words. <a href=\"https:\/\/www.freecodecamp.org\/news\/clean-coding-for-beginners\/\">Clean Code Explained<\/a> describes noise as word like data, list, and info. I find that I will sometimes use these words when I&#8217;m running out of ideas for new variables. I&#8217;ve definitely used the name &#8220;temp_list&#8221; more than once. Hopefully, taking another look at these topics as I finish my education will stick with me for a while longer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While I have taken the OSU courses on SWE, which both heavily discuss clean code and code smells. I find that some of the good tips and guidelines have been forgotten, or there are some that I haven&#8217;t seen before. For example this article from Patrick Karsh discusses the God Object, which is an object [&hellip;]<\/p>\n","protected":false},"author":14555,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-14","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.oregonstate.edu\/branthebuilder\/wp-json\/wp\/v2\/posts\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.oregonstate.edu\/branthebuilder\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.oregonstate.edu\/branthebuilder\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/branthebuilder\/wp-json\/wp\/v2\/users\/14555"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/branthebuilder\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":1,"href":"https:\/\/blogs.oregonstate.edu\/branthebuilder\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":15,"href":"https:\/\/blogs.oregonstate.edu\/branthebuilder\/wp-json\/wp\/v2\/posts\/14\/revisions\/15"}],"wp:attachment":[{"href":"https:\/\/blogs.oregonstate.edu\/branthebuilder\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/branthebuilder\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/branthebuilder\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}