{"id":25,"date":"2021-02-01T04:34:30","date_gmt":"2021-02-01T04:34:30","guid":{"rendered":"http:\/\/blogs.oregonstate.edu\/undeclaredidentifier\/?p=25"},"modified":"2021-02-01T04:34:31","modified_gmt":"2021-02-01T04:34:31","slug":"review-review","status":"publish","type":"post","link":"https:\/\/blogs.oregonstate.edu\/undeclaredidentifier\/2021\/02\/01\/review-review\/","title":{"rendered":"Review Review"},"content":{"rendered":"\n<p>This week I did my first code review.\u00a0 I have never reviewed anyone else\u2019s code before, and this was an interesting experience.\u00a0 At times, the scope of this project feels insurmountable, but this code review gave me a great amount of confidence that we will be able to complete it.<\/p>\n\n\n\n<p>Xinpeng was responsible for writing code to create, move and destroy the note blocks that will be used for our rhythm game.&nbsp; The approach he chose was different than I expected, and I think quite elegant, with a waypoint object storing destinations, and the move function causing the blocks to move towards those destinations.&nbsp; This method could allow us to create unique movements for the blocks as opposed to just a simple straight line.&nbsp; I had never considered an option like this, but immediately saw the potential.<\/p>\n\n\n\n<p>This simple and elegant solution has given me a great amount of faith in my team, not that I didn\u2019t have faith in them before.&nbsp; But this has showed me that even when I am not involved at all in a portion of the project, it will be done well.&nbsp; The code was clean and probably better written than my own.<\/p>\n\n\n\n<p>I also feel I learned a lot from this short exercise.&nbsp; I learned how important documentation is, because I had no idea what the purpose of the waypoint code was until I read the README file that Xinpeng provided.&nbsp; I was able to read the code and understand exactly what it was doing, but without the documentation I didn\u2019t know the purpose.&nbsp;<\/p>\n\n\n\n<p>I also learned about keeping the code clean and a way to structure code that should have been obvious to me.&nbsp; In the code I reviewed, the Update method was used exclusively to call other methods.&nbsp; Those methods were all very clearly and descriptively names.&nbsp; This made it so easy to see what was happening, and in what order.&nbsp; I am going to implement these as I go forward, because I don\u2019t want others to have to read through messy code.<\/p>\n\n\n\n<p>I was dreading the code review, and honestly didn\u2019t have much faith in the process.&nbsp; It seemed like it might just be a way to discourage people.&nbsp; I am pleasantly surprised, and happy to say that I was dead wrong.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week I did my first code review.\u00a0 I have never reviewed anyone else\u2019s code before, and this was an interesting experience.\u00a0 At times, the scope of this project feels insurmountable, but this code review gave me a great amount of confidence that we will be able to complete it. Xinpeng was responsible for writing [&hellip;]<\/p>\n","protected":false},"author":10800,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-25","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.oregonstate.edu\/undeclaredidentifier\/wp-json\/wp\/v2\/posts\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.oregonstate.edu\/undeclaredidentifier\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.oregonstate.edu\/undeclaredidentifier\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/undeclaredidentifier\/wp-json\/wp\/v2\/users\/10800"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/undeclaredidentifier\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":1,"href":"https:\/\/blogs.oregonstate.edu\/undeclaredidentifier\/wp-json\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":26,"href":"https:\/\/blogs.oregonstate.edu\/undeclaredidentifier\/wp-json\/wp\/v2\/posts\/25\/revisions\/26"}],"wp:attachment":[{"href":"https:\/\/blogs.oregonstate.edu\/undeclaredidentifier\/wp-json\/wp\/v2\/media?parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/undeclaredidentifier\/wp-json\/wp\/v2\/categories?post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/undeclaredidentifier\/wp-json\/wp\/v2\/tags?post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}