context is that it’s a folder on Windows that isn’t shown by default so you have to open the “run” menu then type it in. Like a cheatcode for a computer.

or at least that’s how it felt the first time I found it when I was like 12 trying to find my Minecraft screenshots

  • SubArcticTundra@lemmy.ml
    link
    fedilink
    arrow-up
    12
    ·
    edit-2
    9 hours ago

    I find the whole convention of denoting variables with %foo% weird. Like, delimit it at both ends? $foo is much more elegant and the character looks less weird

    • Ghoelian@piefed.social
      link
      fedilink
      English
      arrow-up
      11
      arrow-down
      1
      ·
      9 hours ago

      It makes sense if you want to concatenate strings, which is probably pretty much what happens when you type that into the path input.

      This way, you could create a string like “D:/%appdata%/local/minecraft” Whereas without the trailing %, you would need a space to separate it from the text, which would result in “D:/Users/Public/AppData /local/minecraft”.

      (i havent used windows in a while and those paths are from memory, they might be wrong)

    • MimicJar@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      9 hours ago

      Technically $foo also delimits at both ends, the second character is just a newline or whitespace character. However with %foo% it is unambiguous where the variable begins and ends.

      Also I said newline or whitespace, what about special characters?

      Look at $foo+$bar am I adding two variables together? Is the first variable $foo or $foo+?

      • CheesyFox@lemmy.sdf.org
        link
        fedilink
        arrow-up
        2
        ·
        3 hours ago

        i’m yet to see any language that has variables and ‘+’ operator, while accepting also ‘+’ in variable names at the same time. Same goes for basically every operator

        • Axolotl@feddit.it
          link
          fedilink
          arrow-up
          1
          ·
          2 hours ago

          Didn’t JS do it? Or was it Lua? I don’5 remember but i am sure i saw a language that did some shit like that…