How to execute an HTTP POST using PHP cURL

By Josh Sherman
1 min read
development
php

I’ve been doing a lot of API integration recently and cURL ends up being exceptionally handy when you are POSTing to an endpoint. Fortunately using cURL in PHP is really easy: // Sets our destination URL $endpoint_url = 'https://somesite.com/path/to/endpoint'; // Creates our data array that we want to post to […]

10 office pranks you should try at your own office

By Josh Sherman
6 min read
career
company culture

Before I start talking about office pranks, I want to give a shout-out to Noah Kagan for his post We Analyzed Nearly 1 Million Headlines. Here’s What We Learned post. The truth is, this post is just a list of some of the notable office pranks I’ve either orchestrated, witnessed […]

Why work so hard to stay at the bottom?

By Josh Sherman
2 min read
career
personal finance

Not a day goes by that I see a headline about the need for a minimum wage increase. I read about staged sit-ins, protests and boycotts. I see people investing a ton of time and energy to remain the lowest paid workers in the country. I generally keep my political […]

Looping through a date range with PHP

By Josh Sherman
1 min read
development
php

Looping through a date range isn’t as simple as looping through an array with foreach but it doesn’t take much additional code to get the job done. To loop through a date range you will need to use a loop (I prefer a while loop) and increment the date by […]

Tabs vs. Spaces: I’m switching sides

By Josh Sherman
3 min read
development
programming style

It’s not very often that I make a drastic change to my coding style but after using tabs for my entire life, I am making the switch to spaces. My go to defense for using tabs was that they are more flexible because they allow developers to choose their own […]