{"id":2098,"date":"2005-06-02T21:01:00","date_gmt":"2005-06-02T21:01:00","guid":{"rendered":"http:\/\/www.flubu.com\/blog\/2005\/06\/02\/how-not-to-code\/"},"modified":"2005-06-02T21:01:00","modified_gmt":"2005-06-02T21:01:00","slug":"how-not-to-code","status":"publish","type":"post","link":"https:\/\/www.flubu.com\/blog\/2005\/06\/02\/how-not-to-code\/","title":{"rendered":"How not to code"},"content":{"rendered":"<p>I am working with a codebase that is just&#8230;. braindamaged. <\/p>\n<p>352 classes and NOT A SINGLE LINE OF COMMENTS!!! <\/p>\n<p>Added to this loverly fact is code like this:<\/p>\n<pre>Iterator it = set.iterator();\nfor (readfileindex = 0; it.hasNext(); readfileindex++) \n{\n    String filename = (String) it.next();\n    \/\/do something with it\n}<\/pre>\n<p>Anybody with a bit of programming experience will realize that, though this block is valid, it makes <b>NO LOGICAL SENSE<\/b>. Especially when you realize that the readfileindex is used somewhere else for UI purposes. It violates about every common sense rule for effective programming.<\/p>\n<p>joy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am working with a codebase that is just&#8230;. braindamaged. 352 classes and NOT A SINGLE LINE OF COMMENTS!!! Added to this loverly fact is code like this: Iterator it = set.iterator(); for (readfileindex = 0; it.hasNext(); readfileindex++) { String filename = (String) it.next(); \/\/do something with it } Anybody with a bit of programming&#8230;<\/p>\n<p class=\"more-link-wrap\"><a href=\"https:\/\/www.flubu.com\/blog\/2005\/06\/02\/how-not-to-code\/\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;How not to code&rdquo;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[109,40],"class_list":["post-2098","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-dealing-with-idiots","tag-work"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3u9vK-xQ","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/posts\/2098","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/comments?post=2098"}],"version-history":[{"count":0,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/posts\/2098\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/media?parent=2098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/categories?post=2098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/tags?post=2098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}