{"id":1800,"date":"2016-03-20T12:29:03","date_gmt":"2016-03-20T17:29:03","guid":{"rendered":"https:\/\/2016.minneapolis.wordcamp.org\/?post_type=wcb_session&#038;p=1800"},"modified":"2016-03-20T21:02:42","modified_gmt":"2016-03-21T02:02:42","slug":"do-you-really-need-oop","status":"publish","type":"wcb_session","link":"https:\/\/minneapolis.wordcamp.org\/2016\/session\/do-you-really-need-oop\/","title":{"rendered":"Do you really need OOP?"},"content":{"rendered":"<p>Before throwing down all those classes that aren&#8217;t adding anything, ask yourself if you really need Object Oriented Programming (OOP).<\/p>\n<p>In most cases, Classes were a way to add namespacing and encapsulate code prior to PHP 5.3.<\/p>\n<p>Unfortunately, this has led to a &#8216;learn-by-example&#8217; where most everyone still uses classes, and they aren&#8217;t quite sure why.<\/p>\n<p>Really re-examine the architecture of your code and see if it could stand to be de-&#8216;class&#8217;-ified.<\/p>\n<p>Stripping away classes and just using functions allows for code that reduces side effects and is easier to follow.<\/p>\n<p>In this talk Aaron will cover ways to break free from this recurring paradigm of class based coding. Write code that reduces side effects and is easier to follow!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Before throwing down all those classes that aren&#8217;t adding anything, ask yourself if you really need Object Oriented Programming (OOP). In most cases, Classes were a way to add namespacing and encapsulate code prior to PHP 5.3. Unfortunately, this has led to a &#8216;learn-by-example&#8217; where most everyone still uses classes, and they aren&#8217;t quite sure [&hellip;]<\/p>\n","protected":false},"author":10394565,"featured_media":0,"template":"","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_wcpt_session_time":1463862600,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[1611],"footnotes":""},"session_track":[144,174416],"session_category":[],"class_list":["post-1800","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-development","wcb_track-room-3"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6CvCd-t2","session_date_time":{"date":"May 21, 2016","time":"3:30 pm"},"session_speakers":[{"id":"1611","slug":"aaron-holbrook","name":"Aaron Holbrook","link":"https:\/\/minneapolis.wordcamp.org\/2016\/speaker\/aaron-holbrook\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/minneapolis.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/1800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/minneapolis.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/minneapolis.wordcamp.org\/2016\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":1,"href":"https:\/\/minneapolis.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/1800\/revisions"}],"predecessor-version":[{"id":1801,"href":"https:\/\/minneapolis.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/1800\/revisions\/1801"}],"speakers":[{"embeddable":true,"href":"https:\/\/minneapolis.wordcamp.org\/2016\/wp-json\/wp\/v2\/speakers\/1611"}],"author":[{"embeddable":true,"href":"https:\/\/minneapolis.wordcamp.org\/2016\/wp-json\/wporg\/v1\/users\/aaronholbrook"}],"wp:attachment":[{"href":"https:\/\/minneapolis.wordcamp.org\/2016\/wp-json\/wp\/v2\/media?parent=1800"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/minneapolis.wordcamp.org\/2016\/wp-json\/wp\/v2\/session_track?post=1800"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/minneapolis.wordcamp.org\/2016\/wp-json\/wp\/v2\/session_category?post=1800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}