Payton.Codes

Musings on life, games, and code

Hi, I’m Payton!

I’m a passionate coder by day and an enthusiastic tabletop dungeon master by night.

This blog is a place for me to tell stories and share fun things I’ve made. I write about insights from my coding projects, philosophical thoughts, and tales from epic D&D campaigns. Whether you’re a fellow developer, someone looking for a one-shot game, or a good friend, I’m excited to share my knowledge and adventures with you.

Here’s some of my latest posts

  • Maybe returning errors in PHP

    Maybe returning errors in PHP

    A common pattern I see in WordPress PHP code (and probably other PHP code) is a function which does some operation on data and returns…

  • Functional Dependency Injection in PHP

    Functional Dependency Injection in PHP

    Having become used to the convenience of passing first-class functions around in JavaScript to make other functions decoupled and easily testable, I was wondering if…

  • Thoughts on Privilege

    Thoughts on Privilege

    Today in my Sangha we explored the concept of Engaged Buddhism, particularly as it applies to race, gender, and class. We explored the most insidious…

  • Search for the Sage

    Search for the Sage

    My fourth D&D adventure crafted for the Automattic Grand Meetup, Search for the Sage is a one-shot game perfect for new and experienced players alike.…