2022
-
Is PHP a functional programming language?
Jan 17
So you think PHP is a functional programming language? Let’s look at reasons why it is and why it isn’t.
-
Snazzier parameters in PHP 8
Jan 12
PHP continues to develop and evolve. Today let’s take a closer look at how properties have changed in recent releases.
-
Weighted random choice in PHP
Jan 11
PHP’s native random_int() function can be used to easily create a weighted random choice between multiple, otherwise equal options.
-
Verifying randomness in PHP [Part 2]
Jan 10
How random is random_bytes() in PHP? Are you sure?
-
Verifying randomness in PHP [Part 1]
Jan 9
How random is PHP’s random_int() function really?
2018
-
I Won’t be at ZendCon
Oct 8
Next week kicks off the latest version of ZendCon in Las Vegas. Though I had, for a time, expected to be there … I won’t be. You should know why.
-
Deterministic Random Numbers in PHP
Jan 5
Testing code that leverages random numbers can be tricky. It’s useful to have a way to subvert the random number generator during tests to yield a deterministic state.
-
Mocking Time in Unit Tests
Jan 4
Some operations in PHP introduce uncertainty around your code’s behavior. In those situations, it’s helpful to insert helper functions that make your code more reliable and easier to test.
-
Strict Typing
Jan 2
Do you use type information in your PHP code? What drove you to make the change (or what is preventing you from taking the jump)?
2017
-
World Domination through WordPress Security
Jul 31
I’m tired of lamenting the state of WordPress security and doing nothing to address it. I’m building solutions to turn the conversation around.
-
Managing Gearman Securely
Jul 17
The impact of an improperly-secured Gearman server grows with the importance of the application using it.