Programming with Palermo

Custom Primitives- Refactoring- Speed- Episode 23


Listen Later

Custom primitives, an example of how refactoring accelerates team speed, part of the Clear Measure Way

In this episode, Jeffrey discusses custom primitives, a specific refactoring. Refactoring is one of the engineering practices that increases team speed. Moving fast is part of the Clear Measure Way.

  • With a refactoring mindset, we modify existing code so that a new change appears as if we had designed it that way since the genesis of the software. We don't allow something to appear "bolted on"
    • An Onion Architecture mindset encourages us to push dependencies to the edges and pull core concepts to the center
    • Common operations on primitives clutter the UI, one of the edge interfaces in any application
    • Pulling common operations into the core model of an application limits repetition and reduces concept count
    • Options for refactoring custom usages of primitives
    • C# implicit operators allow the rest of the application to believe our decimal is a normal C# decimal
    • A custom primitive allows the execution of custom logic everywhere while keeping the logic in one place.

Sample repository

Thanks to Clear Measure for sponsoring this sample and episode of Programming with Palermo.

This program is syndicated on many channels. To send a question or comment to the show, email [email protected]. We’d love to hear from you.

To use the private and confidential Chaplain service, use the following Gentleman: 512-619-6950 Lady: 512-923-8178

...more
View all episodesView all episodes
Download on the App Store

Programming with PalermoBy Jeffrey Palermo