Easily identify duplicate properties in your CSS files

By Josh Sherman
3 min read
development
css

As of late I’ve been very adamant about DRY CSS principles. Not so much the descriptive ID and class selectors that some folks wrap their other selectors in, but the focus on not repeating the properties and grouping like selectors. I’ve even taken it a step further and have been […]

Catching multiple PHP exceptions

By Josh Sherman
2 min read
development
php

I had previously discussed using try / catch / finally and a fine reader pointed out that I didn’t mention catching multiple exceptions. He’s right, I dropped the ball and decided to dedicate today’s post to catching multiple exceptions. To catch multiple exceptions you will need to be using code […]

Co-founder Application

By Josh Sherman
4 min read
career

This is partially for LOLz and partially for serious. I’m a guy in Tampa looking for people that want to kick ass with me. I know some very talented individuals in the area but nothing’s really gotten off the ground with them. Most of that is because they have day […]

How to write files to disk with PHP

By Josh Sherman
1 min read
development
php

Saving files to disk is a pretty simple task in PHP with file_put_contents(). Here’s how to write a string to a file: $string = 'I AM STRING!!'; file_put_contents('/path/to/destination', $string); It is generally good practice to only do with when you are dealing with smaller strings as you can run into […]