931
In case of fire (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] Immersive_Matthew@sh.itjust.works -2 points 1 year ago

Another reason I just manually backup my project and avoid Git despite all my other developer friends shaming me. One command and I am out of there.

[-] meliaesc@lemmy.world 5 points 1 year ago

That doesn't hold up so well when you work with other people on a project.

Yes and no depending on what you are working on.

[-] meliaesc@lemmy.world 1 points 1 year ago

Merging conflicts will be an issue no matter what you're working on. Maintaining different sets of code bases based on the version/release will be an issue even when working alone.

Can you describe a situation that underscores this issue as I am not seeing it, but maybe I experience it and do not even realize.

[-] meliaesc@lemmy.world 1 points 1 year ago* (last edited 1 year ago)

Situation: You're building some software to display emojis based on user input.

Current code: when user types "happy", output ๐Ÿ™‚

  • Your new requirement: when user types "happy", output ๐Ÿ˜ƒ instead of ๐Ÿ™‚
  • Coworker's new requirement: when user types "sad", output ๐Ÿ˜ญ

You implement your change, back it up, and the new version with ๐Ÿ˜€ is released. But it turns out ๐Ÿ˜ƒ is the ultimate insult in the Snowflake region, and you need to immediately rollback ๐Ÿ˜ƒ back to ๐Ÿ™‚ while you find an alternative.

Meanwhile, Coworker has added ๐Ÿ˜ญ to your backup, which still has ๐Ÿ˜ƒ. Now when you try to rollback to ๐Ÿ™‚, Coworker's code gets erased. Now your code is unable to safely support both ๐Ÿ˜ญ with ๐Ÿ™‚ without starting over entirely. Maybe you want to disable ๐Ÿ˜€ only for the Snowflake region, but that's not possible either without harding coding the regions instead of just changing the deployment.

Now imagine working with a team of 10 people, or a company with 100 people working on this same software. With features and release dates constantly changing.

I would agree with more people these tools become more needed, but I am talking about a solo dev situation who is the only person who accesses the code base. All other contributors I carefully import.

[-] quackers@lemmy.blahaj.zone 1 points 1 year ago

That doesnt sound like a good reason. What other reasons could you possibly have to do copypasta backups over what you can at least use as a diff based backup letting you still access any old version you want

I just find frequent full backups give me more control and less surprises when I find out my code did not sync/commit or some other issue. Done it for 3 years and it has been very worthwhile. Saved my project from a loss so many times now.

this post was submitted on 25 Nov 2023
931 points (97.3% liked)

Programmer Humor

32828 readers
276 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS