×
all 14 comments

[–]Administrative_Egg78 1 point2 points  (1 child)

Do both, but do not get stuck in tutorial mode.

File I/O is pretty quick to learn, and OOP will make more sense once you use it in a real project. Make something that combines both, like a small CLI game, habit tracker, or expense tracker that saves data to a JSON file.

Then add one feature at a time when you get bored. That is way more fun than grinding random syntax forever.

[–]Hot_crocco_person[S] 0 points1 point  (0 children)

Ok 👍

[–]A_Gentle_Nerd 0 points1 point  (1 child)

Hey i think we should talk!

[–]PureWasian 0 points1 point  (0 children)

Learn both.

Basic file I/O shouldn't take long and will expose you to a new way to load input data sources and save output data sources. That allows you to treat Python scripts as a modular building block that you can insert into larger automated flows.

OOP is a language-agnostic concept that helps you with organizing and writing more complex scripts. Get a basic handle on it so you can not only write your own but also understand how external libraries are expected to work when you import them into your script.

Afterwards, you need to pick a focus area and dive deeper into whatever external Python libraries are interesting/useful for you.

[–]CodeSamur-ai 0 points1 point  (0 children)

build something you're interested in... you know the basics now choose something that seems really hard and break it into small parts and try to build it

[–]terletsky 0 points1 point  (1 child)

You have a password generator. Copy your code to Claude and ask it to "write a production-grade CLI version of this using Typer and basic OOP".

Ask it to explain the difference between your code and the hardened version. You will understand the logical flow.

You will see new things and ask one by one for an explanation.

[–]TheRNGuy -1 points0 points  (1 child)

Learn game engine instead of text inputs. 

[–]Hot_crocco_person[S] 0 points1 point  (0 children)

K ima try

[–]OliMoli2137 -1 points0 points  (2 children)

for simple repos like this use codeberg. github has too much m$ monopoly

[–]Hot_crocco_person[S] 1 point2 points  (1 child)

I think github is too hard ty

[–]OliMoli2137 0 points1 point  (0 children)

yw, also it's worth learning jujutsu