• kevincox@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    6 months ago

    Even if the code isn’t reused adding names to sub-expressions can be very valuable. Often times I introduce new functions or variables even if they are only used once so that I can give them a descriptive name which helps the reader more quickly understand what is happening.