2018

  • Private Variables in JavaScript

    ·

    ES6 gave us classes and object inheritance in JavaScript. However, it’s still missing any concept of “privacy” in OO terms. Here’s a hacky workaround to, maybe, make things work.

    Read More

  • Mocking Time in Unit Tests

    ·

    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.

    Read More

  • Strict Typing

    ·

    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)?

    Read More

  • Reflections and Foreshadowing – 2018 Edition

    ·

    New Year's is an opportunity to stop, take stock, and reflect on everything we've done in the past year. While it's usually a good idea to do this more often than once a year, the seasonal holiday presents an opportune moment for the too-busy-to-otherwise-schedule-things. I fall into that category. Today begins a new annual tradition of recounting

    Read More