The Complexity of Permalinks and Slugs with User Generated Content

By Josh Sherman
7 min read
scenekids
development

I’m not referring to the complexity of the permalink or slug itself, but the complexity to your code that can be introduced with certain formats, specifcally anything that the user can modify. When I was originally building SceneKids.com I wanted to ensure that the user’s username was always in the […]

Sorting an associative array by a specific key with PHP

By Josh Sherman
5 min read
development
php

One of PHP’s most powerful data types is the array. It can hold numbers, it can hold letters, it can be sorted, sliced and chunked. Speaking of sorting, when sorting an array the straight forward sorting functions are only for sorting by the keys or by the values. What about […]

How to convert a CSV file into an array with PHP

By Josh Sherman
2 min read
development
php

Loading CSV files into an array is something that comes up more times than I’d like to admit. Scrubbing mailing lists, loading flat files to a database and various other use cases are out there and fortunately, PHP makes it easy to to do. There are a few ways to […]

Company culture is what you make of it

By Josh Sherman
3 min read
company culture

Been hearing from some of my friends that have recently taken new jobs about how shitty the company culture is at the company they work at. We’ve all been there, working in a development shop with the single goal to ship more units to make money. The developers sit back […]

How to Determine if it is Friday the 13th with PHP

By Josh Sherman
1 min read
development
php

It seemed fitting that my post on Friday the 13th would be about Friday the 13th. There are 52 Fridays in 2013, but only 2 of them are the 13th day of the month (September and December). To determine if a Friday is a Friday the 13th, we will need […]