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

1.4k

u/dwheelerjr Mar 10 '21

The smaller projects are best when learning git flow IMO. You should make an account.

356

u/Roly__Poly__ Mar 10 '21

A great point. Small projects are nice for learning git flow.

2

u/devdoggie Mar 10 '21

Overall I'd recommend using Github and get stuck as soon as possible. The later you learn git stuff, the more painful it is

0

u/[deleted] Mar 10 '21

[deleted]

210

u/indiebryan Mar 10 '21

I think people here may be forgetting that projects that are smaller can actually be a good way to learn git flow, so I concur.

150

u/DPCreations Mar 10 '21

The flow of git, is best learned from projects that are not too big. I second this.

203

u/[deleted] Mar 10 '21

git flow

small project

learn good

83

u/returnfalse Mar 10 '21

While git can be used for projects of all sizes, I think it’d be best to start with a smaller project.

→ More replies (19)

705

u/SoftDev90 Mar 10 '21

You need to learn git and how that workflow integrates into software development. Starting now will save you a ton of time in the future. You'll learn branching, pull requests, contributing to others codebases, forking, cloning, setting up CI/CD, managing repos, etc. It is an invaluable skill in software development and not always the easiest to master. You will make mistakes, you will lose code, you will bork repositories. Best to learn on inconsequential code that isn't very complex now, than to do that on codebase that is hundreds of thousands of lines worth of code in a production environment. Trust me, this is one skill you do not want to take for granted and risk majorly messing things up later on, on code that actually matters.

113

u/smeeshmosh Mar 10 '21

Do you have any good resources for learning git and how to integrate into small projects?

23

u/donotflushthat Mar 10 '21

Their documentation is very good. It actually explains what's going on instead of making you memorize command lines.

https://git-scm.com/book/en/v2

14

u/BeauteousMaximus Mar 10 '21

A bit different from what you asked but check out Oh Shit, Git - git commands to fix common problems explained in simple language. It’s helped me a lot.

3

u/themdeadeyes Mar 10 '21

has saved my ass many times

11

u/jkettmann Mar 10 '21

I created a free git course where a bot teaches you how to use Git/GitHub in a professional team. Maybe that's interesting for you.

8

u/[deleted] Mar 10 '21

This probably isn't exactly what you're looking for, but I think it could still be helpful.

https://learngitbranching.js.org/

→ More replies (1)

5

u/PinnoAbdulRauf Mar 10 '21

I mastered git thanks to this wonderful manual: https://git-man-page-generator.lokaltog.net :-)

2

u/[deleted] Mar 10 '21

Install git extensions. It makes everything way easier.

1

u/raventonight Mar 10 '21

Seconding this - appreciate comments giving commands but is there resource I can view that's a bit more beginner friendly?

1

u/Ran4 Mar 10 '21

Despite what people have been falsely telling you, git is actually incredibly complicated.

You should absolutely learn the basics and just play around with it, but ultimately in order to master it you need to know the underlying concepts of how git works in order to fully understand what happens.

0

u/[deleted] Mar 10 '21

[deleted]

205

u/gopiballava Mar 10 '21

This comic is depressingly accurate.

https://xkcd.com/1597/

68

u/BrooklynSwimmer Mar 10 '21

Accurate, but honestly practical a high percentage of the time...

13

u/[deleted] Mar 10 '21

I got so sick of the more esoteric commands and dealing with the CLI overall that I ended up just buying a license for Gitkraken.

→ More replies (5)

35

u/FountainsOfFluids Mar 10 '21

It makes me feel smart to hear smart people getting confused by git.

I just wish that translated into better programming skill.

4

u/XKCD-pro-bot Mar 10 '21

Comic Title Text: If that doesn't fix it, git.txt contains the phone number of a friend of mine who understands git. Just wait through a few minutes of 'It's really pretty simple, just think of branches as...' and eventually you'll learn the commands that will fix everything.

mobile link


Made for mobile users, to easily see xkcd comic's title text

8

u/MerviElina Mar 10 '21

I'm expected to learn the git for work on my own but I'm not sure what I need. Thank you for the simple guide! I know GitHub is the most common one but there is GitLab too. Are there some differences? Is one "better" than the other?

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...

→ More replies (1)

8

u/jkettmann Mar 10 '21

There are some differences if you go deeper. But the general workflow is the same whether you're on GitHub, GitLab, or BitBucket. You typically work with branches, pull requests (called merge requests on GitLab), and code reviews. If you need to learn how to use Git in a team check out this. It may be exactly what you need once you know the very basics

→ More replies (1)

5

u/Scumbag1234 Mar 10 '21

The main difference is that you can host gitlab on your own server. Companies tend to do that since they do not trust github. The workflow with gitlab is the very same afaik.

→ More replies (6)

8

u/Ratatoski Mar 10 '21

I'd add rebase to the list and also --amend. Possibly cherry picking as well.

8

u/catsita Mar 10 '21

And stash, I found it pretty useful 👍🏻

7

u/drgut101 Mar 10 '21

I use stash all the time. I use a scripts with a bunch of keys.

Stash my edits(keys), pull, pop stash.

Boom, I don’t have to re enter any keys.

→ More replies (1)

19

u/PackageEdge Mar 10 '21

For commit, I always use:

git commit -m “Comment here.”

