• wols@lemmy.zip
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 day ago

    The nastiest typos are autocompleted similarly named (and correctly typed) variables, functions, or types. Which is why it’s a good idea to avoid such name clashes in the first place. If this is impossible or not practical, at least put the part that differs at the start of the name.

      • wols@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        17 hours ago

        What do you mean? For what purpose would you sort variables or functions?

        • HubertManne@piefed.social
          link
          fedilink
          English
          arrow-up
          1
          ·
          10 hours ago

          Sorry. I was thinking hostnames or other endpoints and was thinking that way back with typos. dev78usc03 instead of dev78usc02 or such.