{"id":222,"date":"2006-05-29T03:08:32","date_gmt":"2006-05-29T02:08:32","guid":{"rendered":"http:\/\/reinventedsoftware.com\/blog\/2006\/05\/29\/60273-lines\/"},"modified":"2006-06-06T22:43:37","modified_gmt":"2006-06-06T21:43:37","slug":"60273-lines","status":"publish","type":"post","link":"https:\/\/reinventedsoftware.com\/blog\/2006\/05\/29\/60273-lines\/","title":{"rendered":"60,273 Lines And Counting"},"content":{"rendered":"<p><a href=\"http:\/\/www.realmacsoftware.com\/blog\/files\/4de6d46fbf8859f80608023f0c5e518e-19.html#unique-entry-id-19\">Apparently<\/a>, Feeder 1.3.3 has 1,843 more lines of code than RapidWeaver &#8211; 60,273 in total. That doesn&#8217;t include any third-party frameworks or my own Reinvented.framework, which is generic between my applications (mostly handles software registration and some other stuff, maybe not all used). That framework contains 3,043 lines of code.<\/p>\n<p>Who&#8217;d have thunk? OK, maybe nobody but me! <\/p>\n<p>In reality, that sort of difference is negligible. Actually, in reality it&#8217;s a completely meaningless figure and subject to many variables, but it is good, clean, pointless fun to find out about this stuff.<\/p>\n<p>For example, such a count could depend on how you do your brackets. I do them on one line unless it&#8217;s a method definition, a condition that spans two lines or I simply don&#8217;t feel like it:<\/p>\n<pre>\r\n    if ([name length]) {\r\n        return name;\r\n    }\r\n    else {\r\n        return [[[self localFilename] lastPathComponent] \r\n                   stringByDeletingPathExtension];\r\n    }\r\n<\/pre>\n<p>But many people do them like this:<\/p>\n<pre>\r\n    if ([name length]) \r\n    {\r\n        return name;\r\n    }\r\n    else \r\n    {\r\n        return [[[self localFilename] lastPathComponent] \r\n                   stringByDeletingPathExtension];\r\n    }\r\n<\/pre>\n<p>So that could add a few thousand lines to my count. \ud83d\ude09<\/p>\n<p>Perhaps more telling is this: Feeder 1.0 was 24,679 lines. How it&#8217;s grown!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apparently, Feeder 1.3.3 has 1,843 more lines of code than RapidWeaver &#8211; 60,273 in total. That doesn&#8217;t include any third-party frameworks or my own Reinvented.framework, which is generic between my applications (mostly handles software registration and some other stuff, maybe not all used). That framework contains 3,043 lines of code. Who&#8217;d have thunk? OK, maybe [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-222","post","type-post","status-publish","format-standard","hentry","category-software-development"],"_links":{"self":[{"href":"https:\/\/reinventedsoftware.com\/blog\/wp-json\/wp\/v2\/posts\/222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/reinventedsoftware.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/reinventedsoftware.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/reinventedsoftware.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/reinventedsoftware.com\/blog\/wp-json\/wp\/v2\/comments?post=222"}],"version-history":[{"count":0,"href":"https:\/\/reinventedsoftware.com\/blog\/wp-json\/wp\/v2\/posts\/222\/revisions"}],"wp:attachment":[{"href":"https:\/\/reinventedsoftware.com\/blog\/wp-json\/wp\/v2\/media?parent=222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reinventedsoftware.com\/blog\/wp-json\/wp\/v2\/categories?post=222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reinventedsoftware.com\/blog\/wp-json\/wp\/v2\/tags?post=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}