Category: Software development
-
Using PHP closures with the observer pattern
PHP 5.3 introduced the concept of anonymous functions, often called closures. These have been present in languages like JavaScript for a long time, and have been incorporated into PHP as part of its ongoing transformation into a first-class web programming language. Simply put, they allow you to assign the workings of a function to a […]
-
Who to host with (domain names, web space, SSL, DNS)
I’m sometimes asked who I recommend buying web infrastructure from. Here’s my list based on my personal experience: Domains | SSL | DNS | Shared hosting | Dedicated hosting | Transactional email | Virtual servers Domain names: Namecheap Almost all of my domains are hosted with Namecheap. They’re simple, have a super-fast web interface, a […]
-
More secure password hashing in PHP 5.5
The most recent set of PHP releases suggest that the core development team are serious about keeping PHP at the forefront of web development technology, and addressing some of its legacy criticisms. I’ve previously talked about the JsonSerializable interface; now, PHP 5.5 is introducing an easier way to make password hashing more secure. (What is […]