{"id":695,"date":"2010-02-22T10:59:04","date_gmt":"2010-02-22T05:29:04","guid":{"rendered":"http:\/\/www.prasadgupte.com\/go\/?p=695"},"modified":"2011-03-22T11:58:49","modified_gmt":"2011-03-22T06:28:49","slug":"amazing-developer-comments-in-source-code","status":"publish","type":"post","link":"https:\/\/www.prasadgupte.com\/blog\/amazing-developer-comments-in-source-code\/","title":{"rendered":"Amazing Comments In Source Code by Developers"},"content":{"rendered":"<p style=\"text-align: justify;\">As I was getting over Monday blues, <a href=\"http:\/\/in.linkedin.com\/in\/adityatripathi\" target=\"_blank\">Aditya Tripathi<\/a> sent this funny-yet-realistic! I&#8217;m sure this will get every dev-devil laughing with delight; reminiscing the KLOC written with cryptic comments or nothing at all. Here you go, the best code comments seen in source code&#8230;!<\/p>\n<p style=\"text-align: justify; font-family: 'Courier New', Courier, monospace\">\/\/When I wrote this, only God and I understood what I was doing<br \/>\n\/\/Now, God only knows<\/p>\n<p style=\"text-align: justify; font-family: 'Courier New', Courier, monospace\">\/*<br \/>\n* You may think you know what the following code does.<br \/>\n* But you dont. Trust me.<br \/>\n* Fiddle with it, and youll spend many a sleepless<br \/>\n* night cursing the moment you thought youd be clever<br \/>\n* enough to &#8220;optimize&#8221; the code below.<br \/>\n* Now close this file and go play with something else.<br \/>\n*\/<!--more--><\/p>\n<p style=\"text-align: justify; font-family: 'Courier New', Courier, monospace\">\/\/\/<br \/>\n\/\/\/ The point of this is to work around his poor design so that paging will<br \/>\n\/\/\/ work on a mobile control. The main problem is the BindCompany() method,<br \/>\n\/\/\/ which he hoped would be able to do everything. I hope he dies.<br \/>\n\/\/\/<\/p>\n<p style=\"text-align: justify; font-family: 'Courier New', Courier, monospace\">\/\/ Magic. Do not touch.<\/p>\n<p style=\"text-align: justify; font-family: 'Courier New', Courier, monospace\">return 1; \/\/ returns 1<\/p>\n<p style=\"text-align: justify; font-family: 'Courier New', Courier, monospace\">\/\/ This is O(scary), but seems quick enough in practice.<\/p>\n<p style=\"text-align: justify; font-family: 'Courier New', Courier, monospace\">\/\/ I dedicate all this code, all my work, to my wife, Darlene, who will<br \/>\n\/\/ have to support me and our three children and the dog once it gets<br \/>\n\/\/ released into the public.<\/p>\n<p style=\"text-align: justify;\">If you&#8217;re still feeling sick about a Monday or always having a bad one, check this <a href=\"http:\/\/www.rediff.com\/getahead\/2005\/mar\/07work.htm\" target=\"_blank\">link<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As I was getting over Monday blues, Aditya Tripathi sent this funny-yet-realistic! I&#8217;m sure this will get every dev-devil laughing with delight; reminiscing the KLOC written with cryptic comments or nothing at all. Here you go, the best code comments seen in source code&#8230;! \/\/When I wrote this, only God and I understood what I &hellip; <a href=\"https:\/\/www.prasadgupte.com\/blog\/amazing-developer-comments-in-source-code\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Amazing Comments In Source Code by Developers<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[728],"tags":[250,249,251],"class_list":["post-695","post","type-post","status-publish","format-standard","hentry","category-code","tag-bad-practice","tag-code-comments","tag-timepass"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.prasadgupte.com\/blog\/wp-json\/wp\/v2\/posts\/695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.prasadgupte.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.prasadgupte.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.prasadgupte.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.prasadgupte.com\/blog\/wp-json\/wp\/v2\/comments?post=695"}],"version-history":[{"count":0,"href":"https:\/\/www.prasadgupte.com\/blog\/wp-json\/wp\/v2\/posts\/695\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.prasadgupte.com\/blog\/wp-json\/wp\/v2\/media?parent=695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.prasadgupte.com\/blog\/wp-json\/wp\/v2\/categories?post=695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.prasadgupte.com\/blog\/wp-json\/wp\/v2\/tags?post=695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}