• @0x01@lemmy.ml
    link
    fedilink
    -12 months ago

    I knew a dude who would burn a cd every week and store it in his house as his version control, his software is still used by hundreds of businesses to this day

    • @frezik@midwest.social
      link
      fedilink
      162 months ago

      I “love” how JavaScript has slowly rediscovered every piece of functional programming wisdom that was developed before 1980.

  • @yogsototh@programming.dev
    link
    fedilink
    52 months ago
    cp $fic $fic.$(date -Iseconds)
    git commit -a -m "save at $(date -Iseconds)"
    # edit $fic
    git commit -a -m "save at $(date -Iseconds)"
    git push -f
    
    • @Jyek@sh.itjust.works
      link
      fedilink
      22 months ago

      I’m pretty sure it means, they copy and paste the project file and iterate the version number manually.

    • @nogooduser@lemmy.world
      link
      fedilink
      English
      52 months ago

      It’s definitely up with Git in my opinion. I much prefer the branching in Mercurial.

      It’s certainly very offensive to lump it in the same band as SVN and TFVC.

        • @nogooduser@lemmy.world
          link
          fedilink
          English
          22 months ago

          It’s not the mechanism of branching that I prefer.

          It’s the fact that Mercurial tags the commit with the name of the branch that it was committed to which makes it much easier to determine whether a commit is included in your current branch or not.

          Also, Mercurial has a powerful revision search feature built in which I love (https://www.mercurial-scm.org/doc/hg.1.html#revisions).

          • @balsoft@lemmy.ml
            link
            fedilink
            22 months ago

            It’s the fact that Mercurial tags the commit with the name of the branch that it was committed to which makes it much easier to determine whether a commit is included in your current branch or not.

            Isn’t this trivial in Git too? git branch --contains COMMIT ?

            • @Alphare@lemmy.world
              link
              fedilink
              12 months ago

              Sure, if you want to do it once, but Git still has to compute that information (save for a new-ish cache that is just that, a cache). But that is not the point really, the point is that Mercurial’s graph Is the same (topologically) everywhere, which is not the case in Git because branches (and thus remotes) have different names. So saying that a branch contains a commit is not the same as a commit being on a branch. There are a bunch of great properties that emerge from this but it’s too long for this comment and I should actually properly write this down at some point this year.

      • @Alphare@lemmy.world
        link
        fedilink
        42 months ago

        Given that Git and Mercurial were both created around April 2005 to serve the same purpose by very similar people for the same reason… I’d say it’s fair!

  • Jade
    link
    fedilink
    English
    12 months ago

    The last one can easily describe Django. Feels like depending on the code base/your mistakes/people you work with can easily turn a normal project into a project where majority of the files is just migration files.

    • @wewbull@feddit.uk
      link
      fedilink
      English
      22 months ago

      Me too. It also handled some situations, like divergent lines in the same branch or obsolete changes, much better.

      • @nogooduser@lemmy.world
        link
        fedilink
        English
        12 months ago

        The only reason that we stopped using Mercurial is that Microsoft used Git in Azure DevOps. I still wish that they’d supported Mercurial instead of or as well as Git.

    • @nogooduser@lemmy.world
      link
      fedilink
      English
      12 months ago

      I really liked Mercurial too. It was much easier to follow branches to find out if a branch included a commit.

    • Echo Dot
      link
      fedilink
      52 months ago

      It’s one of those things that’s hard to really understand why it’s so useful, until you actually use it.

    • Thadah D. DenyseOP
      link
      fedilink
      52 months ago

      While TFS did support Git, I had to deal with the much worse TFVC for a long while, up until Azure DevOps came along.

  • @Ugurcan@lemmy.world
    link
    fedilink
    7
    edit-2
    2 months ago

    It’s actually a pretty good idea to have a full system snapshot time to time, where the project can compile successfully, for future Virtual Machine use. It’s usually easier to spin a VM than setting up the whole dev environment from scratch.