{"id":22,"date":"2007-07-23T23:34:22","date_gmt":"2007-07-24T03:34:22","guid":{"rendered":"http:\/\/blogs.n1zyy.com\/andrew\/2007\/07\/23\/solving-the-wrong-problem\/"},"modified":"2007-07-23T23:34:22","modified_gmt":"2007-07-24T03:34:22","slug":"solving-the-wrong-problem","status":"publish","type":"post","link":"https:\/\/blogs.n1zyy.com\/andrew\/2007\/07\/23\/solving-the-wrong-problem\/","title":{"rendered":"Solving the wrong problem"},"content":{"rendered":"<p>I&#8217;m going to apologize in advance for bringing <a href=\"http:\/\/blogs.n1zyy.com\/andrew\/2007\/07\/13\/namespaces\/\">this<\/a> up again, but there&#8217;s been more talk on the php.internals list about the namespace patch that was applied to PHP 6. And somewhere in the discussion (erm, I think discussion implies that there are two opinions given equal weight), someone linked to the <a href=\"http:\/\/marc.info\/?l=php-dev&amp;m=118355320225178&amp;w=2\">original post<\/a> that started this round.<\/p>\n<blockquote><p>Main assumption of the model is that the problem that we are to solve is the problem of the very long class names in PHP libraries.<\/p><\/blockquote>\n<p>Suddenly, I realized what was wrong: they set out to solve the <b>wrong problem<\/b>!<\/p>\n<p>Namespaces reduce typing? No. Namespaces allow the same symbol to be used in two contexts. Importing a namespace, thereby saving keystrokes, is just a nice (and popular) addition.<\/p>\n<p>I&#8217;m not giving up hope, though. Maybe, just maybe, one of us will cut through the fog.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m going to apologize in advance for bringing this up again, but there&#8217;s been more talk on the php.internals list about the namespace patch that was applied to PHP 6. And somewhere in the discussion (erm, I think discussion implies that there are two opinions given equal weight), someone linked to the original post that [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-22","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/posts\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":0,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}