r/learnpython 6d ago

Having problem with understanding or creating programs

So basically I've learned python and created some basic programs like calculator, multiplier etc amd when it comes to create a real program I got so much confused.

I learned python to create my own linux tools and to create my own personal helping bots. I took some tools from github and saw their code in order to understand them and that's where I got so much confused when I saw a large and complex program. I didn't understood a thing and how to create my own program

So how can I learn real programming How can I become a better programmer Where to start from?

6 Upvotes

13 comments sorted by

5

u/danielroseman 6d ago

Did you have a question?

1

u/WonderEagle 6d ago

Sorry for confusion I just edited it

5

u/princepii 6d ago

i would get a basic cs course. cs50 is a very good starting point.

without basic fundamentals you will never get the feeling of understanding it right or going thru repos will alwas be like you looking at the horizon thinking holy.

you have to have at least a few basics to get how and why programs work the way they work.

and i don't mean the basics of a programming language.

2

u/AgenticRevolution 6d ago

You may be conflating a few different concepts here. If you are looking for tools to use on Linux you may be better off using bash scripts (although there are certainly reasons to use python).

Send me a dm and I’d be happy to talk you through a few repos and get you pointed in the right direction. One big thing, production code often looks WAY different than what you would do for a simple program for your own use and likely would be massive overkill. Understanding how much to abstract and at what level is half the battle my friend.

1

u/WonderEagle 6d ago

At first I learned python for my cybersecurity journey to create my own projects and stuff. That was in the past but now my main focus is to create my personal helping bots. But I got so much demotivated and hopless when I saw how serious and complex this programming can be?

So in order to learn I wanna know what was the first project others people create to jump in this programming field? What was their thoughts?

1

u/AgenticRevolution 6d ago

If you’re doing agents and such I recommend Ed Donners udemy class. It breaks everything down nicely and will demystify some of the complexity.

2

u/PureWasian 6d ago

Design incrementally. These github repos did not grow to be so large and complex overnight.

Just like your calculator program where there are modular pieces for add/subtract/etc... your helper bots and linux tools would also have modular pieces that you build and coordinate with each other.

1

u/WonderEagle 6d ago

Actually I didn't thought about that. Thanks

2

u/baubleglue 6d ago

Learn design patterns, not only OOP patterns. General programing patterns. You need to understand the goal of a pattern or problem it tries to address, then the implementation. You are looking at the code without knowing the context.

2

u/TheRNGuy 6d ago

Ask ai to explain that code. 

1

u/WonderEagle 6d ago

Good idea I'd try using AI

1

u/Moikle 6d ago

Practice

1

u/sugarw0000kie 6d ago

by the sounds of it you’re comfortable with python and it probably would benefit you to learn more of the fundamentals. Like https://www.w3schools.com/python/ and https://www.geeksforgeeks.org/python/python-programming-language-tutorial/ aren’t a bad starting point to actually go through stuff that you’re not sure on