Life of Pi - Working with Pi in PHP

By Josh Sherman
1 min read
development
php

The irrational mathematical constant of Pi can be obtained a few different ways in PHP. There is a function to give you the value as well as a bunch of constants that represent Pi as well as fractions of Pi and it’s square root. Heck, you could even do it […]

How to replace a string with a string in PHP

By Josh Sherman
2 min read
development
php

String replacements in PHP are very simple and as per usual, can be done in a variety of different ways. First let’s take a look at the most simple form of a string replacement: str_replace('blue', 'red', 'My favorite color is blue'); The first argument is the string you want to […]

Developer titles are bullshit, Part 2 - Universal titles

By Josh Sherman
6 min read
development
career

Last week in part one, I discussed the lifecycle of a developer that just started a new job. The gist was that when someone starts a new role at a company, they generally have to learn the lay of the land. Regardless of their technical prowess there is always a […]

How to round numbers with PHP

By Josh Sherman
1 min read
development
php

Rounding numbers can be done a number of ways. You can round a float up or down to the nearest integer or you could round to a specific precision. Even then you can choose whether or not to round halves up or down and even round towards even and odd […]

Developer titles are bullshit, Part 1 - The lifecycle of a developer

By Josh Sherman
5 min read
development
career

This is a pretty universal truth, most developer titles are complete and utter nonsense. Shit like “Junior Developer” and “Senior Engineer Level 2”, sounds like we’re playing Dungeons and Dragons. Sad part of this is, most people will say they don’t care about titles but then they are quick to […]