this post was submitted on 08 Dec 2023
1473 points (98.3% liked)

Programmer Humor

19821 readers
958 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 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] -5 points 1 year ago* (last edited 1 year ago) (4 children)

That...isn't quite right.

Git is a distributed version control system for software development^1.

Version control allows you to manage code versions and changes to code. You take snapshots, so to speak, of every change you make.

Distributed, in this context, means multiple developers can write code on each of their development computers and merge the changes, usually to a centralized git server.

GitHub runs a web-based git server at GitHub.com so teams can store their code in a central location on the internet.

  1. Ok, technically, even though It's often used for software source code, it can be used for any set of files and directories.
[–] [email protected] 33 points 1 year ago* (last edited 1 year ago) (1 children)

I don't see anything you said that it isn't quite right.

Porn is a distributed form of entertainment.

Porn allows you to get your rocks off. You take views, so to speak and do your thing.

Distributed, in this context, means multiple enjoyers can watch porn on each of their entertainment computers and share the videos, usually to a centralized porn server.

PornHub runs a web-based porn server at pornhub.com so viewers can store their porn in a central location on the internet.

[–] [email protected] 1 points 1 year ago (1 children)

So in the analogy porn corresponds to git? Or to source code?

[–] [email protected] 1 points 1 year ago

In this analogy it could be that:

  • the filesystem is git and the porn is source code
  • the file is git and the data is source code
  • you don't consider the source code because you can host anything on github
  • we shouldn't be reading into the analogy this deeply because its a silly analogy meant for absolute beginners
[–] [email protected] 13 points 1 year ago

If you read it as "a website providing a service, but that service is also available elsewhere" the analogy makes perfect sense.

[–] [email protected] 8 points 1 year ago (1 children)

Ok, now explain the part you think is not right.

[–] [email protected] 2 points 1 year ago

Git is a tool. GitHub is one implementation of a git server. Git is used to manage source code. GitHub hosts / manages source code.

Porn is content. Pornhub is one service that hosts content. Porn is not a tool. Git isn't content. Source code is content.

So porn isn't really analogous to git.

Maybe a better analogy would be... Git is to GitHub as outlook mail client is to outlook server--or Gmail app to Gmail server.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

GitHub runs a web-based git server at GitHub.org so teams can store their code in a central location on the internet.

Wait.. it's GitHub.org?

I always assumed it was GitHub.com...

Edit: GitHub.org only seems to support HTTP and then it just does a permanent redirect to GitHub.com

[–] [email protected] 3 points 1 year ago (1 children)
[–] [email protected] 2 points 1 year ago

All good 😊 you had me going for a minute though