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

  • Copying files… sometimes

    Copying files… sometimes

    File this one under “tools that probably only I will find useful”. In the course of my normal job I need to copy files to…

  • Partial application and making tea

    Partial application and making tea

    Partial application is like making tea. The person making the tea needs two pieces of information: what kind of tea, and how many people to…

  • Avoiding Tightly-Coupled REST APIs

    Avoiding Tightly-Coupled REST APIs

    As you might have read, WordPress is getting a powerful REST API. For a few years now I’ve been writing endpoints for the WordPress.com version…

  • get_deep_value in PHP

    get_deep_value in PHP

    Ever have an array in PHP that looks like this? It can be annoying to pull deep values from such an array because if you…