• Eager Eagle
    link
    fedilink
    English
    4
    edit-2
    9 months ago

    The liberty to not name things that are obvious.

    and that’s yet another way to end up with hard to read code.

    Variables hold values that have meaning. Learn how to name things and you’ll write good code.

    • @exussum@lemmy.world
      link
      fedilink
      09 months ago

      This makes me want to write a function for you to add to numbers where the variables are leftumber and rightnumber, instead of x and y.

      • Eager Eagle
        link
        fedilink
        English
        19 months ago

        if “left” and “right” were relevant for addition, they would indeed be better names