Technology

  • Classy Plugins

    ·

    I was asked a few weeks ago why I structured my WordPress plugins the way I do. Anyone who has spent any time looking at my code knows that I like to keep my main functions in a class and wire up action hooks and filters in the root of the plugin.  But few people…

    Read More

  • Start with a Unit Test

    ·

    Not everyone is a fan of test-driven development. Writing unit tests for your code can be a laborious task, and it has no immediate benefit to your customers.  So why waste any time writing the tests, right? This past week, a colleague of mine summed up the problem pretty well: I’ve finished writing the code for that…

    Read More

  • Dependency Injection and Abstract Interfaces in C#

    ·

    If you’ve ever written code, you’ve probably written a unit test.  If you haven’t written unit tests, you should start. Now. Really. Unit tests let you quickly verify that your code is operating in a predictable fashion.  When you make changes down the road, you re-run the same unit tests to make sure nothing broke.…

    Read More

  • URLs and UX

    ·

    I despise broken links. Most of the sites I read on a daily basis are littered with links to this site or that site.  Many of them are written quickly to get news stories out promptly and, as a result, are published with typos. It’s one thing when I catch a typo in body content…

    Read More

  • Free and Open

    ·

    I write software for a living.  Not something I ever expected to do for a career, but it happened and I’m fairly good at it. I also write software as a hobby.  Different languages and platforms – working with a diverse set of tools makes me a better developer.  I also give away most of the…

    Read More

  • Data versus Meaning

    ·

    At a conference last week, I was subjected to all kinds of talks on data, data integrity, data storage, data in the cloud, and data-centered design patterns.  One speaker summed things up perfectly: If you make the center of your world data, then everything else becomes easy. This got me thinking.  From a computer-centric viewpoint it all…

    Read More

  • Post Supplements – A Concept

    ·

    A few months ago, WordPress UX Lead Jane Wells posted a request to WordPress’ Trac ticketing system.  The idea was to find a better way to insert “stuff” below WordPress posts: Inserting the sharing and like rows at the bottom of the post text before the byline/classification metadata seems wrong. It should go below that,…

    Read More

  • WordPress Portland

    ·

    As promised, here is the code for my demo of adding feature pointers to WordPress in version 3.3 And again, please do not use these in distributed plugins/themes.  They’re only slated for Core at the moment, but if you feel that they’ll help in your custom theme/plugin development with clients, feel free! [cc lang=”php” width=”580″]…

    Read More

  • Security Vulnerabilities

    ·

    Out of the blue today, a user of one of my plugins contacted me to ask why I was so slow in patching a security vulnerability in my system. The question came as a complete surprise. Apparently, back in January, someone discovered a potential security hole in one of my plugins, WP Publication Archive.  The…

    Read More