r/learnpython • • Jun 09 '20

Github as a beginner

As a beginner learning python, is it too early to create and start coding simple projects on Github. and how do I transfer these codes (simple calculators) to a website I build subsequently?

401 Upvotes

111 comments sorted by

View all comments

5

u/tradrich Jun 10 '20

Github is not a bad way at all to start as an absolute beginner. Unfortunately it's based on git which is not a beginner tool (I've ranted about that elsewhere - forgive me) but there's no escaping it, so you'd do well to read about it.

One option is to use gitpod.io (my interest comes from its use in education). The great thing is that it provides *everything* you need to get going - all in your browser: the latest Ubuntu distribution as the execution environment and an IDE.

So what you do is create a new Github repo - like github.com/your-name/your-project then just throw https://gitpod.io/#https://github.com/your-name/your-project into your browser's address bar, wait a bit and "hey presto" a development environment appears in your browser ready to go - no need to download or purchase anything. Not bad!

2

u/thrallsius Jun 10 '20

git which is not a beginner tool

git is a feature rich tool

if you are using simple workflows, git is quite beginner friendly as long as you learn a couple of basic concepts

1

u/tradrich Jun 10 '20

Well you can't just start branching as a beginner: you need to study for a few hours at least first. That's prudence of course - but other tools are more forgiving to those who blunder in and learn as you go. You really can't do that with git. You'll end up in a world of 'detached heads' having to work through sequences of git commands that may be making the situation worse.

But that's just how it is, since git *is* the version control tool of the world. So in terms of advice to the OP: yes, learn git now and quite deeply - it's knowledge that you will need in the future.

2

u/thrallsius Jun 10 '20

I agree, a very simple one man workflow doesn't involve branching at all. It's just making changes and recording them with git add + git commit.

Even branching is not that scary, it's usually the merging that causes troubles if merge conflicts happen.

And then there's rebase that personally I've been successfully managing to avoid until now.