{"id":68,"date":"2008-07-05T08:55:59","date_gmt":"2008-07-05T16:55:59","guid":{"rendered":"http:\/\/www.codebelay.com\/blog\/?p=68"},"modified":"2008-07-05T09:07:29","modified_gmt":"2008-07-05T17:07:29","slug":"php-on-irchenet-harbors-a-racist-coder","status":"publish","type":"post","link":"https:\/\/www.codebelay.com\/blog\/2008\/07\/05\/php-on-irchenet-harbors-a-racist-coder\/","title":{"rendered":"#php on irc.he.net harbors a racist coder"},"content":{"rendered":"<p>16:43 < barce> @niklas` i&#8217;m writing a connect4 game, and noticed that when i traverse<br \/>\n               diagonals acutely or gravely, the only diff between the functions is their<br \/>\n               operators: &#8220;>=&#8221; or &#8220;<=\".\n16:43 < barce> &#8220;++&#8221; or &#8220;&#8211;&#8221;<br \/>\n16:44 < barce> so instead of if ($x < $limit) $x++; i want to define an operator before \n               hand.\n16:44 < barce> e.g. $op = &#8220;++&#8221;; if ($x < $limit) $x{$op};\n16:44 <+impl> so you save one line of code?<br \/>\n16:45 <@horros> Now why the hell would you want to do that?<br \/>\n16:45 <@feti> i&#8217;m successfully confused<br \/>\n16:45 < barce> ya. why not?<br \/>\n16:45 <+impl> because it&#8217;s stupid<br \/>\n16:45 < barce> why is it stupid?<br \/>\n16:45 <+impl> Because you would have to implement runtime operator resolution so that you<br \/>\n              don&#8217;t have to have an else { } block<br \/>\n16:45 < barce> not being curious is stupid.<br \/>\n16:46 < barce> right.<br \/>\n16:46 < barce> that would be pretty hard to do.<br \/>\n16:46 <@horros> No, being curious is good.<br \/>\n16:46 < barce> so i&#8217;m asking if there&#8217;s a language like that.<br \/>\n16:46 <+impl> I&#8217;m sure you could nigger rig it in ruby<\/p>\n<p>Please, come on down to #php irc.he.net and let this impl dude know what a blight to humanity he is.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>16:43 < barce> @niklas` i&#8217;m writing a connect4 game, and noticed that when i traverse diagonals acutely or gravely, the only diff between the functions is their operators: &#8220;>=&#8221; or &#8220;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[92,391,94,93,95],"class_list":["post-68","post","type-post","status-publish","format-standard","hentry","category-techbiz","tag-irc","tag-php","tag-racism","tag-racist","tag-racist-coder"],"_links":{"self":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/68","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/comments?post=68"}],"version-history":[{"count":0,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/68\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/media?parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/categories?post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/tags?post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}