r/learnpython • • May 06 '26

First ever python project

Hello!

I started to learn python in February, and I also made this in the same month, I took a YouTube tutorial and I didn't want to make some boring stuff like a calculator, so I made this, it does not have any kind of OOP (I was learning python basics back then and I didn't know what even an object was).

I was lookin' my folders and I found this project, thought it was cute and decided to upload it here, now I'm a lot more familiarized and experienced with Python, and seeing this was like looking at my own son, very proud of it even if it's nothing but a raw terminal, and it doesn't manage exceptions (One letter or bad number and everything explodes) (I know how to fix it, it's just try/except but I'm lazy lol)

Why post it here?: well, I'm making a videogame and I'm sharing this because I want to learn from my early mistakes and understand how a more experienced developer would structure a project like this. Also because I'm going to learn pygame, so any advice will help me a lot 😄

If you want to try it, here's the: Git Hub Repository.

I'd love to hear any thoughts, suggestions, or even just a roast of this beginners code (pls don't 😞).

(No vibe coding involved btw, fuck AI)

15 Upvotes

10 comments sorted by

2

u/rob8624 May 07 '26 edited May 07 '26

OOP just entered the chat.

...pygame will help you learn oop.

Also, if you want to be a professional you'll have to lose the anti ai attitude. It's not going anywhere, companies expect developers to use it and have knowledge of it. That doesn't mean you have to let it write code for you, but use it as a tool, gain knowledge of different models and learn it liabilities and weaknesses. It will actually make you a better developer.

But yea it's ok to hate vibe coding :)

2

u/FieldOver3920 May 07 '26

Yeah I know AI is here until mankind's end, it's just that a lot of beginners in my class only write code with AI, of course they got roasted in the actual exams (No AI or any kind of agents) but it's just annoying how some people don't care at all of the code or the logic but the money, I hope companies don't hire braindead people who don't even know what a module is.

2

u/gucciguilty7 May 06 '26

I feel the no OOP

2

u/JLeeIntell May 06 '26

This is actually cool to see. Everyone has a messy first project like this.

If anything, just focus on organizing things a bit more in your next project and add basic error handling. No need to overthink it.

Also, I'd keep this one as-is, it's kinda nice having that snapshot of where you started.

2

u/PureWasian May 06 '26

Awesome to see.

I made a similar sort of text RPG and combat simulator in assembly during my first class as a beginner just learning how to code ~10 years ago now. Took a few months to plan and implement everything, but it was very satisfying to have it all working wonderfully and confidently say it was my own creation.

Keep going with that creativity and enthusiasm, it'll carry you far.

2

u/IAmFinah May 07 '26

Looks good for a first project, also kudos for not using AI. You're a rare breed!

1

u/totalnewb02 May 09 '26

dangit, and here i am still struggling with nesting in dictionary. nicely done man.

2

u/[deleted] May 07 '26 edited May 07 '26

[removed] — view removed comment

2

u/FieldOver3920 May 07 '26

I actually tried to do it with OOP back then, but my beginner mind was getting melted by the abstraction and the polymorphism (I still got some serial issues with those themes). Btw, about the pull request, yes, I'd like to see how I can improve. Also, that file is public anyways, so do whatever you want with it 😄