Are both syntax correct?

30

u/Headpuncher Mar 10 '21

git commit -m "MESSAGE here"

Now we know what "m" is for.

32

u/PackageEdge Mar 10 '21

But “comment” has twice as many M’s!

Kidding, thanks. Message is better to remember.

10

u/Boooooo0ooooo Mar 10 '21

They say the “-m” unlocks the hidden “comit” command

→ More replies (1)

5

u/toastedstapler Mar 10 '21

-m is fine when the commit message is nice and short, but at work we follow commit quidelines kinda like how they do it on the angular project

https://github.com/angular/angular/commit/a926fd020bff85c3fb2e20899b4e70134fc7bb2f

where there's a headline and then a few descriptive lines for the actual changes

10

u/pandorazboxx Mar 10 '21

you probably know, but that format for commit messages is actually a spec called Conventional Commits.

→ More replies (2)
→ More replies (2)

6

u/Icantlearnhowtocode Mar 10 '21

Vocabulary: Think of a commit as a list of changes made to files that you can revert back to if something goes wrong and track edits through. A remote is just a repository hosted on another computer. A branch is its own set of commits separated from other branches. A fork is a clone of a repository with the added bonus of being able to pull request the original repository. A gitignore file is a list of files and directories to ignore from commits, git add, clones, and forks.

literally the most understandable comment on git i've ever read. Thank you sir, I owe you my life.

5

u/FountainsOfFluids Mar 10 '21

I use the tool built into VS Code. It works great for most day-to-day things. And it has a fantastic "Undo last commit" one click command, which you should absolutely never use after pushing code to github.

2

u/u1tralord Mar 10 '21

Not always true! My company actually encourages it.

