{"id":195843,"date":"2014-10-29T16:09:11","date_gmt":"2014-10-29T23:09:11","guid":{"rendered":"https:\/\/2014.ventura.wordcamp.org\/?post_type=wcb_session&#038;p=195843"},"modified":"2014-10-29T16:09:11","modified_gmt":"2014-10-29T23:09:11","slug":"writing-maintainable-and-reusable-javascript","status":"publish","type":"wcb_session","link":"https:\/\/ventura.wordcamp.org\/2014\/session\/writing-maintainable-and-reusable-javascript\/","title":{"rendered":"Writing Maintainable and Reusable JavaScript"},"content":{"rendered":"<p>It&#8217;s really easy for JavaScript files in a theme or plugin to quickly become a big, hairy mess. So let&#8217;s take a look at how to structure JavaScript code in a way that makes it easier to read and understand, easier to maintain, and prevents pollution of the global namespace. We&#8217;ll cover modular JavaScript structure and writing plugins.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s really easy for JavaScript files in a theme or plugin to quickly become a big, hairy mess. So let&#8217;s take a look at how to structure JavaScript code in a way that makes it easier to read and understand, easier to maintain, and prevents pollution of the global namespace. We&#8217;ll cover modular JavaScript structure [&hellip;]<\/p>\n","protected":false},"author":111651,"featured_media":0,"template":"","meta":{"jetpack_post_was_ever_published":false,"_wcpt_session_time":1415491200,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[195783],"footnotes":""},"session_track":[],"session_category":[],"class_list":["post-195843","wcb_session","type-wcb_session","status-publish","hentry"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4l9Vz-OWL","jetpack_likes_enabled":true,"session_date_time":{"date":"November 8, 2014","time":"4:00 pm"},"session_speakers":[{"id":"195783","slug":"natalie-maclees","name":"Natalie MacLees","link":"https:\/\/ventura.wordcamp.org\/2014\/speaker\/natalie-maclees\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/ventura.wordcamp.org\/2014\/wp-json\/wp\/v2\/sessions\/195843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ventura.wordcamp.org\/2014\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/ventura.wordcamp.org\/2014\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":3,"href":"https:\/\/ventura.wordcamp.org\/2014\/wp-json\/wp\/v2\/sessions\/195843\/revisions"}],"predecessor-version":[{"id":195996,"href":"https:\/\/ventura.wordcamp.org\/2014\/wp-json\/wp\/v2\/sessions\/195843\/revisions\/195996"}],"speakers":[{"embeddable":true,"href":"https:\/\/ventura.wordcamp.org\/2014\/wp-json\/wp\/v2\/speakers\/195783"}],"author":[{"embeddable":true,"href":"https:\/\/ventura.wordcamp.org\/2014\/wp-json\/wporg\/v1\/users\/nataliemac"}],"wp:attachment":[{"href":"https:\/\/ventura.wordcamp.org\/2014\/wp-json\/wp\/v2\/media?parent=195843"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/ventura.wordcamp.org\/2014\/wp-json\/wp\/v2\/session_track?post=195843"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/ventura.wordcamp.org\/2014\/wp-json\/wp\/v2\/session_category?post=195843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}