{"id":476,"date":"2018-09-15T08:06:40","date_gmt":"2018-09-15T15:06:40","guid":{"rendered":"http:\/\/dragonwarz.net\/?p=476"},"modified":"2018-09-15T08:06:40","modified_gmt":"2018-09-15T15:06:40","slug":"the-python-class","status":"publish","type":"post","link":"https:\/\/dragonwarz.net\/?p=476","title":{"rendered":"The Python Class"},"content":{"rendered":"\n<p>Ahh, the Python Class, and I don&#8217;t mean a Classroom full of students.\u00a0\u00a0<\/p>\n\n\n\n<p>I found a EXCELLENT YouTube channel for explaining aspects of Python.\u00a0 In fact, it&#8217;s the same place I found the logger videos.\u00a0 I didn&#8217;t realize it was the same person at first, but once I did, I bookmarked it!\u00a0\u00a0<\/p>\n\n\n\n<p>His name is Corey Schafer&#8217;s and his videos are located at the following link.\u00a0<br\/><a href=\"https:\/\/www.youtube.com\/user\/schafer5\/playlists\">https:\/\/www.youtube.com\/user\/schafer5\/playlists<\/a><\/p>\n\n\n\n<p>Now that I have learned the basics of a Class, I&#8217;m starting to use it already in my overhaul of the graph section of my Sensor Program.\u00a0 It should clean up my code very nicely, because I can forward one class object to the graph function, and it will hold ALL the needed data!\u00a0 Right now, I have been sending each needed variable to each function, which had up to 6 variables!\u00a0 It wasn&#8217;t pretty, that&#8217;s for sure.\u00a0 However, with a data class, I can store everything that&#8217;s needed, pass the one class instance, and BAM!\u00a0 Nice looking code, pretty much unlimited variables, and I can create as many instances as I want, with very little code!\u00a0 It was even nicer when I realized I can add new variables (or function) to it, without having to adjust every function that uses it.\u00a0 All very good things ^_^\u00a0\u00a0<\/p>\n\n\n\n<p>I have to admit, I have not actually added any new functionality to the program at all, but I have been learning a lot on how to improve the existing code and set the foundation of future enhancements.\u00a0 Add on to this, GitHub and PyCharm, and the management of the code has also greatly improved!\u00a0\u00a0<\/p>\n\n\n\n<p>So although not adding thing to the program seems to be bothering me, I know it&#8217;s for a good cause and will help much more in the long run.\u00a0 So I guess overall, I&#8217;m feeling pretty good with the progress.\u00a0\u00a0<\/p>\n\n\n\n<p>On another side note, my &#8220;step dad&#8221; \/ &#8220;Friend&#8221; \/ &#8220;something?&#8221; &#8230; not sure what to call him, but he&#8217;s awesome and knows a lot around chemistry and science.\u00a0 Anyway, I asked for a bit of input from him about what sensors I might add and what I might be able to figure out with long or short term readings of said sensors.\u00a0 He&#8217;s going to give it some thought and get back to me.\u00a0 So I&#8217;m excited about that!\u00a0 I&#8217;m hoping it will lead to practical use of my project to find out something new or cool!\u00a0\u00a0<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ahh, the Python Class, and I don&#8217;t mean a Classroom full of students.\u00a0\u00a0 I found a EXCELLENT YouTube channel for explaining aspects of Python.\u00a0 In fact, it&#8217;s the same place I found the logger videos.\u00a0 I didn&#8217;t realize it was &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/dragonwarz.net\/?p=476\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-476","post","type-post","status-publish","format-standard","hentry","category-random"],"_links":{"self":[{"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts\/476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=476"}],"version-history":[{"count":1,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts\/476\/revisions"}],"predecessor-version":[{"id":477,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts\/476\/revisions\/477"}],"wp:attachment":[{"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}