{"id":13,"date":"2023-01-27T02:32:46","date_gmt":"2023-01-27T02:32:46","guid":{"rendered":"https:\/\/blogs.oregonstate.edu\/parkchr\/?p=13"},"modified":"2023-01-27T02:32:46","modified_gmt":"2023-01-27T02:32:46","slug":"about-clean-coding-and-what-i-need-to-work-on-myself","status":"publish","type":"post","link":"https:\/\/blogs.oregonstate.edu\/parkchr\/2023\/01\/27\/about-clean-coding-and-what-i-need-to-work-on-myself\/","title":{"rendered":"About Clean Coding and what I need to work on myself"},"content":{"rendered":"\n<p>When reading this article about how to clean code (<a href=\"https:\/\/www.freecodecamp.org\/news\/clean-coding-for-beginners\/\">https:\/\/www.freecodecamp.org\/news\/clean-coding-for-beginners\/<\/a>) and (<a href=\"https:\/\/medium.com\/codex\/clean-code-comments-833e11a706dc\">https:\/\/medium.com\/codex\/clean-code-comments-833e11a706dc<\/a>) I felt like there were few things I wasn\u2019t really doing to make it as clean coding.<\/p>\n\n\n\n<p>One important things I want to start doing like right away would be that comments, they are important but I always forget about it when writing my code..and I look back at the code after few months or year I would be like whats this number for? What does it mean? Can I change it?<\/p>\n\n\n\n<p>Ex.<\/p>\n\n\n\n<p>Would be in this article <a href=\"https:\/\/medium.com\/codex\/clean-code-comments-833e11a706dc\">https:\/\/medium.com\/codex\/clean-code-comments-833e11a706dc<\/a>)<\/p>\n\n\n\n<p>But one thing I believe that I should really stop doing would be just naming the variables randomly or too short. For example I would just name buffer as var buff1, buff2 and continue. Without the comments I would probably get lost easily when I look back at the code.<\/p>\n\n\n\n<p>ex<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"749\" height=\"177\" src=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/6253\/files\/2023\/01\/image.png\" alt=\"\" class=\"wp-image-14\" srcset=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/6253\/files\/2023\/01\/image.png 749w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/6253\/files\/2023\/01\/image-300x71.png 300w\" sizes=\"auto, (max-width: 749px) 100vw, 749px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"761\" height=\"210\" src=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/6253\/files\/2023\/01\/image-1.png\" alt=\"\" class=\"wp-image-15\" srcset=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/6253\/files\/2023\/01\/image-1.png 761w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/6253\/files\/2023\/01\/image-1-300x83.png 300w\" sizes=\"auto, (max-width: 761px) 100vw, 761px\" \/><\/figure>\n\n\n\n<p>When I was reading the article I actually went back to my old codes and thought that I have no clue of few codes which didn\u2019t have comments and the name of variable was like buff1 num1. From now on I really need to start working on it myself.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When reading this article about how to clean code (https:\/\/www.freecodecamp.org\/news\/clean-coding-for-beginners\/) and (https:\/\/medium.com\/codex\/clean-code-comments-833e11a706dc) I felt like there were few things I wasn\u2019t really doing to make it as clean coding. One important things I want to start doing like right away would be that comments, they are important but I always forget about it when writing [&hellip;]<\/p>\n","protected":false},"author":12965,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.oregonstate.edu\/parkchr\/wp-json\/wp\/v2\/posts\/13","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.oregonstate.edu\/parkchr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.oregonstate.edu\/parkchr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/parkchr\/wp-json\/wp\/v2\/users\/12965"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/parkchr\/wp-json\/wp\/v2\/comments?post=13"}],"version-history":[{"count":1,"href":"https:\/\/blogs.oregonstate.edu\/parkchr\/wp-json\/wp\/v2\/posts\/13\/revisions"}],"predecessor-version":[{"id":16,"href":"https:\/\/blogs.oregonstate.edu\/parkchr\/wp-json\/wp\/v2\/posts\/13\/revisions\/16"}],"wp:attachment":[{"href":"https:\/\/blogs.oregonstate.edu\/parkchr\/wp-json\/wp\/v2\/media?parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/parkchr\/wp-json\/wp\/v2\/categories?post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/parkchr\/wp-json\/wp\/v2\/tags?post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}