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

  • Creating Sniffs for a PHPCS Standard

    Creating Sniffs for a PHPCS Standard

    As a follow-up to my summary of using phpcs to lint your PHP code, this post will explain how to create, modify, and test a…

  • Linting PHP with phpcs sniffs

    Linting PHP with phpcs sniffs

    Linting is the process of using an automated tool to scan your code for problems before you commit and deploy. It is a practice widely…

  • 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…