{"id":666,"date":"2026-04-28T11:38:02","date_gmt":"2026-04-28T15:38:02","guid":{"rendered":"http:\/\/stephendavies.org\/data420\/?p=666"},"modified":"2026-04-28T11:38:02","modified_gmt":"2026-04-28T15:38:02","slug":"point-of-clarification","status":"publish","type":"post","link":"http:\/\/stephendavies.org\/data420\/index.php\/2026\/04\/28\/point-of-clarification\/","title":{"rendered":"Point of clarification"},"content":{"rendered":"<p>I know that those who haven&#8217;t had CPSC 240 are wrestling a little bit with this whole notion of &#8220;writing a class that has methods which <i>some <u>other<\/u> code<\/i> (not written by you) will call.&#8221; So just to clarify:<\/p>\n<p>Nowhere in <i>your<\/i> code will <i>you<\/i> call any of the following methods:<\/p>\n<ul>\n<li><tt>.decide_against()<\/tt><\/li>\n<li><tt>.inform_foaf()<\/tt><\/li>\n<li><tt>.request_rewire()<\/tt><\/li>\n<\/ul>\n<p>Instead, <i>my simulator<\/i> will be calling those methods of yours (specifically, if you care, on lines 220, 151, and 254 of <tt>model.py<\/tt>, respectively.)<\/p>\n<p>So don&#8217;t get wrapped around the axle trying to figure out where to call your own <tt>.request_rewire()<\/tt> method. You <b>won&#8217;t<\/b> call it. I will.<\/p>\n<p>In contrast, your code <i>will<\/i> call:<\/p>\n<ul>\n<li><tt>self.model.request_foaf_info_from()<\/tt><\/li>\n<\/ul>\n<p>when you want to know who your neighbors&#8217; neighbors are (and their play histories).<\/p>\n<p>Send email if you&#8217;re confused about any of this. I&#8217;m happy to explain.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I know that those who haven&#8217;t had CPSC 240 are wrestling a little bit with this whole notion of &#8220;writing a class that has methods which some other code (not written by you) will call.&#8221; So just to clarify: Nowhere in your code will you call any of the following methods: .decide_against() .inform_foaf() .request_rewire() Instead, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[1],"tags":[],"class_list":["post-666","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/stephendavies.org\/data420\/index.php\/wp-json\/wp\/v2\/posts\/666","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/stephendavies.org\/data420\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/stephendavies.org\/data420\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/stephendavies.org\/data420\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/stephendavies.org\/data420\/index.php\/wp-json\/wp\/v2\/comments?post=666"}],"version-history":[{"count":1,"href":"http:\/\/stephendavies.org\/data420\/index.php\/wp-json\/wp\/v2\/posts\/666\/revisions"}],"predecessor-version":[{"id":667,"href":"http:\/\/stephendavies.org\/data420\/index.php\/wp-json\/wp\/v2\/posts\/666\/revisions\/667"}],"wp:attachment":[{"href":"http:\/\/stephendavies.org\/data420\/index.php\/wp-json\/wp\/v2\/media?parent=666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/stephendavies.org\/data420\/index.php\/wp-json\/wp\/v2\/categories?post=666"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/stephendavies.org\/data420\/index.php\/wp-json\/wp\/v2\/tags?post=666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}