• xmunk
    link
    fedilink
    arrow-up
    18
    ·
    7 months ago

    I vomit whenever I have to read one letter alias SQL. And then… I dealias it.

    • nogooduser@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      7 months ago

      I don’t understand why people think that it’s acceptable.

      As developers, we’ve had it drummed into us from day one that variable names are important and shouldn’t be one or two letters.

      Yet developers deliberately alias an easy to read table name such as “customer” into “c” because that’s the first letter of the table. I’m sure that it’s more work to do that with auto completion meaning that you don’t even need to type out “customer”.

      • xmunk
        link
        fedilink
        arrow-up
        5
        ·
        7 months ago

        Especially when you also have company and county tables. It forces people to look up what the c is aliased to before beginning to comprehend what you’re doing.