Recursion and How to Get All the records from a paginated API

I was recently working with an API that limited the max number of items it let you call at once. This was frustrating, because I needed everything. The solution, thankfully was recursion. Recursion is really fun when you get to use it. I needed to use this solution in both JavaScript and Python, so I had the opportunity to build it out in both. Since this is now a solved problem, I decided to share it for others.

Continue reading...

How to set up a local WordPress Vagrant development environment

Setting up a Vagrant box can be painstaking. Here is the process: Install a basic box. SSH into said box. Run a command. If it works, add the command to a provision file. Destroy your box. Run the box again and see if the command works via a provisioning file too. Whether it works, or doesn’t work, back to step 2 and try a new command or try the same command another way – depending of if it worked or not.

Continue reading...

It’s broke: how do I fix it? Debugging your code in WordPress

I had the great honor of speaking at WPNYC this past week. I promised to publish my slides. I also wrote a post about the Tools of the Trade slides.

Continue reading...