Steve Grunwell

Open-source contributor, speaker, and coffee snob

Tag: Namespaces

Looking out from the Smithsonian Natural Science museum on a foggy day

Speaking at php[world] 2018

php[world], held annually in the greater D.C. metro area, has long been one of my favorite conferences. It was my first non-WordCamp conference speaking engagement, and I’ve been lucky enough to speak at or attend all but one php[world] since it started in 2014.

This year, I’m fortunate to count myself among the speakers, giving two talks this November!

Continue reading→

A Crash-course in PHP Namespaces for WordPress Developers

Way back in 2009, PHP 5.3 was released to the world and with it brought support for PHP namespaces — a way of easily separating your code from other developers’ code, which has since become the de facto way of encapsulating functionality across the PHP ecosystem.

With namespaces, multiple packages could use the same class and function names without conflict, because each one would operate in their own PHP namespaces. Unfortunately, many PHP developers who focus on WordPress development may be in the dark on this extremely useful language feature.

Continue reading→

Cranes constructing a new building

WordPress Plugins: Procedural or OOP?

As you may be aware, I have a profile on PHP Mentoring and am currently working with a number of PHP developers looking to grow their skills and kick-start their careers. Last week, I received an interesting question through the site, and half-way into writing my response I realized it would make a useful blog post: when writing a WordPress plugin, should I be using procedural or object-oriented programming?

Continue reading→

Be excellent to each other.