• drathvedro@lemm.ee
    link
    fedilink
    arrow-up
    0
    ·
    20 days ago

    I don’t see what’s the point of the second one if the syntax highlight, even in the first example, already shows a changed role.

    A more realistic solution for the example code would be to setup a linter in the pipeline, and if one letter variables and/or template literals detected, depending on how nice you are, reject the commit, or send an email requesting the author to be beaten up with a crowbar to the techlead, and a copy, parsed by chatgpt for formality and politeness, to the HR.

    • brian@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      17 days ago

      that’s not a one letter template literal, that’s built in python syntax. it only has combinations of u r and f and no user defined option. f makes it templated