January 9, 1998: Google’s filed for its PageRank patent on that day. Continue reading When Does the PageRank Patent Expire? January 9, 2018
These are sites with decent looking templates. Continue reading Websites With Free Templates
Several years ago, I wrote a series of article about implementing a small network that has some “enterprise” network features. For the most part, these aren’t necessary, but I believe, as we deal with more mobile devices and IOT devices, we will want to isolate our networks into segments, and implement firewalls between the segments, even for small LANs. Fortunately, our phones are somewhat safe — Windows hacking over the LAN in the late 1990s taught everyone a lesson. That said, there are a lot of camera, sensors, and other devices that are on LANs, running with default passwords, and subject to sniffing.
In yesterday’s post, I talked about fixing up old PHP code to be safer.
There’s another anti-pattern common in old PHP code, and that’s mixing the display logic with the output logic. While some of this is inevitable, nowadays, the rule is to use a templating system like Twig to separate out even small bits of HTML code from the logic.
WordPress does this on the front end via Underscore templates, but configured to use Handlebars-like syntax.
This is a PHP class that does the same thing with PHP. I wrote it so I could use the same, or similar, templates on both the client and server side.
Continue reading WP’s Backbone-like Templating Language