335
top 25 comments
sorted by: hot top controversial new old
[-] cyborganism@lemmy.ca 39 points 10 months ago

As a side note, I find it incredible how much programmers have such little knowledge of how to use Git properly.

Even the most amazing developers I've worked with found themselves completely unable to manage their repos properly.

[-] backhdlp@iusearchlinux.fyi 58 points 10 months ago

I refuse to believe that anyone other than Linus knows how to use git.

[-] fidodo@lemmy.world 19 points 10 months ago

Git is one of those things that take a bunch of learning to understand but is makes perfect sense once you do. I read like half of the pro git book and after that I was like it's so simple! If course it still requires you to read half a book...

[-] cyborganism@lemmy.ca 16 points 10 months ago

Yes! And the book is free. You can download it in PDF if you want.

For some reason I've always been able to visualize version control systems and workflows pretty well and understand how they work. I used to host a CVS server when I was in college back in 2001 so my teammates and I we could collaborate on our lab projects. Then moved on to Subversion, which I used for a very long time. Then I worked at a small company who used Canonical's Bazaar and finally joined a big corp who used Git.

Throughout the years I simply developed some good practices that I applied to Git and that seemed to be enough. But, I'd occasionally get into this detached head state that I didn't really understand. And this happened often with my teammates at that job. They'd end up with bizarre scenarios. So I started reading the book and experimenting and was soon pretty solid in Git and ended up being the SME on that topic for our team. Everyone would come to me when they got stuck.

I'm still learning new shit about Git even 8 years later lol. But, the step from being a newbie to a normal user is really big.

[-] mrkite@programming.dev 6 points 9 months ago

Yeah back before github existed, we used sourceforge to host opensource, and you had to use CVS. Then later Subversion.

[-] expr@programming.dev 7 points 10 months ago

I know how to use git. It's not that hard.

[-] ArtVandelay@lemmy.world 16 points 9 months ago
[-] KuroeNekoDemon@sh.itjust.works 3 points 10 months ago

Oh boy are you in for a shock to know that I use git all the time when I want a piece of software that isn’t available in YaST2, Flatpaks or Appimages

[-] backhdlp@iusearchlinux.fyi 14 points 10 months ago

I mean understand and know when or how to use every feature and command, I don't mean using git clone https://github.com/foo/bar occasionally.

[-] cyborganism@lemmy.ca 7 points 10 months ago

Cloning a repo to build the source code isn't even remotely hard.

When you manage the repo of an entire team who work together on different release versions of a product using a very specific workflow with squash commits and cherry-picking? And when team members fuck up the repo's history with a bad git pull/push? Yeah, it gets more complicated.

[-] magic_lobster_party@kbin.social 1 points 9 months ago

If a team member can fuck up the history you probably should look into your merge policies.

[-] cyborganism@lemmy.ca 1 points 9 months ago

Even with merge policies, if someone doesn't understand what they're doing or how it works, it won't help.

Last project I worked on, we asked our developers to rebase on the parent branch and squash on their pull requests. But, they often encountered conflicts because they never updated their branch. They would pull the parent branch into their feature breach, or do a regular merge, or merge different other branches together and you'd end up with commit duplication everywhere. They didn't have any discipline.

[-] jarfil@beehaw.org 2 points 10 months ago

Git is easy: the key part is picking a GUI you feel comfortable with.

[-] Cold_Brew_Enema@lemmy.world 8 points 9 months ago

I use Git all the time and still have no idea how to use it

[-] emptyother@programming.dev 22 points 10 months ago

They are all named some variant of "tutorial_Ch01" or "testprogram" probably. And one repository named "My Unnamed MMO" (or some other overly complex but trendy genre) that has like 12 lines of code so far and a crappy drawn pixelart png.

[-] backhdlp@iusearchlinux.fyi 20 points 10 months ago

That's a lot of code, I'd expect the 12 lines in the README.

[-] abclop99@beehaw.org 12 points 10 months ago
[-] ares35@kbin.social 5 points 10 months ago

"check the comments in the code."

(there are none)

[-] topinambour_rex@lemmy.world 9 points 9 months ago
[-] emptyother@programming.dev 1 points 9 months ago

Seems like its a common mistake, maybe brought on by its use as a stylistic choice in entertainment. "Myguy vs/ Yourguy" became "MyGuy v⚡s Yourguy" became the abomination that is "v/s". Probably. I'm no etymolog.

[-] starkzarn@infosec.pub 8 points 10 months ago

I don't know how you got a picture of me, but I demand it is removed!

[-] hypnotic_nerd@programming.dev 3 points 10 months ago

Nailed it 😜

[-] dbx12@programming.dev 7 points 9 months ago

And half of them are "curated list of X"

[-] MonkderZweite@feddit.ch 1 points 9 months ago

For me it's the other way around. Do i do something wrong?

this post was submitted on 14 Jan 2024
335 points (95.9% liked)

Programmer Humor

19503 readers
339 users here now

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

founded 1 year ago
MODERATORS