PHP without fancy braces

By Josh Sherman
3 min read
development
php

PHP is a C-style language and thus uses fancy braces to wrap or hug control structures. PHP is also a language that is extremely flexible so you can also get by without using fancy braces. You will never get away from them entirely as functions and classes / class methods […]

Tools of the Trade - 2014

By Josh Sherman
10 min read
reviews

It was February 18th, 2011, a week before my 30th birthday that my answers to AppSumo’s Tools of the Trade questionnaire were posted. A metric shit ton has changed since then - new jobs, new hardware, new software. At the same time, some things never change. This post is the […]

Debugging SimpleXML Objects with PHP

By Josh Sherman
1 min read
development
php

SimpleXML is pretty much the de facto standard for dealing with XML in PHP. The biggest problem with SimpleXML is that it is a pseudo-object that you can’t print_r() or var_dump() to see what’s going on. I recently ran into a situation where it would have been super nice to […]

Self-employed cabin fever

By Josh Sherman
7 min read
career
retrospection

I was somewhat skeptical that it would happen to me, be after over a year of working for myself and by myself, it finally started to take it’s toll. I had an office so that I would have a place to go during the day to feel like I was […]

Parsing SOAP responses with PHP's SimpleXML

By Josh Sherman
2 min read
development
php

We recently discussed parsing XML with SimpleXML and since that writing I ran into a situation where I needed to parse a SOAP response. As it turns out, SOAP responses are a totally different beast when it comes to parsing them with SimpleXML. SOAP responses contain namespaces on some if […]