No Compromises

Stop doing math in your config files


Listen Later

Ever feel the urge to write out calculations in your code to make them "self-documenting"?

In the latest episode of the No Compromises podcast, we discuss why inline math in configuration values is a habit worth breaking.

Aaron argues that if a value never changes, there's no reason to calculate it every time. A well-placed comment can explain how you got the number without the unnecessary overhead.

We also cover how comments can clarify units like seconds versus milliseconds, why this thinking applies beyond config files, and how questioning small habits can improve your code overall.

  • (00:00) - How many seconds is five minutes?
  • (01:45) - The problem with inline config math
  • (03:45) - Using comments instead of runtime calculations
  • (05:30) - Why questioning habits improves code
  • (07:00) - Silly bit

  • Want a second set of eyes on your Laravel project?
    ...more
    View all episodesView all episodes
    Download on the App Store

    No CompromisesBy Joel Clermont and Aaron Saray

    • 4.9
    • 4.9
    • 4.9
    • 4.9
    • 4.9

    4.9

    8 ratings


    More shows like No Compromises

    View all
    The Laravel Podcast by Taylor Otwell, Matt Stauffer

    The Laravel Podcast

    57 Listeners

    Startups For the Rest of Us by Rob Walling

    Startups For the Rest of Us

    705 Listeners

    Darknet Diaries by Jack Rhysider

    Darknet Diaries

    8,108 Listeners

    Notes On Work - by Caleb Porzio by Caleb Porzio

    Notes On Work - by Caleb Porzio

    18 Listeners

    The Stack Overflow Podcast by The Stack Overflow Podcast

    The Stack Overflow Podcast

    64 Listeners

    The Bootstrapped Founder by Arvid Kahl

    The Bootstrapped Founder

    34 Listeners

    All-In with Chamath, Jason, Sacks & Friedberg by All-In Podcast, LLC

    All-In with Chamath, Jason, Sacks & Friedberg

    10,224 Listeners

    Hard Fork by The New York Times

    Hard Fork

    5,546 Listeners

    Mostly Technical by Ian Landsman and Aaron Francis

    Mostly Technical

    26 Listeners