{"id":454,"date":"2004-08-04T00:00:00","date_gmt":"2004-08-03T22:00:00","guid":{"rendered":"https:\/\/wwwneu.strehle.de\/tim\/weblog\/archives\/2004\/08\/04\/387\/"},"modified":"2004-08-04T00:00:00","modified_gmt":"2004-08-03T22:00:00","slug":"387","status":"publish","type":"post","link":"https:\/\/www.strehle.de\/tim\/weblog\/archives\/2004\/08\/04\/387\/","title":{"rendered":"Rasmus Lerdorf on PHP 5&#8217;s Object Orientation features"},"content":{"rendered":"<p>In a <a href=\"http:\/\/www.technetra.com\/Writings\/recent\/interview_lerdorf_html\/view\" title=\"Technetra : Interview: Rasmus Lerdorf, PHP Guru\">Technetra (India) interview<\/a>, Rasmus explains where PHP 5&#8217;s additional OO features are coming from:<\/p>\n<p>&#8222;There were a lot of user requests for better Object Orientation in PHP. And a lot of the younger kids coming out of school these days want OO. Everything is Object Oriented. I&#8217;m old. In the computer science, Internet stuff I&#8217;m pretty old. And back when I came out of school, we didn&#8217;t have any Object Oriented languages. That really wasn&#8217;t how I thought about stuff. I taught myself how to program in C by basically writing a couple lines of C, compiling it, then disassembling it and looking at the assembly instructions. And then, after a little while you figure out, OK, if I write it this way, this is the assembly I get and it takes this many instructions and this many (machine) cycles. Back then I could look at a piece of code and I could say that&#8217;s about 87 cycles for this piece of code.<\/p>\n<p>Kids today have no idea. You ask them how many cycles a particular Java method takes and they have absolutely no idea (they can&#8217;t easily know, of course). In another sense you can be a lot more productive when you don&#8217;t have to sit and worry about registers and cycles. Still, getting as close to the hardware as you can does make for the most efficient code. It&#8217;s, of course, a trade off. So all these user requests for better OO have spurred on the changes in PHP 5, but it&#8217;s not a revolutionary change.&#8220;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a Technetra (India) interview, Rasmus explains where PHP 5&#8217;s additional OO features are coming from: &#8222;There were a lot of user requests for better Object Orientation in PHP. And a lot of the younger kids coming out of school these days want OO. Everything is Object Oriented. I&#8217;m old. In the computer science, Internet [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_share_on_mastodon":"0"},"categories":[1],"tags":[],"class_list":["post-454","post","type-post","status-publish","format-standard","hentry","category-weblog"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/posts\/454","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/comments?post=454"}],"version-history":[{"count":0,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/posts\/454\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/media?parent=454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/categories?post=454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/tags?post=454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}