{"id":3350,"date":"2014-05-10T16:30:22","date_gmt":"2014-05-11T00:30:22","guid":{"rendered":"http:\/\/bendwavy.org\/wp\/?p=3350"},"modified":"2018-02-24T16:54:52","modified_gmt":"2018-02-25T00:54:52","slug":"naming-is-hard-2","status":"publish","type":"post","link":"https:\/\/bendwavy.org\/wp\/?p=3350","title":{"rendered":"naming is hard"},"content":{"rendered":"<p>I often have trouble giving meaningful concise names to variables in the programs I write, perhaps because, until I reach for the keyboard, my thinking is largely nonverbal.  I suspect that it would be less of a problem for someone more exposed to the accumulated lore of programmer culture; though perhaps not in this case:<\/p>\n<p>I&#8217;m thinking of breaking up <a href=\"?p=3325\">this process<\/a> into multiple rounds, to obtain increasing <a href=\"http:\/\/en.wikipedia.org\/wiki\/Smooth_function#Geometric_continuity\">degrees of geometric continuity<\/a>.  The initial nodes would coincide with the input dots but have no defined theta (tangent angle) or kappa (curvature); the first round of replacements determines theta for <i>G<\/i>&sup1; continuity, the next round determines kappa (the first derivative of theta) for <i>G<\/i>&sup2; continuity &#8212; and subsequent rounds may seek higher degrees of continuity by matching further derivatives.<\/p>\n<p>This means that the node object, instead of exactly two fields called <b>theta<\/b> and <b>kappa<\/b>, should have a <em>list<\/em> of theta and its known derivatives (one more than the current replacement-round needs), and I&#8217;m at a loss for a good name for this list.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I often have trouble giving meaningful concise names to variables in the programs I write, perhaps because, until I reach for the keyboard, my thinking is largely nonverbal. I suspect that it would be less of a problem for someone &hellip; <a href=\"https:\/\/bendwavy.org\/wp\/?p=3350\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72,4],"tags":[],"class_list":["post-3350","post","type-post","status-publish","format-standard","hentry","category-curve-fitting","category-neep-neep"],"_links":{"self":[{"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3350"}],"version-history":[{"count":11,"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3350\/revisions"}],"predecessor-version":[{"id":3865,"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3350\/revisions\/3865"}],"wp:attachment":[{"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}