r/learnprogramming • • Mar 10 '21

Advice My professor recommends us making a GitHub account as soon as possible. Why should I?

It's an honest question. His reasoning was like "in a couple of years, when you graduate and look for a job, you'll be able to show them that you used github for the past couple of years" and I get that. But right now I'm making programs that are too simple and that are introductory. Like create an array, print only the odd numbers from an array, write Hello world in a .txt file. Scan a .txt and count the occurences of a given word, etc.

I don't know about github but it seems that that's not "worthy" of uploading. Don't get me wrong I'm not embarrased but is it a good strategy that my employer 3 years from now sees that I struggled with / learned opening files only 3 years ago?

Is there something I'm missing?

Edit: Thanks for all the answers! I realized now that there is a private and public mode for github so I'm cool with that. See you on github!

1.7k Upvotes

314 comments sorted by

View all comments

Show parent comments

16

u/[deleted] Mar 10 '21

You can use git entirely without either Github or Gitlab. GitHub is just a place to remotely store repositories (git folders/projects, sort of). You can even set up your own remote repo on your own machine or another machine you own, too, using just the command line. Github came much later as a way to share git repositories.

To be crude, the most popular quote is: Git is to GitHub what porn is to Pornhub.

4

u/MerviElina Mar 10 '21

Haha, now I get relationship between Git and the lab/hub etc! I'm sure my work mates are going to appreciate the quote...

2

u/jkettmann Mar 10 '21

This is not entirely true imo. You can use git without the hub of course. But the most important features that GitHub and others provide are the discussions aka pull requests. On top of that you have the continuous integration, branch protection rules and so on. But what teams primarily need is a place to review and discuss code.