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

25

u/SirMarbles Jun 09 '20

I usually put my finished projects on it.

https://github.com/SirMarbles/

It’s a good way to see your progression as a programmer

16

u/CaptSprinkls Jun 09 '20

I have been off and on learning programming ever since I graduated college. About 2 years ago I sat down and decided to learn C++. My first application was a tic tac toe game. I shit you not, it was 1000 lines of code.

Sad times....

3

u/SirMarbles Jun 09 '20

I’m a CS major. If you don’t mind. Can I see the code? The next language I want to dabble in is C++.

11

u/CaptSprinkls Jun 09 '20

Oh, this is definitely not something you want to look at it you want to learn C++. I'm pretty sure a tic tac toe game can be done in like ~50-75 lines of code. Q

I got to 1,000 lines because I just did huge nested if statements.

2

u/OnlySeesLastSentence Jun 10 '20

Reminds me of the first time I wrote a connect 4 program (and best of all, it required you to be honest and take care of gravity lol).

I didn't have a plan for how to do the win cases, so I copy pasted every possible combo for a win, changing the values by one as needed. I think it was 13,000 lines in the end? Or maybe 1300, I dunno.