For Episode 2 of Wes Bos’s 30 Day Vanilla JavaScript Challenge, Wes shows us how to make a lifelike clock using CSS3 transformations and JavaScript’s setInterval function. The Challenge Like the first video, this mini-project kindles the imagination and is a great example of the type of thing I might have spent hours trying to […]
Using JavaScript And HTML To Play Audio In The Browser
I recently signed up for the 30 Day JavaScript Coding Challenge by Wes Bos, and I was blown away by the first installment involving audio files. I’m not sure if I will dive as much in depth on each installment as I did for this one, but it immediately inspired me to play around and […]
Why PHP Versions Are So Important
Recently, I’ve been putting a lot of time and effort into leveling up my PHP skills. When my last round of leveling up began, I knew a good bit of basic-to-advanced PHP. The thing was, I had come to the realization that I simply felt comfortable with my level of proficiency. Once I realized this, […]
Autoloading Classes In PHP
Using the autoloading feature of PHP gives us cleaner code and less worry, not to mention it encourages better organization of our files.
PHP 7: Left-to-right variable evaluation
This is a story about how my own code broke a site in development after migrating from PHP 5 to PHP 7, and what I did to fix it. On December 3 2015, PHP 7 was released. Along with significant speed increases, there were some breaking changes that make it not 100% backward compatible with […]
Using Hooks (and creating your own)
Hooks (actions and filters) are a developer’s best friend in WordPress. WordPress core offers us a very wide range of opportunities to execute our own functions at key times, and also to modify key pieces of data being utilized to render our web pages. In a similar manner, we can create our own actions and […]
Pick A Post Type, Any Post Type
In WordPress, custom post types are what let us break our content free from the world of Pages and Posts (and do lots of other cool stuff). In a nutshell, post types empower us to organize/structure our site data and front end views in a way that can be as unique as we like. I […]
Extending the WP_Post class
OK, so it’s technically impossible to extend WP_Post. Big deal. Still, I’m thinking a lot about how I might go about extending WP_Post for my own purposes; and I’m experimenting with classes that “kind of” extend WP_Post, because the class is not going to be final forever. In a Trac ticket from 2013, we have […]
De Morgan’s Laws
Some time in the 1800’s, Augustus De Morgan published a piece of logic that others had felt intuitively for centuries, and which still comes into play today on a fundamental level in areas like math and computer programming. Consider the statement “It is hot and humid outside.” What would it take for this sentence to […]
WP Members Plugin: How to filter the role list
The Members WordPress plugin by Justin Tadlock is an incredible tool for revealing the underbelly of user roles and permissions on your WordPress site. Until I discovered this plugin, my concept of user roles was completely tied up in my code. But with Members, we get an intuitive and comprehensive UI for managing the various […]