{"id":4189,"date":"2014-07-19T03:18:32","date_gmt":"2014-07-19T08:18:32","guid":{"rendered":"http:\/\/www.thejuliagroup.com\/blog\/?p=4189"},"modified":"2014-07-19T03:18:32","modified_gmt":"2014-07-19T08:18:32","slug":"clones-and-ugly-code","status":"publish","type":"post","link":"https:\/\/www.thejuliagroup.com\/blog\/clones-and-ugly-code\/","title":{"rendered":"Clones and Ugly Code"},"content":{"rendered":"<p>If I had a clone, all of my code would be beautiful.<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2014\/07\/2014-07-11-17.05.03.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4190\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2014\/07\/2014-07-11-17.05.03-224x300.jpg\" alt=\"St. Paul's butte\" width=\"224\" height=\"300\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2014\/07\/2014-07-11-17.05.03-224x300.jpg 224w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2014\/07\/2014-07-11-17.05.03-764x1024.jpg 764w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2014\/07\/2014-07-11-17.05.03.jpg 1936w\" sizes=\"auto, (max-width: 224px) 100vw, 224px\" \/><\/a><\/p>\n<p>Last week, I was a speaker at the Tribal Disability Conference in Turtle Mountain, where I spoke on starting a business. Then, I went for a site visit at Spirit Lake Vocational Rehabilitation followed by another talk on self-employment at the Tribal Disability Awareness conference. In a nutshell, I talked about how having a disability often teaches people to persevere, to not accept when told they can&#8217;t do something, to find different ways of meeting goals and solicit other people to help them &#8211; and pointed out that all of these traits can be an advantage in starting a business.<\/p>\n<p>Along the way, I was working on a couple of grants, edited a couple of papers &#8211; and just this second remembered I have to finish editing a paper I co-authored for something &#8211; crap!<\/p>\n<p>There was also the usual matter of approving payroll and invoices, answering email and reviewing work people did while I was gone &#8211; new teaching videos to go into the game, artwork, animation, sound files,documentation, bug fixes. Haven&#8217;t nearly finished with that.<\/p>\n<p>I&#8217;m super-stoked to be on a panel on Monday at the <a href=\"http:\/\/www.nclr.org\/index.php\/events\/nclr_annual_conference\/call_for_workshop_presentation\/\">National Council of La Raza conference<\/a>, &#8220;Economic Empowerment in a Wireless World&#8221;. I&#8217;m planning on going Sunday as well, to a lot of the sessions on education.<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2014\/07\/2014-07-12-14.18.45.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4191\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2014\/07\/2014-07-12-14.18.45-224x300.jpg\" alt=\"Heidi Heitkamp\" width=\"224\" height=\"300\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2014\/07\/2014-07-12-14.18.45-224x300.jpg 224w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2014\/07\/2014-07-12-14.18.45-764x1024.jpg 764w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2014\/07\/2014-07-12-14.18.45.jpg 1936w\" sizes=\"auto, (max-width: 224px) 100vw, 224px\" \/><\/a><\/p>\n<p>I got to hear Heidi Heitkamp speak at Turtle Mountain last week and with any luck I&#8217;ll be able to attend Elizabeth Warren&#8217;s talk on Sunday. Must be my week for Democratic senators.<\/p>\n<p>Somewhere in all of that, <a href=\"http:\/\/www.seriousplayconference.com\/program\/main-conference\/\">I finished my slides and video for the Serious Play conference<\/a>, also this week, which I am also excited to attend.<\/p>\n<p>Then, there was the meeting people for lunch, stopping in on my daughter who had surgery and checking on her and all of the other general life things. There is a board meeting I have to get up and go to in about nine hours, which I am definitely NOT excited about, but I&#8217;m the chair, so I kind of have to show up.<\/p>\n<p>In the midst of all of this, there are 77 fixes and improvements in the Fish Lake game, from &#8220;add a better message when the pretest is completed&#8221; to &#8220;Revise quiz code for re-routing students. This is replicated in many quizzes. Make external file ref &amp; just call it in all of those&#8221;.\u00a0 Some of those are crucial &#8211; like I never wrote the quiz for one spot and so that is a dead end.<\/p>\n<p>There are another 47 improvements for Spirit Lake. All of those are to make the game better. For example, we recorded voices from kids at Spirit Lake, and when a student gets a problem wrong, I want to add a video clip that shows one of the game characters and says something like,<\/p>\n<blockquote><p>&#8220;No, 7 x 8 = 56. Now your village burned down.&#8221;<\/p><\/blockquote>\n<p>The kids did a great job and I think those clips will really help players remember their multiplication tables.<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2014\/07\/villageburned.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4192\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2014\/07\/villageburned.png\" alt=\"burning village\" width=\"450\" height=\"254\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2014\/07\/villageburned.png 450w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2014\/07\/villageburned-300x169.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<p>But &#8230; back to my missing quiz. It has to be on mixed fractions, with questions answered using both improper fractions and mixed fractions. There also should be a question with two answers for the numbers that the mixed fraction falls between. Also, at least two word problems, with answers that are whole numbers.<\/p>\n<p>As each question is answered, the program needs to determine if it is the right answer, and, if so, add to the total score, then show a slightly more difficult problem. At the end of the quiz, the student is shown\u00a0 a success message and the student data written to our database and routed back to the game. If it is the wrong answer, the student is shown a failure message and routed to the appropriate page to study.<\/p>\n<p>In the process of writing this, by the way, I noticed that one of the links on the study page is wrong, so I need to fix that. Apparently, I meant to write something involving turtle eggs. Also, there is a video Diana did on mixed fractions which I have yet to review because I got back at midnight on Wednesday and dived into everything else.<\/p>\n<p>So &#8230; back to my no-longer-missing quiz. It is done. I even put in a few comments. As I was writing it, I was thinking, &#8220;some of this code is duplicated&#8221; and &#8220;I bet I could re-write some of these functions so they were more general and then not have so many functions&#8221; and a whole lot of other ideas for making it just a better program.<\/p>\n<p>I KNOW that the world is full of code that gets written to be fixed &#8220;another day&#8221; is still sitting there six years later. In my defense, I will say that I do often loop back around and fix that code &#8211; although it might be a year or two later.<\/p>\n<p>Here is my compromise &#8211; when I am in town, I try, come hell or high water, to make at least one substantive improvement on one of the games every day &#8211; a new video clip, a new quiz. At worst, I may not get any more done than fixing a broken link or touching up a graphic or sound file, but I really try to do more than that. Those 124 fixes are down from 266. It is not perfect but it is progress and it is 1 a.m. In addition to writing this post, I did review one more instructional video and sent feedback, finished the first draft of editing the paper and added improving the code in this quiz as a lower priority game fix.<\/p>\n<p>My code is not perfect but it works, and I will come back and try to do better tomorrow because, at the end of the day, there&#8217;s another day. That&#8217;s how time works.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If I had a clone, all of my code would be beautiful. Last week, I was a speaker at the Tribal Disability Conference in Turtle Mountain, where I spoke on starting a business. Then, I went for a site visit at Spirit Lake Vocational Rehabilitation followed by another talk on self-employment at the Tribal Disability&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1,9,8],"tags":[],"class_list":["post-4189","post","type-post","status-publish","format-standard","hentry","category-dr-de-mars-general-life-ramblings","category-software","category-technology"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/4189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/comments?post=4189"}],"version-history":[{"count":1,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/4189\/revisions"}],"predecessor-version":[{"id":4193,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/4189\/revisions\/4193"}],"wp:attachment":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/media?parent=4189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/categories?post=4189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/tags?post=4189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}