Since each developer typically works on their own feature/* branch, you're welcome to do whatever you like on that branch.

We're encouraged to use git rebase to squash and clean up our commit history before merging to master

2

u/candidpose Mar 10 '21

I just use the built in on vscode, that shit can do everything. I haven't typed a git command in a while.

2

u/PriestOfOsiris Mar 10 '21

Man I’m saving your post. I’m actually following an online course to learn web development. Git (GitHub, GitLab) was literally the first subject and I had a real hard time getting it. We’re talking hours of work, reading lessons and so on. I just read your comment once and I’m feeling like I don’t even know what it was I didn’t understand. Thx a lot !

→ More replies (2)

5

u/GhostNULL Mar 10 '21

I don't think you can mess up that much in a production environment with git. Except when you push straight to master with continuous deployment. Most other git mistakes can be fixed with the reflog and a more experienced git user.

1

u/LostVikingSpiderWire Mar 10 '21

Totally....I was just asked 3 days ago if i knew github.... Had to say that I am from the old school single flow.

Making account also

2

u/AndrewABarber Mar 10 '21

Hopefully this isn't buried but if you are signing up, GitHub provide awesome perks for being a student.

2

u/sdpinterlude50 Mar 11 '21

thanks! just got github pro because of this!

2

u/AndrewABarber Mar 11 '21

Nice! Congrats!

170

u/RobSG Mar 10 '21

Oftentimes people dont look at the exact code you put on github, but rather your activity. In case they look though, it doesnt necessarily matter what you put up on thete, but rather how. The way you structure your repos with clean commits and good commit messages counts. Also, it is a vital skill in your job to be able to handle common git commands with ease. The practice would not hurt.

63

u/RobSG Mar 10 '21

One thing to add, if you start using git now, employers have the ability to see your awesome progress over the last few years and can draw themselves a picture over you and your work ethic.

69

u/NovelAdministrative6 Mar 10 '21

I highly doubt anyone would look that deeply into it lol

23

u/RobSG Mar 10 '21

same lol :D! For my interviews they did not even check my github at all tbh. But I think it depends where you are looking for a job.

12

u/Headpuncher Mar 10 '21

Ugh, I had a weekend long assessment for a job interview once and when I got to the review interview, with 7 people on the other side of the table, the front-end guy hadn't even looked at the github they insisted I check everything in to as part of the interview.

I was really glad when I got a job where I work now and they didn't do ant of the cliche and silly "silicon valley" interview crap.

9

u/[deleted] Mar 10 '21

Unless I was interviewing for Supreme Court Justice, I would wonder why 7 people had the time to talk to me. That company seems a little overstaffed.

7

u/avindrag Mar 10 '21

I highly doubt anyone would look that deeply into it lol

Depends on who's looking. When I was reviewing candidates, and the candidate had a Github link, I explored it as fully as I could.

Usually, there isn't much to see beyond college assignments and coding challenges, so a candidate with anything more than that easily stands out to me.

→ More replies (2)

5

u/De_Wouter Mar 10 '21

Indeed. I would just open a random more recent project and look for clean code and good architecture practices.

3

u/Innominate8 Mar 10 '21 edited Mar 10 '21

I do.

What's most surprising is the number of people who include a github account on their resume with no activity, no projects, only forks of other projects.

For what it's worth, forks are of no value unless you're an active developer on the source project. Obvious toy or class projects aren't much better. Things I look for first are any kind of real-world project, be it a blog, a resume/portfolio site, an OSS project, whatever. Other useful things are ancillary repositories that demonstrate interest/ability, a good example would be a git repo for your dotfiles/shell environment. Or for your vim or emacs configuration.

If you're in the open source world, a TeX resume will stand out. Some will recognize it instantly and usually see it as a bonus. Those who don't recognize it as such still tend to notice the distinctive difference from a word doc. The only people who will take it as a negative are the ones who expect a .doc file instead of a .pdf, which is probably not a great open source role.

Probably the most surprising thing I see regularly is people listing a personal website on their resume that doesn't work/exist. if you can't keep the website on your resume online, what do you expect me to think of you as an employee?

1

u/aneasymistake Mar 10 '21

Presumably these are the same employers that don’t have time to read your CV in full?

→ More replies (1)

4

u/[deleted] Mar 10 '21

What is a 'clean' commit?

0

u/[deleted] Mar 10 '21

[deleted]

→ More replies (1)

4

u/glemnar Mar 10 '21 edited Mar 11 '21

Hiring manager here, which might be a good version of context.

I don't care about Github usage for personal/school projects. A history of OSS contributions to big projects or maintaining widely-used projects is a big positive (because it shows me how folk work with other people, and maintaining projects is a pain in the ass), but the lack thereof is never a knockout.

Learning git generally is important, though.

1

u/[deleted] Mar 10 '21

Alright

102

u/muffinnosehair Mar 10 '21

I have the following info straight from a recruiter: say I have a bunch of CVs of people saying they're passionate about programming. There's no way for me to check that. But some of them link their github profile, so I can check their activity. If I see one person who has almost daily commits, clearly that's a passion. I don't have time to check the actual portfolio, I just look at the activity over the last year or so.

So there you have it. Good enough reason for using it, imo. You can make your repositories private, that way no one can see what you don't want, but the activity still shows.

67

u/dontwasteink Mar 10 '21

It helps, but I think it's unfair to those who don't program outside of work.

13

u/[deleted] Mar 10 '21

It can even be a small negative.

Some employers will say oh this candidate is working 20, 30, 40 hours a week outside of their salary job? Clearly that’s where their passion is. What are we to them, then? An annuity?

As an employer, you never want to dominate your employee’s life. Work should be an agreeable business arrangement. People should feel encouraged to explore outside of work. Some groups even set aside time at the office for people to work on side projects and as long as ownership is clearly delineated I think that’s awesome.

But you also want people who bring passion to the team - not someone who’s going to spend all day watching the clock and wishing they were working on something else.

I’d be cautious hiring someone with an existing full-time commitment outside of the role we’re discussing.

29

u/PersianMG Mar 10 '21

Perhaps but on average programmers who code outside of work tend to be higher skill (well because they practice it more).

8

u/Amortize_Me_Daddy Mar 10 '21

How is that unfair?

You don't have to code outside of work if you don't want to, but the people who do obviously deserve recognition for being passionate about what they do.

4

u/dontwasteink Mar 10 '21

Thinking about it, it is possibly unfair to some, who are great coders but don't code for hobby.

But yea, but now I'm thinking unfair isn't necessarily bad, it's just one of those situations.

→ More replies (9)

7

u/Calamero Mar 10 '21 edited Mar 10 '21

When i hire i dont even ask for anything. I just talk for a few minutes. That is enough for me to assess if someone is fit for a programming job.

Edit: of course if someone told me they have a github that would be a bonus. but especially witha large stack you want people who learn new stuff on their own and must look for soft skills more than anything imo.

→ More replies (13)

65

u/Headpuncher Mar 10 '21

the first step in learning git is to add this to your bashrc

alias gti="git"

51

u/V13Axel Mar 10 '21

I have

alias wow=git status  
alias much=git  
alias such=git  
alias many=git  
alias very=git  

Which is fun because

wow  
such pull  
many add  
very commit

4

u/Baseit Mar 10 '21

I like your style.

2

u/HotKarl_Marx Mar 10 '21

This is the best comment I've read all year.

22

u/SnowdenIsALegend Mar 10 '21

Explanation: Bash will execute the git command even if you mistype 'gti'.

50

u/space_wiener Mar 10 '21

Start now. Upload your stupid and simple projects.

You can lock them so no one else can see them or you can delete if they are so simple you never need them. There are a lot of nuances with git so running into problems while you are messing around is good.

I still have my first real project on my git account just for memories. I don’t even think it works.

0

u/[deleted] Mar 10 '21

[deleted]

2

u/Bradmund Mar 10 '21

just make it a private repo

44

u/Bukszpryt Mar 10 '21

Everyone says that you need to learn how to use it early etc, but there is one more thing - the sooner you create account, the higher chance that your username will be available. That is true in many places. I even heard of people reserving good names in some mmo games during beta so they could sell them later.

8

u/-SmashingSunflowers- Mar 10 '21

Any kind of recommendations for what a good username entails?

18

u/Piekana Mar 10 '21

Something you think is not embarassing to give to employers. I for example have abbreviated my first and last names in my github account name.

Example like Daniel Smith -> DanielS or DSmith or DanS.

→ More replies (1)

10

u/[deleted] Mar 10 '21

Anything that won't embarrass you when you put it on your resume and cover letter.

7

u/Bukszpryt Mar 10 '21

The best username is the one you want to use. I hate when i have to make some burner gmail account and even totally random names are already taken.

5

u/emelrad12 Mar 10 '21

Bragging rights. Nothing else.

2

u/entropy2421 Mar 13 '21

I'd recommend having a dozen or two different accounts on GitHub with several dozen repositories of code in each profile. Every time you get a lead towards a job or something else where you might want to share your work, create another profile and work out of it.

Basically treat each profile like a folder on in your documents folder on your computer. Find or make a system to keep track of them. Maybe. There's nothing wrong with writing more code you forgot about than code that you know where it is.

Worked incredibly well for me...

17

u/Double_A_92 Mar 10 '21

The skill is using git, not your projects on Github.

53

u/4THOT Mar 10 '21

An HR rep sees a wall of green dots and thinks "hmm, hard worker" and so you get the job. That's really all there is to it.

14

u/DemeterLemon Mar 10 '21

Do they really care about that? Making fake commits is super easy, there are so many softwares that make you a green wall even into the past. This seems so abusable

36

u/Headpuncher Mar 10 '21

developer, meet management, the most superficial people there are. Now let's find a room and talk about why code quality will likely get you fired before it gets you promoted. Have I told you that java and javascript are the same language with the same but different names?

5

u/romple Mar 10 '21

At one bank I'm not mentioning, they rank developers based on number of commits. And they fire the lowest ranking employees every year. Probably not a lot of commit squashing happening there.

Clearly no issues with that system .... Did not take that job ;-p

But yes people do care about the stupidest shit.

1

u/hashedram Mar 11 '21

The question starts with the presumption that HR reps have a functioning prefrontal lobe.

2

u/Milkshakes00 Mar 10 '21

No HR rep is looking at your git account. Lol. They're just shoving the paperwork over to the hiring manager.

12

u/AlexMelillo Mar 10 '21

Reasons to use git as a beginner:

  1. You are learning git when you only have a couple of files to worry about. It becomes waaaay more of a pain in the bum when there are multiple files.

  2. You are saving your code outside of your computer; making a valuable backup every time you commit. Your drive could potentially fail for any reason at the most inconvenient time possible. At least you will have your code saved somewhere.

  3. The sooner you get into the habit of committing your code, the better.

  4. In a few years, when you are miles ahead of where you are now, you'll be able to look at your old code and laugh.

Also, in regards to future employers seeing your struggles, you can make your repositories private so only you can see them. I recommend having a single private repo for each class.

13

u/Jolly-Addendum8188 Mar 10 '21

You can also easily assign projects as private on GitHub so you don’t need to show them to future employers

18

u/[deleted] Mar 10 '21

Its good for you personally to look back at also. When you start doing bigger projects, pushing all your code to GitHub regularly is a good habit to get into. Learning all the got commands in your terminal is also beneficial because when you do need to start using git more you will have already mastered it. I literally thought the same way you do a couple of years ago. Now every time I write a function/nice working piece of code I push to GitHub not only does it make a small error reversible very quickly but I have peace of mind knowing all my code is safe if my computer dies.

12

u/[deleted] Mar 10 '21

If I was your interviewer I would ask questions to see if you know how to use it. I would not go check your cs102 code :)

3

u/Headpuncher Mar 10 '21

I'm looking forward to hearing about all the GUI only gitters out there who fail your interviews. I have met many, and they screw up then blame someone else.

5

u/boltzman111 Mar 10 '21

Git blame is a useful command though

→ More replies (1)

4

u/Murlock_Holmes Mar 10 '21

Knowledge of gitflow is good. Getting comfortable with the terminal is good. Having proof that you constantly work on and maintain projects is good. Having a centralized location for you to share code is good.

4

u/drachenstern Mar 10 '21

Get in the habit of saving things to your repo of choice (GitHub in this case being Facebook for Source Code, as it were, because there are a myriad of repo hosting options) frequently. You never know when you'll wish you had X around.

Repos are cheap. Make them as frequently as you want.

Commits are cheap, make them as often as you can. However frequently you think is too often to create and push commits, you're wrong.

Use a branching model to track work, and merge it back to your mainline. Use branches to track experiments that you commit to right before each compile attempt. You can even use git add -A .; git commit -m "build attempt"; <build commands> on just about every term and then you can up arrow on the CL a LOT

Saving everything means you can navigate your log to find that one thing you forgot about that you changed. It's invaluable, especially as a student.

Also: share this thread with your fellow classmates.

1

u/c2l3YWxpa20 Mar 10 '21

Google GitHub student pack. You get shit load of premium tools, hosting, domains and courses for free (like Frontend masters, educative etc.) while you're still a student.

Seems like a good enough reason to me apart from the obvious ones others have mentioned like learning git.

2

u/sdpinterlude50 Mar 11 '21

thanks! just got github pro because of this!

2

u/c2l3YWxpa20 Mar 11 '21

Now go make us proud 🙌

3

u/verde622 Mar 10 '21

Maybe your professor knows what they are talking about?

3

u/lasercat_pow Mar 10 '21

Github allows unlimited personal (ie, not public) repos, so you can upload stuff and not share it with the public. This is still useful so you can revert changes and stuff if you really mess up. This also gives you some experience using git, which is definitely useful.

3

u/[deleted] Mar 10 '21

Hey, im a full stack dev. These guys all mean well but in truth dont worry about it. Learning git is incredibly simple and you WILL change your mind on your own time anyway. When they say "itll make your life so much easier" they really mean it takes like a week before you'll be intimately familiar with it. Git isnt what makes or breaks developers. Its merely a symptom of our existence.

5

u/rohithandique Mar 10 '21

Check out https://ooloo.io/project/github-flow I used this to learn the workflow of using GitHub.

8

u/mickey_s Mar 10 '21

Do it. Put it on your resume. Your ahead of your classmates that didn’t put it on their resume

2

u/Headpuncher Mar 10 '21

Don't know why people downvoted this, it's literally how you get a job, you know, by putting skills you have on a resume. Especially true when you are a new graduate, employers know you aren't Supercoder Man from Krypton, but they want to know what you know.

1

u/mickey_s Mar 11 '21

Some people must not have put it on their resume lol

2

u/Ted_Borg Mar 10 '21

Use it for school assignments. Not for showing them off, but for managing them and learning git. Just set them to private and you're good.

In a month or two you will be making big enough programs that git will make sense. It helped me a lot during studies, especially when working in a group!

2

u/bobsonreddit99 Mar 10 '21

Others have answered the question far better but you can see at a glance what year the account was opened, GitHub actually has a year based filter going back to that year. It would be superficial for anyone to judge you on it but the sooner you open the GitHub the more years of experience you will seem to have to anyone who looks.

2

u/Zanena001 Mar 10 '21
  1. The git repo can be private, so you can decide what to show to others.

  2. Simple projects are good for learning git and mess with it.

  3. As soon as your code starts being bigger than 100 lines, its always good to back it up just in case, plus with Git you have the history of every change, so if you're about to do something that could potentially break the code or you realize there is a better approach, you can just revert to the previous version very easily.

  4. It will become more useful in 2nd and 3rd year, cause you may be asked to work on projects and even collaborate with others, working in a team without Git is a nightmare.

2

u/JCruzDev Mar 10 '21

learn git and use Github. Not matter how simple is your project, upload it and use a git flow methodology.

You will be updating your Github profile, learning git, implementing git flow with you projects and keeping the coding habit alive. I used to think like that but no matter the size of your project be proud of what you build, even if it is picking an txt file from you computer.

You will create a skill of consistency, using Git and creating tons of fun and valuable projects. Keep it going!

2

u/Tr0llsR0yce Mar 10 '21

You are missing that evrey programmer is a human too, so the employers do not only look for god like talent but for engagement too, which is in no way better showcased than with a github account! If you have a well organised github account (writing readmes, clean commits, using branches) you show the employer that you a. know what youre doing and b. work effitiently and future focused.

2

u/dastrn Mar 11 '21

Folks interviewing you aren't going to read your random learning project code.

But seeing you have check-ins and know how to use git to manage your source code tells them you have one less skill they'll need to teach you.

4

u/hashedram Mar 10 '21

Professional programmer here. Its less about interviewers looking at your code and more about the psychological impact of it. Working with Github puts you in touch with other people's code and can often inspire you to think of new ideas or at the very least attempt new things because you saw something cool. Working with git while programming also inculcates a sense of discipline as opposed to just leaving your code lying on a drive somewhere.

Listen to your professor.

3

u/Calamero Mar 10 '21

Version control is for pussies. Tell him that.

2

u/Wtfisthatt Mar 10 '21

You only need one version. The one you’re currently coding on!

2

u/Bradmund Mar 10 '21

I only compile my code after writing the whole thing. If it doesn't work the first time, then it was never meant to work in the first place.

→ More replies (1)

2

u/[deleted] Mar 10 '21

I think that it's more important learn how to use git first but it can help you to organize your notes and snippets. By the way, I prefer gitlab over github for my personal projects since it's free/libre

1

u/HotKarl_Marx Mar 10 '21

I'm with you. Although there's also nothing preventing you from using both.

2

u/stoph_link Mar 10 '21

Yeah, but integrating git into your workflow now will be a good habit to nurture for your future self. Git can have its own leaning curve so you might as well master its use while creating these lesser projects. You can always delete them later, but it would show your progress which can be a good thing.

2

u/[deleted] Mar 10 '21

Knowing Git is one of the essential skills every developer should have. You will use it every single day in the future, so don't underestimate it. Good Git knowledge will become very handy once you put your hands on large project. Btw When I was starting my career back then I was asked countless times on the interview if I'm familiar with Git.

2

u/MangoPeachHotHoney Mar 10 '21

Github is the CS equivalent of a work portfolio. It's something you can point employers toward for examples of your work.

2

u/Frozen5147 Mar 10 '21

I do agree that most of the small stuff is probably not worth putting on there publicly, especially if you don't feel comfortable doing so. I don't think that employers will pick apart old code that you've put on there even if you did FWIW, though... I doubt most recruiters would have the time to try and glance through a dozen candidates worth of GitHub repos.

That being said, using GitHub is a very good way to, well, get used to using git, and it's free to make private repos anyways.

2

u/not_batsoup Mar 10 '21

You can always create repositories, show your commits to them on the commit graph(green squares everyone brags about) and then when you move on to bigger projects you delete your old repositories, but it will still show your commits to them on the graph. TLDR ; more green squares for longer = better

1

u/trentrand Mar 10 '21

Is that true? Can I delete a repository and still have it display on my activity chart? Or do I have to make them private?

→ More replies (2)

1

u/[deleted] Mar 10 '21

To show your progress over the years, I’m assuming your creating simple things right now but as time goes on your employers are going to see that you made more complex projects

1

u/Godvater Mar 10 '21

I wish our profs told us that when we started.

1

u/x6060x Mar 10 '21

I agree with the others that you should make one and use it for all of those reasons. I wanted to add that when you start looking for a job you will decide if you want to show it to your future employer or not. If you don't have one then you won't have that option. Also you can use one account for small programs and later create another one for the Big projects.

1

u/PropHeighT Mar 10 '21

Because versionning your code is life trust me

1

u/[deleted] Mar 10 '21

Kae algebda djambic ili bele?

1

u/[deleted] Mar 10 '21

It's inevitable and you will have to use it at one point. Better to learn it now where it can really help you out. Git is great and a must for established devs but as a noob, it really saves our bacon.

1

u/hephaestusness Mar 10 '21

The number one thing you are showing to employers is the history of using Git property. Git is underneath every programming project, and demonstrated experience in version control techniques is required to be a productive developer.

1

u/nizzok Mar 10 '21

Yeah, learn now and get into muscle memory this is industry standard

1

u/shizno2097 Mar 10 '21

A piece of advise... You can use got for more than your programming classes, say you can use it for an English class to do your papers, if you take notes on your computer you can put those into git, just make sure you use a private repo (don't want anyone to find your English paper on git and steal it)

1

u/WillBeTheIronWill Mar 10 '21

I wish I had when I was told 3 years ago... not too early or simple to start!

1

u/YoungCytla Mar 10 '21

It’s so funny when i look back at my first year of college, my git is filled with elementary code like how to check anagrams etc

1

u/Kohana55 Mar 10 '21

It's mainly because Git is a pain in the arse to get your head around. You'd be far more attractive a hire if your head is already wrapped around it.

It'll save them weeks in correcting your Git messups that you will certainly make.

I use SourceTree for a nice desktop app to interact with my Github account. Check it out dude!

1

u/crunchybucket86 Mar 10 '21

There's no rush, don't make one if you don't want to. Recruiters dgaf anyway. You're just a commission to them

1

u/tribbans95 Mar 10 '21

I’m doing my first project working with a team on bitbucket but I believe it serves the same purpose as GitHub. I like it more because it is compatible with Jira and you can make kanban/scrum boards. As well as posting issues you find within what you’re working on etc. It’s similar to GitHub in the sense that you push whatever you’re working on to the repository and it can be reviewed by your team and eventually moved to the master branch after it is fully reviewed and ready. He just wants you uploading your own projects to GitHub to get the hang of pushing your work from your code editor to a repository. But eventually when you work on a team is when it actually becomes helpful

1

u/badger_42 Mar 10 '21

There are a lot of reasons that people have touched on. The github student developer pack is excellent as well and gives you a lot of freebies that will benefit you in your degree and for projects. The free jetbrains licenses alone are awesome.

Having a private repo for your assignments can really save you if you mess something up, have a hardware failure, or want to try a different OS.

And you will have group work and will need to use git for these. Learning the flow will make it much easier when it comes time to collaborate.

1

u/[deleted] Mar 10 '21

Make an account it’s a good place to organize your code and also learn from others code !

1

u/echoaj24 Mar 10 '21

One big regret I have was not learning GitHub earlier. You will be working on group projects later on and if you know how to use it well, you will have no problem collaborating with your peers. Plus we use git all the time at my work

1

u/Jellycar1 Mar 10 '21

Github is fantastic to document your work progress, your school progress, even hobby projects. I am a student and I do it very well. This way I can explain my progress when interviewing for a job in my IT area :)

1

u/_Will_Rice Mar 10 '21

No one can know everything in this industry, so documenting your journey from the beginning will show future employers the rate at which you learn new topics. This is way more important.

1

u/Zalenka Mar 10 '21

Even just local git repos are helpful. It's essential.

1

u/RedCloakedCrow Mar 10 '21

Don't be afraid to make your beginner code public too. Just because it's simple doesn't mean it's bad. When someone looks at your profile, what do you think they expect to see from a new programmer? Full stack applications with a complex front and resilient back ends? No, they expect to see FizzBuzz, basic file scanners, and learning exercises.

1

u/Jake0024 Mar 10 '21

Three reasons:

  • Your professor told you to

  • It will look good on your resume to have more repos and longer git history

  • It's good practice

As an aside, drop the "this is too introductory to be worth my time" attitude. It won't do you any favors.

1

u/[deleted] Mar 10 '21

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?

I'm struggling with that right now after working for 3+ years. Your'e not expected to know/remember how to do anything since that changes day to day, and the technology, frameworks, languages will probably be different in 3-5 years anyway.

You are expected to learn how/ google for tutorials/ cheatsheets or figure it out your own way.

The main thing to learn are design patterns like semaphores, client-server, getter/setter, factory, observer, etc. You will unknowingly reinvent most common design patterns and knowing them takes the cognitive load off.

1

u/istarian Mar 10 '21

The best reason imho is that it's an easy way to demonstrate that you have:

  1. some actual experience with revision/source control

  2. actually written code outside of classwork

  3. been doing something industry-related while still at school, not employed yet

  4. real experience taking ideas and realizing them without substantial external guidance

1

u/deux3xmachina Mar 10 '21

I'm currently involved in interviews and I've had this conversation with some college students/grads. I don't care if it's ugly unfinished code, I want to see how you reason about problems and you simply can't do that with a resume and even if we have you whiteboard some problems it's not going to be representative of your actual work both due to interview stress and the fact that we will never deploy fizzbuzz.

Also, just getting familiar with DVCS tools is going to be important, I've spent several days teaching devs how to better use their tools, the less hand-holding you need on the basics, the better.

1

u/arguis343 Mar 10 '21

Personally when I started using GitHub, I mainly used it so I could work on my class homework on both my desktop and laptop easily. Just sync the repo and I'm good to go with the latest changes no matter where I was working.

1

u/__dict__ Mar 10 '21

You'll also really benefit from using git even if it's by yourself. All of a sudden something that you had working doesn't work anymore? Git can show you what you've changed and let you go back. Accidentally delete something? Go back. Laptop hard drive fails mid-project. You don't lose everything.

1

u/D_r_e_a_D Mar 10 '21

Programming isn't necessarily a lone man's job. Sure, when you're doing some personal projects it may feel like that but just make a GitHub account to see what kinds of software gets built, how it gets built, how to handle version controlling and really dive into programming as a whole with projects that are done collaboratively.

I'd also recommend opening a GitLab account tied to the same GitHub account to get used to that workflow as well, optionally.

1

u/[deleted] Mar 10 '21

I don't know. It is just a good advice to have a place to keep your projects (also free backups). The place shouldn't be Github specifically. You could use other places like Gitlab, Gitea etc. You can share your work no matter the place

1

u/RushinRusha Mar 10 '21

Well don't make your shit-code public then.

Version control is important

1

u/9acca9 Mar 10 '21

"Hello world" is valorated in the market!

1

u/Silent_J_ Mar 10 '21

This is an opportunity to not just learn coding a language but learning the flow and process that surrounds software development and collaboration. Managing a repository, branching your projects, code reviews and commits, roll backs and hot fixes. Question everything, but never turn your back on an opportunity to learn more.

1

u/[deleted] Mar 10 '21

yes 100% learn to use it well you will save hours of time.

1

u/vanitaraj Mar 10 '21

Yes, that's true. You can get valuable code guides from Github. You can learn good knowledge from there.

1

u/__Genkai__ Mar 10 '21

I am 3 months into(and 3 days away from the end of) my first sem (Covid messed up the schedule a little) of college and I have done an image format converter in C an MP3 player in python as parts of graded group projects... Believe me you're gonna want to boast when you do that. It does take time to get used to git and GitHub (at least it did for me) and it's much much easier to Collab with people be it on open source projects you are working on or group projects for any course... It's also useful to keep all your projects in one place. I also dumped all my programming and verilog assignments onto GitHub in neat folders( XP) it does give you a sense of achievement if nothing else looking at your work in all its glory even if it's not much now :)

1

u/tingarin Mar 10 '21

Git flow training and its a great way to showcase your work in your resume or LinkedIn

1

u/suppordel Mar 10 '21

I'm a bit more advanced than you (e.g. instead of reading a text file I'm reading MySQL data) and I also feel it's too simple to upload to GitHub. Upload anyway, the point isn't that your code is actually useful to others, but to show that you know how to code. There's no way you are going to compete with companies or open source code teams because not only are they experts but they also have multiple people working on it. But that doesn't mean you're bad.

1

u/AmbientEngineer Mar 10 '21

I use Google Sync in conjunction with GitHub.

Quick story, I had a computer stolen. I hadn't pushed my local repository before it was stolen. Google Sync backed up the hidden directory that GIT uses to store all of your commits.

Disaster diverted.

1

u/drgut101 Mar 10 '21

Learn GitHub, put every project in there, that will show your progression and teach you GitHub. You can always hide things you don’t want to be public later.

It’s fun to see your first trash html/css page vs your current project. Make you feel good about your progress.

1

u/Xxtexmex Mar 10 '21

GitHub is used very commonly in organizations that do software development. The more you get used to using this website the easier it will be for you when you transition into the job field. Your professor is most likely encouraging you to put everything in there so you get used to using the site and making changes etc. rather than for the purpose of uploading “impressive” code.

1

u/[deleted] Mar 10 '21

it's experience upload every project you do it looks good on a resume.

1

u/jenkstom Mar 10 '21

I used to be like you. Then I dropped out of college. Then I had to live my life anyway. My advice is to focus on your goals and maybe figure out why it is you're getting so distracted by this question. For me it was ADHD and some other things. For you maybe it's something different. But this kind of thing won't make your life better. At all.

1

u/wenxichu Mar 10 '21

I really should get around to making a GitHub account. My professor's course notes and assignments are all being uploaded there.

1

u/Failhoew Mar 10 '21

I dident use git until i started working, i made all newbie mistakes in a professional environment, I would have rather made them working on my shitty console app i made in school.

1

u/Chaos-Seed Mar 11 '21

Bc programmers never have free time so you’ll be ordering out a lot

.. wait

1

u/BlackWidowStew Mar 11 '21

I'm also new to coding and want to know the depth of knowledge I needed from github. Thanks for asking this question.

1

u/Cheezmeister Mar 11 '21

The short answer is “so you can get the username you want” (I’m not salty somebody else yoinked @cheezmeister on Twitter years ago I swear)

The long answer is encompassed in other replies but can be summarized “to establish a presence as a developer in the global community “

1

u/[deleted] Jun 23 '21

Follow me on GitHub and make me reach 100 followers

https://github.com/ghulamghousdev

1

u/[deleted] Mar 10 '21 edited Mar 10 '21

Theres no reason not to setup an account. Learning how Git works sooner is better than later. You dont necessarily need to upload small projects all the time. What you can do however that's maybe more practical is make your own personal projects and upload those instead.

Edit: Ok thanks for the downvotes for whatever reasons. Christ the reddit programming community is awful. Piss off.

1

u/400lb6foot7blackman Mar 10 '21

You’re gonna be sitting there 2 years working at like fedex and not have a job and your laptop is gonna get stolen and you’re gonna be like “damn I should made a GitHub and stored all those programs” like I am now that my laptop hit a memory error. GitHub is like writing a book for programmers. You can be sitting there jerking off one night and be like “I wanna review some networking rn” and pull it up on your phone with cum on your chest. It’s like Nike just do it.

1

u/nononoko Mar 10 '21

Have you used git before? Git is the de facto SCM today - learning it will give you an advantage and make you a better developer.

1

u/Art4MeNu Mar 10 '21

I consider github like facebook for coding. It's not necessary but you will be interfacing with it in the future if you continue to program. It helps a bunch and people like to reference it a lot. I have projects on mine from years ago plus it's kinda fun to track your progress. I remember making landing pages and now I am writing simple express servers for raspberry pis

1

u/indepthis Mar 10 '21

Working on a school project and your computer gets stolen or goes FUBAR, do you want a backup of your code? Use GitHub.

1

u/ArrakisUK Mar 10 '21

You should use git is a de facto standard and need to learn how to use by heart. But you don’t need to have a GitHub necessary, you can use other alternatives like bitbucket if you wish and also I recommend to use private repositories, so you can control what do you show to others, also depending of the project you should want to maintain private too.

1

u/samuelcbird Mar 10 '21

Next week you might be making a command line hangman. That’s definitely worth using version control with.

So start playing with git on your machine now, and figuring out the basics and then you can start uploading your projects as soon as you’re making something more complex than “Hello, world”.

When i starting teaching myself i had no idea about version control and i even backed up a load of code on a hard drive. I found that folder the other day and laughed at how stupid it seems now.

Also, upload your ‘hello, world’. To be fair you can keep it private or hide it, so whats the harm!

Happy developing!

1

u/CraptainHammer Mar 10 '21

I did not get the same advice you got. As a result, I didn't learn git until it was required of me, which didn't come until year 3 when the classes start to get difficult. If you're not gonna use GitHub specifically (no reason not to though) then at least install git on your computer, set up a local repository, and use git to work on your projects. Learn it now while you're assignments are laughably easy or you'll have to learn it when they aren't.

1

u/bedHeadProgrammer Mar 10 '21

Do it! Make all your school projects public. You will thank yourself in the future when job hunting. I lost all of my school projects from switching computers after college. It really burned me when I went looking for a job and had nothing to show for my skills. Companies don't care about your diploma, they care if you have skills and can prove those skills.

1

u/gdledsan Mar 10 '21

Git is noy really for showcasing anything, you could make all your projects private.

However, git is a very relevant tool si you need to learn it for your solo projects and also ti collaborate with people, that si the important thing.

Have a look at the different git services, I know of github, gitlab and gitea, choose the one that make you feel comfortable, read their policies check their features.

1

u/lookayoyo Mar 10 '21

Not just a portfolio, it’s a tool. Learn to use it because it’s more useful than you realize

0

u/rhade333 Mar 10 '21

At this point, it's not about posting code for others to see. It's learning the workflow, and the way things work together. Git / GitHub are important tools, and you shouldn't put off learning them. If you really are that sketched out about people seeing your growth, set your older repos to private or remove them when you get closer to graduating.

0

u/Spartanman321 Mar 10 '21

GitHub is an industry standard tool, so if you learn how to use it, you're setting yourself up for success.

While it may feel like overkill for simple projects, having GitHub and committing changes allows you to track the changes that were made. This is incredibly powerful because you can see how the code progressed over time, and get a better context for why a certain bit of code looks the way it does.

You don't have to share the smaller repos that are simple assignments. But it's not a bad thought to have a single repo for your class, with multiple folders. That way you can have all of your projects together and saved off on the GitHub server.

Oh, that's another pro. If your PC crashes, GitHub acts as a code backup. You can re-download your code onto your new machine, so you don't have to worry about losing old projects or HW for the current semester.

-1

u/jluizsouzadev Mar 10 '21

Just do it asap!

Having a Github account will allow you contribute with some code for others repos hosted on Github. On the other hand, to know Git and Github is an absolutely essencial skill when applying for programmer jobs.

0

u/a1Stylesca Mar 10 '21

Maybe someone mentioned this, but GitHub has an activity bar on your profile. See link for image:

https://github.com/gelstudios/gitfiti

That said, regardless of the type of projects you are working on, it is still showing that you are active and engaged in programming. I bet 99% of people are looking to this rather than sifting through your projects anyhow.

0

u/chessset5 Mar 10 '21

It’s like credit, it’s always better to start early