• Adjustments

    At the end of every year, I take some time to reflect on the past year and think about where I want to focus for the next year. This year was no different. I’ve decided I need to adjust a few things, including my publishing schedule for this blog.

    Read more →
  • Tautological Tests

    When we’re writing automated tests for our code, it’s easy to accidentally write a test that says exactly the same thing as the code does. This kind of test is a “tautological test”, and it’s important to watch out for them.

    Read more →
  • Generating Dependency Diagrams

    Sometimes it’s nice to be able to visualize the dependency structure of an application or a set of packages. I recently had a need to do this in two different contexts and found a way to automate the generation of a diagram using a few handy tools.

    Read more →
  • The True Lies Pattern

    When developing software, we’ll sometimes need to replace some code with something that can do the same job in a different way. There are several ways to do this, but one of the safest is The True Lies Pattern.

    Read more →
  • Globalizing Redux Selectors

    In a recent post, Modular Reducers and Selectors, we ended up with each module exporting localized versions of its selectors by name, and an object containing the globalized versions of the selectors as the default export. In that post, we wrote the globalized selector by hand. However, it can be helpful to write a generic utility function that globalizes the selectors for us.

    Read more →
  • Taking Advantage of combineReducers

    If you’ve been using Redux for long, you’ve probably used its combineReducers function to create your application’s root reducer. But you may not have thought of using it in your sub-reducers as well. Let’s see how we can take advantage of combineReducers to simplify our code.

    Read more →
  • Marriage and Long-Lived Software

    I recently took a trip with my wife to celebrate our 25th anniversary. This trip gave us time to reflect on our marriage and our relationship. We talked about what’s working and what we need to improve. From this background context, I started applying these ideas and discussions to the software I build.

    Read more →