{"id":542,"date":"2013-05-11T21:30:17","date_gmt":"2013-05-11T19:30:17","guid":{"rendered":"https:\/\/www.moonbug.org\/log\/?p=542"},"modified":"2013-05-11T22:05:53","modified_gmt":"2013-05-11T20:05:53","slug":"zen-in-code","status":"publish","type":"post","link":"https:\/\/www.moonbug.org\/log\/2013\/05\/11\/zen-in-code\/","title":{"rendered":"Zen In Code"},"content":{"rendered":"<p>The following bit, although on the rather shallow topic of writing computer code, rings true on a great many non-computer related levels.<\/p>\n<p>Take note:<\/p>\n<blockquote><p>Models that will be used consistently on all the site&#8217;s pages are best autoloaded in the<br \/>\n<code>config\/autoload.php<\/code> file. Models that are used throughout all the methods of a controller, should be loaded in that controller&#8217;s constructor. Models that are only needed in certain methods within a controller, should be loaded inside those methods, <i>only<\/i>.<\/p><\/blockquote>\n<p>\u00e2\u20ac\u201d From <a href=\"http:\/\/stackoverflow.com\/a\/16440548\/989234\" title=\"CodeIgniter optimization\">CodeIgniter Optimization<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following bit, although on the rather shallow topic of writing computer code, rings true on a great many non-computer related levels. Take note: Models that will be used consistently on all the site&#8217;s pages are best autoloaded in the config\/autoload.php file. Models that are used throughout all the methods of a controller, should be [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[28,10,29],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/www.moonbug.org\/log\/wp-json\/wp\/v2\/posts\/542"}],"collection":[{"href":"https:\/\/www.moonbug.org\/log\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.moonbug.org\/log\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.moonbug.org\/log\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.moonbug.org\/log\/wp-json\/wp\/v2\/comments?post=542"}],"version-history":[{"count":17,"href":"https:\/\/www.moonbug.org\/log\/wp-json\/wp\/v2\/posts\/542\/revisions"}],"predecessor-version":[{"id":559,"href":"https:\/\/www.moonbug.org\/log\/wp-json\/wp\/v2\/posts\/542\/revisions\/559"}],"wp:attachment":[{"href":"https:\/\/www.moonbug.org\/log\/wp-json\/wp\/v2\/media?parent=542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.moonbug.org\/log\/wp-json\/wp\/v2\/categories?post=542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.moonbug.org\/log\/wp-json\/wp\/v2\/tags?post=542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}