• unexposedhazard
    link
    fedilink
    arrow-up
    33
    ·
    4 days ago

    This is exactly how the german train provider names its ticket pdfs. Why not just “date_origin_destination.pdf”

  • acockworkorange@mander.xyz
    link
    fedilink
    arrow-up
    12
    ·
    4 days ago

    Can’t relate at all. I’m a taxonomy nerd, everything has its own defined subdirectory, the files follow a defined naming convention. Send help.

  • tequinhu@lemmy.world
    link
    fedilink
    arrow-up
    14
    arrow-down
    1
    ·
    edit-2
    4 days ago

    grep -irl "some text that the file would have"

    (Obiously only work for text files, but that’s enough to cover 90% of cases for me)

  • pastermil@sh.itjust.works
    link
    fedilink
    arrow-up
    3
    ·
    4 days ago

    I smash my open palm to my keyboard everytime I’m naming something.

    In another news, I am currently looking for a job as my employer fired me for ‘improper variable naming’.

    • kabi@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      4 days ago

      spends ten minutes figuring out which one’s the latest

      has to save it again

      “new (actual)(for real)”

    • toynbee@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      4 days ago

      I used to have this problem, but now I go with one of two solutions:

      • filename-$(date +%F) (or similar)
        • example: notes-2024-12-14.txt
        • can be expanded to include further time details if more than one iteration per day is released
      • filename-Mk#
        • example: product-design-MkII (Or Mk2 if you prefer)
        • pretty much infinitely expandable and you always know which is latest
        • admittedly I’m pretty sure most systems wouldn’t sort Roman numerals correctly, but I rarely have enough iterations of anything to worry about it

      edit: Also, with either, you could pretty easily write a script that would symlink something like filename-latest to the newest one, but depending on how you’re generating the files in question, that might be less viable.

      • e8d79
        link
        fedilink
        arrow-up
        1
        ·
        4 days ago

        You know how to script and what a symlink is; why aren’t you using git or any other kind of version control instead?

        • toynbee@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          4 days ago

          Because I formed these habits in the nineties and 00’s, well before git was a thing; and because nothing I write matters, other than possibly to my employers, in which case I do use (primarily) git … Or other version control. (Believe it or not, I’ve used subversion.)

          Most of the documents to which I apply this are things like my resume and DNS server. No one but me will ever care.

          Also, I like you both for asking this question and for how you put it.