PHP for Pirates: pillaging interactive debugging from Ruby and JavaScript.

*
Accepted Session
Short Form
Intermediate
Scheduled: Wednesday, June 19, 2013 from 4:45 – 5:30pm in B204

Excerpt

It's sad that in 2013, var_dump and die are still two of the most common debugging and reflection techniques in PHP. Let's explore the state of interactive debugging in PHP, compare it with what's available in other languages, and apply this with practical tools and techniques which can be used today.

Description

It’s sad that in 2013, var_dump and die are still two of the most common debugging and reflection techniques in PHP.

While it has improved somewhat in PHP 5.4, the PHP interactive shell (php -a) is not compelling enough to see regular use. The de facto replacement — Facebook’s abandonware phpsh — is actually written in Python, which is a shame, since it’s both possible and practical to do it in userland PHP code.

By exploring the interactive capabilities of other programming languages, I’ll give you an idea of what is possible in an interactive shell, and the power it can bring to your development process. In this talk, we will examine the state of process control, reflection, code analysis and evaluation, and metaprogramming in PHP. I will cover practical techniques and tools which can be used today, and introduce PHP’s missing read-eval-print loop, built on the Symfony Console component.

Speaking experience

I have not given this talk before, but I'm excited to share it with other PHP developers.

Slides for a talk I gave at PGEast are available here: http://hile.mn/hBVrYb

More recently I've been presenting this deck a lot: https://presentate.com/ ... but it's not quite a conference talk :)

Speaker