My Lemmy Instance
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Thadah D. Denyse@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 3 months ago

Version Control

lemmy.blahaj.zone

message-square
49
link
fedilink
363

Version Control

lemmy.blahaj.zone

Thadah D. Denyse@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 3 months ago
message-square
49
link
fedilink
alert-triangle
You must log in or register to comment.
  • Boomkop3@reddthat.com
    link
    fedilink
    arrow-up
    41
    ·
    3 months ago

    That last one is more common than I’d like, a lot more

    • ByteJunk@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      3 months ago

      $ cp -r src/ src.old

      No sir never seen it in me life, honest to god sir

    • pewpew@feddit.it
      link
      fedilink
      arrow-up
      8
      ·
      3 months ago

      Oh I used to do it as a kid

  • Tamlyn@lemmy.zip
    link
    fedilink
    arrow-up
    17
    ·
    3 months ago

    At university there were some students that want to manage projekts in could storange. That was just stupid but i didn’t know it better at that time.

    • lesnout27@feddit.org
      link
      fedilink
      arrow-up
      47
      ·
      3 months ago

      • Tamlyn@lemmy.zip
        link
        fedilink
        arrow-up
        17
        ·
        edit-2
        3 months ago

        I’m sick…that’s my excuse…

        • lesnout27@feddit.org
          link
          fedilink
          arrow-up
          16
          ·
          3 months ago

          Didn’t want to be mean with the meme

          • Tamlyn@lemmy.zip
            link
            fedilink
            arrow-up
            14
            ·
            3 months ago

            Don’t worry, it’s fun

      • Valmond@lemmy.world
        link
        fedilink
        arrow-up
        10
        ·
        3 months ago

        It’s quantum stuff, I could do that, or I could not do that…

  • bleistift2@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    14
    arrow-down
    1
    ·
    3 months ago

    The last is just a normal git workflow, isn’t it?

    • Jyek@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      3 months ago

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

  • mEEGal@lemmy.world
    link
    fedilink
    arrow-up
    13
    arrow-down
    2
    ·
    3 months ago

    the last one is just immutability, praised in modern JS / TS, albeit at the repo level

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      13
      ·
      3 months ago

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

      • expr@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        3 months ago

        Kind of, though they honestly just do pretend immutability. Object references are still copied everywhere.

        • 0101100101@programming.dev
          link
          fedilink
          English
          arrow-up
          4
          ·
          3 months ago

          All of javascript is kinda just pretend.

        • frezik@midwest.social
          link
          fedilink
          arrow-up
          2
          ·
          3 months ago

          I find you need the whole ecosystem to support immutability to make it work. Every library needs to be based around it. Elixir is about the only modern option that does.

  • Slotos@feddit.nl
    link
    fedilink
    arrow-up
    10
    ·
    3 months ago

    Why did you mention git twice?

    • Thadah D. Denyse@lemmy.blahaj.zoneOP
      link
      fedilink
      arrow-up
      5
      ·
      3 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
    arrow-up
    9
    arrow-down
    2
    ·
    edit-2
    3 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.

  • Alphare@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    3 months ago

    As one of the maintainers of Mercurial, I take great offense in this meme. ;)

    • nogooduser@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      3 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.

      • bleistift2@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        5
        ·
        3 months ago

        What could possibly be preferrable to git switch -c <branchname>?

        • nogooduser@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          3 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).

          • bleistift2@sopuli.xyz
            link
            fedilink
            English
            arrow-up
            3
            ·
            3 months ago

            I admit that I have been bitten by the fact that commits don’t have a “true home branch”.

      • Alphare@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        3 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!

  • Matriks404@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    3 months ago

    Git is so ready to understand, that I don’t understand how people work without it.

    • Echo Dot@feddit.uk
      link
      fedilink
      arrow-up
      5
      ·
      3 months ago

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

  • yogsototh@programming.dev
    link
    fedilink
    arrow-up
    5
    ·
    3 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
    
    • ZILtoid1991@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      3 months ago

      cp?💀

      • optional@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        3 months ago

        cp is short for create packup

  • nogooduser@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    3 months ago

    And worse than all of those options is Visual Sourcesafe.

    • Valmond@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      3 months ago

      Fox Pro!

      Shrug

  • PoolloverNathan@programming.dev
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    3 months ago

    btrfs sub snap -r

    • mcmodknower@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      3 months ago

      Isn’t that just git with more steps and harder to share?

      • PoolloverNathan@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        3 months ago

        It’s equivalent to cp -r, but:

        • the copy is read-only
        • reuses unchanged files
        • easier to share (btrfs sub send)
        • mcmodknower@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          3 months ago

          Sounds just like git (unless you do some special operations to change the copies)

    • magikmw@lemm.ee
      link
      fedilink
      arrow-up
      1
      ·
      3 months ago

      With properly configured subvolumes, I’ll allow it.

  • parpol@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    3 months ago

    Couldn’t add perforce to the list because someone else was checking it out, I see.

  • 0101100101@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 months ago

    I do miss the tags of SVN that would replace certain strings on each commit such as the date, a version number, etc.

  • 0101100101@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    3 months ago

    CVS is gonna make a comeback! I tell ya!

  • GenderNeutralBro@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 months ago

    No love for cvs?

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2.17K users / day
  • 4.62K users / week
  • 8.31K users / month
  • 17.3K users / 6 months
  • 1 local subscriber
  • 23.5K subscribers
  • 1.44K Posts
  • 51.2K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org