{"id":123,"date":"2005-08-15T17:04:07","date_gmt":"2005-08-15T22:04:07","guid":{"rendered":"http:\/\/myvogonpoetry.com\/wp\/?p=123"},"modified":"2011-10-21T16:09:36","modified_gmt":"2011-10-21T21:09:36","slug":"useless-variable-names","status":"publish","type":"post","link":"https:\/\/myvogonpoetry.com\/wp\/2005\/08\/15\/useless-variable-names\/","title":{"rendered":"Useless Variable Names"},"content":{"rendered":"<p>If you&#8217;re a programmer, you can feel my pain. Is there anything worse than variable names that tell you NOTHING about what the variable does? Today I was debugging someone else&#8217;s code and there were two boolean variables &#8211; one named <em>check1<\/em> and one named <em>check2<\/em>. The worst part is that right about their declarations were comments that said &#8220;<em>check to see if eligible for telnet<\/em>&#8221; and &#8220;<em>check to see if eligible for SNMP<\/em>&#8220;. So, why the heck were they not named something like telnetEligible and SNMPEligible? AARRGGHH!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re a programmer, you can feel my pain. Is there anything worse than variable names that tell you NOTHING about what the variable does? Today I was debugging someone else&#8217;s code and there were two boolean variables &#8211; one named check1 and one named check2. The worst part is that right about their declarations [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","footnotes":""},"categories":[97,8],"tags":[],"class_list":["post-123","post","type-post","status-publish","format-standard","hentry","category-code","category-geek"],"_links":{"self":[{"href":"https:\/\/myvogonpoetry.com\/wp\/wp-json\/wp\/v2\/posts\/123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myvogonpoetry.com\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myvogonpoetry.com\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myvogonpoetry.com\/wp\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/myvogonpoetry.com\/wp\/wp-json\/wp\/v2\/comments?post=123"}],"version-history":[{"count":1,"href":"https:\/\/myvogonpoetry.com\/wp\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":684,"href":"https:\/\/myvogonpoetry.com\/wp\/wp-json\/wp\/v2\/posts\/123\/revisions\/684"}],"wp:attachment":[{"href":"https:\/\/myvogonpoetry.com\/wp\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myvogonpoetry.com\/wp\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myvogonpoetry.com\/wp\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}