September 30, 2016 — Since the first release of WordPress in 2003, a lot of things have changed. Perhaps the most directly significant change has occurred within the main language in which WordPress is written – PHP. The developments that PHP has gone through since 2003 would make it unrecognisable to many of those who worked with it back then. In 2004, PHP 5 introduced the beginning of proper support for object-oriented programming. The subsequent releases have added many new features to the language, and WordPress has steadily moved along with these developments.
WordPress today is like a living museum of different ways of writing PHP. This means that it can be difficult to understand the best way of writing code for your plugins, themes and extensions. Nevertheless, a “best practice” approach has emerged. It can sometimes be difficult to understand where this approach comes from, and the best way to apply it to your own projects.
In this talk, Jack will do his best to introduce you to the key principles within PHP that drive both the development of WordPress core, and many of the most widely used and well-regarded plugins.
January 14, 2015 — Simplify your theme development, reuse code, and reduce compatibility problems by moving complex logic code out of your templates and functions.php file into a namespaced theme object. Take advantage of stateful caching and build your own base class to reuse functionality between projects.
October 29, 2014 — Hast du schon einmal ein Bündel Funktionen in eine Klasse gesteckt, um weniger Präfixe verwenden zu müssen oder eine Variable in mehreren Funktionen zu verwenden? So steigen viele Entwickler in die objekt-orientierte Programmierung ein. Aber wie geht es von hier aus weiter? Welche Funktionen gehören tatsächlich in ein gemeinsames Objekt, welche nicht? Wie kommunizieren Objekte miteinander?
In diesem Workshop möchte ich die Grundlagen objekt-orientierten Codes vorstellen, wie man prozeduralen Code erkennt und umschreibt (Refactoring) und welche Probleme man speziell in WordPress zu lösen oder hinzunehmen hat.