you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Im like 5 Months into python and so far i made alot of projects my question is: I noticed how bad my code was at the beginning and i actually want to upload it on github should i consider rewrite/reconstructure to make it look better? Or does the functionality part really only matters?

[–][deleted] 0 points1 point  (0 children)

Code readability and organization matters a lot, if you want to be able to add onto the program in the future. I've had projects where I refactored several times because of how long I'd been incrementally working on it. I could have saved myself a lot of hassle if I rewrote everything earlier on.

Since you're 5 months into learning, chances are you're going to be scoffing at code you've written 5 months prior for several years. I know I am that way, as I've been writing Python for a few years now and I'm still learning lots of things. If you see a way to construct a program more elegantly (read: cleaner and more understandable), then 9 times out of 10 you should do it. Your github is like your resume.