{"id":77,"date":"2009-02-26T17:30:14","date_gmt":"2009-02-27T01:30:14","guid":{"rendered":"http:\/\/sambaker.net\/neattools\/?p=77"},"modified":"2009-02-26T17:30:30","modified_gmt":"2009-02-27T01:30:30","slug":"the-wires-are-the-thing","status":"publish","type":"post","link":"https:\/\/sambaker.net\/neattools\/?p=77","title":{"rendered":"The Wires are the Thing"},"content":{"rendered":"<p>After dealing with two new module types and incorporating them into the mix, I&#8217;m starting to think I need to rethink my module interaction model.\u00c2\u00a0 Right now modules communicate directly with those modules they have connections with.\u00c2\u00a0 To make the Integer module talk to the Add module, because they each handle data differently, I had to had separate code for each possibility.\u00c2\u00a0 This will quickly get huge, and slow and unwieldy. So, I either need to normalize the data being sent somehow, making for a more universal data transfer, or, make the wires the keepers of the kingdom. Right now they&#8217;re just pretty lines.\u00c2\u00a0 They don&#8217;t do anything besides exist.\u00c2\u00a0 When they are constructed, they are used to populate a list of &#8216;moms&#8217; and &#8216;kids&#8217; for the modules being connected, but other than that, nothing.\u00c2\u00a0 I could make them the converters\/translators\/gate keepers and handle all the unpleasantness.\u00c2\u00a0 Something to think about.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After dealing with two new module types and incorporating them into the mix, I&#8217;m starting to think I need to rethink my module interaction model.\u00c2\u00a0 Right now modules communicate directly with those modules they have connections with.\u00c2\u00a0 To make the Integer module talk to the Add module, because they each handle data differently, I had [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/posts\/77"}],"collection":[{"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=77"}],"version-history":[{"count":3,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/posts\/77\/revisions"}],"predecessor-version":[{"id":79,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/posts\/77\/revisions\/79"}],"wp:attachment":[{"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=77"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=77"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}