Quick and easy PHP code generation testing

Submitted by Larry on 22 June 2018 - 8:40pm

Recently I was working on some PHP code (for the PHP-FIG) that involved code generation. Lots of systems these days are doing code generation (compiled dependency injection containers, ORM classes, etc.), but surprisingly I've avoided having to touch that code myself until now.

Of course, like any good developer I was writing tests for it as I went. That meant needing to test that the generated code was valid PHP syntax and did what I wanted it to do.

(Continue reading this post on Steemit.)

The 3 paragraph pitch

Submitted by Larry on 20 October 2017 - 5:21pm

Earlier this week a fellow PHP public figure tweeted saying that I write great session proposals for conferences. After I finished blushing I reached out to him and we talked a bit about what it was he likes about them. (Whatever I'm doing right, I want to know to keep doing it!)

Based on that, I figured it would be educational to dissect how I go about writing session proposals for conferences and hope that conference organizers don't catch on to my tricks. :-)

Best practices are contextual

Submitted by Larry on 23 August 2017 - 5:51pm

Articles, blog posts, and Twitter debates around "best practices" abound. You can't swing a dead cat without bumping into some article espousing the benefits of designing and building software a certain way. (Side note: What kind of sick person are you that you're swinging a dead cat around? Stop that! You're desecrating the dead!)

What nearly all of these articles fail to convey is that "best practices" are contextually-dependent. Always. For one, they evolve over time; really, there is no such thing as a "best practice"; There are "leading practices", which is an inherently changing and growing definition as the technology and market changes and as we as an industry learn more and discover new and exciting ways to royally screw up.

Don't go low

Submitted by Larry on 16 April 2017 - 1:09pm

This is a very uncomfortable time for Drupal. It seems there has been a great deal of concern and discomfort lurking just below the surface for a while, and recent events surrounding me have brought them all to the forefront at once. It's going to take some time to unravel it all. Hopefully it can be a learning process for many.

For the moment, though, there's one particular point I want to address, and particular people I want to address it to: Don't be an asshole, not even in my defense.

I did briefly speak with Dries in private recently about recent events. I cannot discuss details of our conversation, but there is one point he mentioned that I feel warrants an immediate response.

Regarding the continued mystery

Submitted by Larry on 5 April 2017 - 9:34am

Since my last post Dries and Megan have issued a new joint statement on the ongoing mystery regarding my removal from DrupalCon and the gossip campaign against me. To date, I have focused my public posts mainly on my experiences, my beliefs, and the prejudice with which I have been treated by select members of the Drupal community and by select (if powerful) members of Drupal's leadership. However, I feel the latest joint post from Dries and Megan last Friday deserves a more direct response.

Some commenters noted that it doesn't add anything or reveal any additional information. I disagree. It makes implications and innuendo that are sufficiently untrue that I fear, if they have not crossed the line into libel, they certainly teeter on the precipice.

Response to conversations about me

Submitted by Larry on 27 March 2017 - 11:26am

It's been an eventful couple of days, that's for sure... Eventful enough that I feel it's necessary to clarify a few points.

First off, I want to express my sincere thanks to everyone that has reached out, in public or in private, to express their support in this situation. I genuinely appreciate it, even if I haven't had a chance to respond to everyone directly. Thank you all.

I'm especially gratified to hear from those people, particularly women, with whom I have worked most closely over the years in Drupal. Even people I've not talked to in a while, whether we got along or not, have voiced that I’m anything but a misogynist, and to state anything to the contrary is simply wrong.

TMI About me

Submitted by Larry on 22 March 2017 - 3:49pm

Recently, I've become aware of a whisper campaign going around the Drupal world, discussing details about my personal life. I do not know where it started or who all has been part of it. However, it's become apparent that it's not going to settle down, and has now had a major, direct impact on me and my professional career. Only a few people have bothered to speak to me directly, but there's been enough back-chatter that I feel I have no choice but to clarify some private details about me, in public, and address the actions of some fellow members of the Drupal community.

Yep, this is one of those "self-outing" posts. I'm sorry that they still need to exist.

Put your IT money where your mouth is

Submitted by Larry on 29 January 2017 - 9:01pm

Most of the time I try to stick to technical topics on this blog, rather than political. However, as this past week has shown we do not have the luxury of being a-political. We have a political system where rampant institutional corruption has been suddenly overshadowed by a new administration that has a complete and total disregard for the rule of law, American citizens, people in need (domestic or foreign), the future of our planet, and the basic facts of reality itself.

This does not bode well for us as a people.