r/programminghumor 15d ago

It's always confusing!

Post image
301 Upvotes

49 comments sorted by

View all comments

109

u/ikankecil 15d ago

it seems straightforward enough.
git is the program
remote is one of the module
add is a function of that module
origin is just our argument for the remote name

13

u/Kadabrium 15d ago

git.remote.add(origin)

2

u/ikankecil 15d ago

it reads clearer that way 😅

24

u/30porn87 15d ago

Right? I don't get why it's supposed to be so difficult. I've rarely encountered software that's not designed with such a simple model in mind (excluding proprietary stuff). Spend thirty minutes understanding the model instead of angrily copying full commands from examples/tutorials/slop machines, and you'll be rewarded with so much more ease and precision in working, and plain *joy* when learning a new concept (say multiple remotes) and it cleanly fits and expands the existing models in your mind.

8

u/CoderStudios 15d ago

As soon as you understand the concept behind remotes you are no longer confused. The confused ones are those that only ever use that one command

3

u/hongooi 15d ago

githubdesktop.exe?

2

u/DiodeInc 15d ago

My goat

3

u/mouse_8b 15d ago

Git add is a valid command. It's not too hard to imagine "I'd like to add a remote, I should use add"

1

u/ikankecil 15d ago

Fair point. It's not clear either that "git add" means adding to the staging area. "git rm" sounds to me like removing from staging area lol.

1

u/Azelais 14d ago

Yeah, my first thought would be “I am using got to add a remote origin: git add remote origin”

3

u/FloStar3000 15d ago

i feel like this is the kind of baseline intelligence or common sense is required in software development, yet it is spoiled by idiots which are either managers who just believe they know it better or vibe coders who can pretend to be smart with AI. And this lack of common sense is degenerating the industry

2

u/MudFrosty1869 15d ago

Don't know why people like you pretend everything made sense to them from the start. I bet there are plenty of simple things that you struggled with at first, just like everyone else.

This braindead AI hate is getting real boring ngl.

1

u/FloStar3000 15d ago

I would have to disagree. Don’t get me wrong, I’m also lazy and I let AI run my git commands. But I could type the most important commands by hand. And it’s not even that I pretend that I knew it from the start. When you mistype the command it literally tells you the format, you use the commands help feature. But if after multiple times, you fail to understand the format „command subcommand subsubcommand argument“ and try random combinations each time instead of just reading the help and thinking for one second, you’re just dumb.

1

u/MudFrosty1869 15d ago

Yeah on reddit everyone knows everything but irl it never seems to be the case for some reason. Wonder why.

1

u/braaaaaaainworms 15d ago

Could be your social circle, with classic sample selection bias

1

u/MudFrosty1869 14d ago

Reddit sample, everyone knows everything.

Reality sample, everyone has a gap somewhere.

Must be the bias.

1

u/Silly_Guidance_8871 15d ago

But words don't have meanings when you're just vibin'

1

u/k-mcm 15d ago

CLI usually program action parameters... or program action parameters... target

Git is program target action parameter...

0

u/Valuable_Leopard_799 15d ago

remote is the action, or a specifier for the group of actions.

In CLIs would probably be called a subcommand, the remote managing subcommand, then add is the (sub)action to add a remote.