Nixie and Larry ain’t buying my bullshit. Not enough whitespace.

  • luciferofastora@feddit.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    8 days ago

    Not enough whitespace.

    I got to help a colleague debug a powershell script. It contained six SQL queries.

    They were each written in a single line and featured double-nested queries and multi-clause conditionals. He didn’t use any aliases either.

    I’m sure there’s a way to auto-format SQL in some tool, but in the moment, I couldn’t remember.

    Listen to your cats. Use more whitespace.

    Also, if they like it, please pet them for me. Good code reviewers deserve pets.

    • dbtng@eviltoast.orgOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      7 days ago

      Hehe. You are preachin to the choir.
      In truth, most of my code, particularly my published pieces, looks like a textbook example of self-documentation.
      This is because I’m inexpert enough at coding to need the pointers next time I look at my own code.
      So if it looks like a kindergarten teacher authored it, I’ll probly be able to understand it later.

      And thanks! My kitties always want more scratches. :]