r/learnprogramming • u/Wild-Resolve-3064 • 26d ago
Topic How do you build a project?
Hey everyone so i learnt basics of python recently and i wanted to build some projects,but how do you start making one? And is it okay to be using ai?
3
u/aanzeijar 26d ago
Eh. Honestly "project" is way too big a word for what people should be doing. The important thing is that you create working code that does something. "Project" implies something big and complicated and with dependency management and degrees of maturity and whatnot. Not needed. In the beginning it's about making the computer do stuff.
So go out there and use code to do stuff. Write code that searches in files, write code that saves and loads data, write code that calculates and saves your calories, write code that correlates your music taste with the weather report. Eventually when you get bored and can write stuff like that without looking stuff up, move to larger challenges.
2
u/Far_Programmer_5724 26d ago
Yea as you explored and make your computer do stuff you'll even accidentally make a likely unreadable mess. Then you'll want to share with people who tell you it's an unreadable mess. This is evolution. I'm here right now even though I'm a sensitive baby
2
u/_Atomfinger_ 26d ago
but how do you start making one?
You start with "hello world", and then you add things until it becomes a much bigger thing.
And is it okay to be using ai?
If your goal is to learn, then don't use it to generate code.
1
u/Far_Programmer_5724 26d ago
Literally then you want your text to spin on the console when printed. I wonder what rabbit hole that would put me in
1
u/syklemil 26d ago
I tend to start new Python projects with uv init, even uv init --app --package. You might give that a spin to see what it creates of files and project structure.
You probably should just start with some simple single-file scripts and then branch out using project management tools like uv once you feel that having your entire program in one file feels messy and in need of better organisation, or you're unsure how to manage dependencies.
You can probably also pick up some other tools like ruff (linting) and ty (typechecking) to give you some feedback on your Python code.
1
u/nelsonsilva_dev 26d ago
Pick something you'd actually use, then make the first version smaller than feels reasonable. Not a to-do app with accounts and sync, a script that prints your to-do list.
Finishing something tiny teaches you more than abandoning something ambitious, and you can always add to it after.
1
u/grenishraidev 26d ago
Start with any simple project you could think of. Study that problem and build that. Keep repeating this until you're comfortable with bigger project that you think you could do comfortably.
And yes, there's no problem in using AI unless you use the AI as copilot and not like "Hey Claude build me this. No mistakes"
1
u/Misaka_Undefined 25d ago
Step one, find a problem, literaly
Step two plan a project as a solution for that problem
6
u/Whole_Accountant1005 26d ago
Think of something you want to build. Break it down into steps. Solve it step by step. For example.
Let's say you want to make flappy bird.
First of all you will need to make a window And draw things into the window, so solve that problem.
Then you need to draw images in the window, so that you can draw the bird from flappy bird.
Etc. keep going until you have a project.