• InFerNo@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    1 hour ago

    Great opportunity to test that backup restore procedure.

    They had a DRP, right?

  • toebert@piefed.social
    link
    fedilink
    English
    arrow-up
    111
    ·
    12 hours ago

    Single person project with 55k files in it, not pushed to any remote.

    I’m gonna go ahead and assume nothing of value got lost here.

      • TootSweet@lemmy.worldM
        link
        fedilink
        English
        arrow-up
        9
        ·
        8 hours ago

        Right? I consider myself an avid coder on my time off and the biggest thing I’ve ever made on my own has half that many lines of code. Let alone files.

        • NotMyOldRedditName@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          17 minutes ago

          Its’s not that hard to get to that many lines once you consider imports might be the first 50-100 of a file. One of my UI files the imports are the first 180 lines almost all of them from the android sdk. At least in Android dev.

          Then with something like declarative UI frameworks, you might end up with something like 8 lines to show 1 thing of stylized text so it’s all formatted cleanly with localized text, let alone trying to position it anywhere.

          Like this example clickable text is 12 lines to function ignoring the actual imports for the UI element itself.

          Text(
            text = "Tap me!",  <--- add 2 extra lines for localizing it + importing it
            color = someTextColor,
            fontSize = 15.sp,
            modifier = Modifier
                .padding(16.dp)
                .clickable { println("Text clicked!") } <--- add 2 extra lines for localizing it + importing it
          )
          

          I have ~1000 localized strings in my app, so that’s 3000 lines right there just writing and importing them if they were only each used once.

    • 𝕸𝖔𝖘𝖘@infosec.pub
      link
      fedilink
      arrow-up
      1
      ·
      7 hours ago

      Those are rookie numbers…

      …when you create a for loop that writes to a unique (timestamped) file upon script completion, but accidentally forget to add an exit condition. I got nearly 100k files before I was able to force close the script.

  • leadore@lemmy.world
    link
    fedilink
    arrow-up
    18
    ·
    10 hours ago

    Half the “news” articles these days are : “Here’s something someone posted on Reddit/Twitter/X” and here’s what some of the comments said.

    • CombatWombat@feddit.online
      link
      fedilink
      English
      arrow-up
      43
      arrow-down
      4
      ·
      15 hours ago

      Funny story about those backups

      And because the damage extended to the .git project’s ‘objects,’ ‘refs’ and ‘logs’ folders, there was no way to recover the files and undo the catastrophe. The files were just gone in a puff of smoke.

      • criss_cross@lemmy.world
        link
        fedilink
        arrow-up
        68
        ·
        15 hours ago

        No push to remote? If you’re working on something you care about you shouldn’t only have a local copy.

      • Jo Miran@lemmy.ml
        link
        fedilink
        arrow-up
        7
        ·
        14 hours ago

        My backup scheme:

        Computer --> 3 different cloud drives and github.

        Also

        Computer --> Wyoming home NAS --> USB external drive (weekly), swapped out every year and the old one stored in a waterproof gunsafe in the basement.

        Wyoming home NAS --> Florida office NAS – > USB external drive (weekly)

        Wyoming home NAS --> Austin office NAS --> Tape (monthly) --> IronMountain for 7 years.

        If you are a single dev, all it takes is 14 USB sticks. 12 monthly backups and two for daily backups that you rotate weekly.

          • Jason2357@lemmy.ca
            link
            fedilink
            arrow-up
            1
            ·
            8 hours ago

            Theoretically, they need tl be re-written every few years at most. Read everything off, format and re-write. Checking for corruption would be adviasable when you do it.

          • Jo Miran@lemmy.ml
            link
            fedilink
            arrow-up
            3
            ·
            edit-2
            12 hours ago

            If you mean USB sticks (thumb drives), I have a few 20 year old ones that I dust off from time to time when all I need is something small. Some have been in a drawer for years before I touched them again.

        • Wirlocke@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          1
          ·
          11 hours ago

          My backup scheme is either Github or Google Drive, whatever I have uploaded in Discord DMs, and a snowballing pile of unorganized hoarded files, which One Day™ I will sort.

          • Jo Miran@lemmy.ml
            link
            fedilink
            arrow-up
            3
            ·
            11 hours ago

            One thing you could do is buy the.largest external drive you can get on black friday sales. Then just copy everything in it. No sort. Just dump it all in there. Think of it like clearing the table unto a large garbage bag. Then unplug it, put it in the closet, and do it again whenever you remember.

            Even a mess like that is better than no backup at all.

        • redlemace@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          14 hours ago

          Also

          Good thing you added that. I’m so old-school/paranoid that I must have ownership of and physical access to the backup media to be able to count them as a backup.

          • Jo Miran@lemmy.ml
            link
            fedilink
            arrow-up
            2
            ·
            12 hours ago

            I’m about to kick off a full offline backup of my GOG library over the holidays because I need that physical backup.

      • redlemace@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        14 hours ago

        If you don’t include .git/ in your backup you simply have no backup.

        The .git folder is the heart of a Git repository. It is the hidden directory that Git uses to store all the information necessary for managing your project’s version control history. This folder is where Git keeps track of all the changes made to your files, allowing you to revert to previous versions, collaborate with others, and maintain a complete history of your project.

      • redlemace@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        14 hours ago

        That’s the new normal.

        Maybe for some but then i’m happy to be old-school. I can live with the fact not everyone can/wants to follow the 3-2-1 strategy but expect no sympathy if you have no backup’s at all

      • America@sh.itjust.works
        link
        fedilink
        arrow-up
        5
        ·
        14 hours ago

        That’s ridiculous. Why wouldn’t you just set Claude to back everything up before it deletes everything? Checkmate, atheists

    • mat dave@lemmy.ml
      link
      fedilink
      English
      arrow-up
      17
      ·
      12 hours ago

      Right? I don’t get this. Run your ai in sandbox, and don’t give it git access. Worst case you can stash a change.

      • redlemace@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        12 hours ago

        Run your ai in sandbox, and don’t give it git access.

        Enough break-in reports of AI these days … I would not rely on a sandbox. Air-gapped.

        • Axolotl@feddit.it
          link
          fedilink
          arrow-up
          3
          ·
          9 hours ago

          I mean, all those “AI ESCAPED CONTAMENTED!!!” are prolly only for hype…IIRC OpenAI said they gained internet access but how would they do it if the machine has no internet access?? Did they use a computer with a motherboard that has a wifi antenna and the password on a text file?

      • slacktoid@lemmy.ml
        link
        fedilink
        English
        arrow-up
        3
        ·
        11 hours ago

        Idk man, it always scares me even just testing any of these things without a basic bubblewrap.

  • Not_mikey@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    5
    ·
    9 hours ago

    in a now-deleted post on Reddit, a shocked developer said that Claude Code had just deleted 48,218 files that they had been working on in a live project tree.

    So the source is an anonymous reddit post that got deleted…

    Seems like trolling to me, like how would you have 48,000 files in a working tree without pushing to remote. I doubt even claudes that dumb and at some point during that seemingly huge vibe coding session it would’ve prompted him to setup a remote.

  • A Sharky Anthro@fedia.io
    link
    fedilink
    arrow-up
    18
    arrow-down
    1
    ·
    12 hours ago

    LOL I don’t feel bad for this developer, as they made a very poor choice to trust Claude Code. I will just laugh until the Claude Code trust is finally degraded and LLMs are finally discarded!

      • A Sharky Anthro@fedia.io
        link
        fedilink
        arrow-up
        7
        arrow-down
        1
        ·
        12 hours ago

        ROFL Some people are getting so high on LLMs, it’s not likely to happen anytime soon (I am noticing weird embraces of them despite their known and fundamental flaws). They want to embrace the madness of a machine that can’t actually think taking the wheel for them. The thinking machines aren’t in the room with us, but some people yearn for this. Which is something I cannot understand or empathize with in the slightest.

        • Feathercrown@lemmy.world
          link
          fedilink
          English
          arrow-up
          5
          ·
          11 hours ago

          Yeah I’m just saying you’re setting yourself up for disappointment if you think people will willingly give up something that’s bad for them but that feels good, en masse. We still have cigarettes, vapes, etc. As long as it doesn’t usually delete all their files or email the FBI, they won’t care.

          • A Sharky Anthro@fedia.io
            link
            fedilink
            arrow-up
            3
            ·
            9 hours ago

            Like, I dunno if it actually disappoints me anymore. I will just laugh at their suffering. That is all that can be done, if they want to burn and destroy their whole workflows…Let them choke on that exciting time! While all of my problems, will be caused by me and me alone.