Code Reflections

Reflecting upon the code you've written is an important step for any developer. It's not enough to simply extract, refactor, and call it a day. No. Once complete, you must evaluate what you've done. Is the code now better? Is it more clear? Don't underestimate how difficult a question this can be. Our brains manage to trick us at every turn.

Start Series

Share this series on:

  • 01

    Episode 1 Run Time 17:23

    Is It Better?

    "Is it better?" is a question I ask myself on a daily basis. It's not such an easy question to answer, when it comes to code. No, it turns out that our brains have a unique way of tricking us at every turn. Still, despite the difficulty, it's vital that you force this question into your internal dialogue. "Is the code now better?" Sure, I extracted files. Sure, it better follows the single responsibility principle. Sure, it's more open to extension. But is it better?

  • 02

    Episode 2 Run Time 12:59

    Component Refactor Reflections

    Over the last few weeks, at the time of this writing, I've been working on a component refactor for the Laravel Mix codebase. Now that I've mostly completed this refactor, let's review the before and after, while once again asking ourselves the important question, "Is this better?"

*Series still in development. Check back often for updates.