How to pipeline with phpredis

By Josh Sherman
3 min read
development
php
redis

Have you ever run into a scenario where you have to loop through a set of data and perform database queries for each iteration? Obviously we shouldn’t run them one by one, so we end up using a TRANSACTION or even just building out one large query in the case […]

How to process PUT requests with PHP

By Josh Sherman
1 min read
development
php

You are probably already familiar with $_GET, $_POST and $_REQUEST but what about $_PUT? Trick question, $_PUT (as well as as $_HEAD and $_DELETE) doesn’t exist in PHP at this time. Never fear! We can create a $_PUT array with the following code: if ($_SERVER['REQUEST_METHOD'] == 'PUT') { parse_str(file_get_contents("php://input"), $_PUT); […]

Breaking away from the Apple Ecosystem

By Josh Sherman
8 min read
apple
os x
ios

I’ve recently come to a crossroad with Apple and it’s ecosystem. I’ve had an iPhone 4S for the last 2 years and I was itching for a new device. Giving the current iPhone lifecycle, it makes more sense to hold out for the next iteration of the iPhone than jump […]

URL Routing with PHP

By Josh Sherman
2 min read
development
php

I’ve been taking a lot of programming tests / challenges recently as I was in the market for a new [and hopefully exciting] opportunity to spend my time on. Because of this, I am full of new blog post ideas based on the questions / challenges asked. This week I’m […]

Having a child ruins your life

By Josh Sherman
2 min read
parenting
family
rant

I started a new contract gig this week and one of my new co-workers was very candid in letting me know that having children ruins your life and implying that I in fact had ruined my life in doing so. To be quite honest, I was very taken back by […]