Andrew Oberstar

Relearning PHP

February 28, 2012

Very little of my programming life has been outside of the JVM world. Java was the primary language at my college, and is the primary language at my workplace. Recently, I've gotten into Groovy, which is a dynamic language for the JVM. I dabbled a small amount in C++ and PHP, but didn't stick with them.

I recently began collaborating with a friend on a website, so I've been trying to relearn PHP, which is our common denominator. I read through most of the manual on php.net, but needed something that gave a little more detail.

In general, I have a bad view of PHP as an Object Oriented language. This mainly stems from its beginnings as a simple scripting language and having objects tacked on once people started using it for more complex use cases. PHP's OO capabilities just don't seem mature to me. I've only been developing in PHP for about a week (with not a whole lot of code written), but I loath it. I'm sure a large factor is my background in Java, which makes many aspects of PHP sit funny with me.

I do still want to expand my language horizons, though I don't plan on PHP being anything more than a short-term part of that. I'm considering picking up 7 Languages in 7 Weeks in the next few months. The goal of this book is to give you an intro-level flavor of seven languages: Ruby, Io, Prolog, Scala, Erlang, Clojure, Haskell. That seems like it would be a good starting point on finding a new language to make a deeper dive into.