r/Coding_for_Teens • u/Nutellatoast_2 • 9d ago
A currently self-teaching programmer needs advice
Greetings everyone!
I'm currently working on my Tic-Tac-Toe.py project to escape tutorial hell. I've been working on it for nearly 3 weeks, and I still haven't finished. I set myself a goal of finishing it in one or two days, but I wasted weeks and still haven't finished it yet... I always think about better ways of solving this particular problem and then drag myself to the brink of giving up because that "better solution" is too hard for me to program, or I still can't find a solution to it. Can anyone give me tips or advice on my self-teaching progress or what I should do now?
1
u/Some-Comparison4863 9d ago
I think sometimes the best way to do is just keep working don't think about time if you dont have any deadline just give yourself the time to learn the syntax and the programing and learn how to use the tools like AI or Githubs and things like it to give you some sort of new prespectives
it takes time to the brain to make all the coding into something natural just keep working show up daily and you gonna see that it gonna start to be more easily sometimes a partner can speed up the thinking and prespectives so you can try also to find one can be helpful for starting position like yours and can help you advance because it is way more fun to work with a partner than alone (unless you like work alone)
whether you have anymore questions you can ask here or in my private
1
u/mc_pm 9d ago
There is always a better solution. Make it work with your current technique - then reprogram it with a newer one.
Which is the part you keep rethinking?
1
u/millenniumdisk 9d ago
I created a non GUI program (terminal board game) before in C where the AI is just rolling random numbers as its move in a simple board game (pieces can only move non diagonally in one tile and eating a piece depends on the two's ranks). The code got pointers to apply single linked list as the storage for pieces instead of a fixed array and a lot of messy code because I also didn't use a lot of english (native language is used in variable names, function names, etc.) but it worked. One thing I know is that it is a long file so I should've used multiple files. It is also messy but it just means that I should be satisfied with it. It is fine if things are messy. As for me I am already glad that it worked.
Do you want to: create a readable program, write a bugless program, use complicated algorithms or create a program with a lot of features?
For me I am contented with a bugless program. The other features can come later.
1
u/sporbywg 9d ago
First: sounds like the programmers I work with too! Very normal situation to get into the middle of something complicated and 'lose your way'.
This is about your personal skillset. Improving our skillsets is what smart folks undertake. Press On!
1
u/Different-Scheme1640 9d ago
A simple rule is to make the simplest possible version of any program. Then gradually add things as you need to, if you keep planning everything perfectly you'll never complete it.
Just make it work first then improve later.
And if you haven't learn SOLID principles to write better code in general.
1
u/Chris_The_Mad_Guy 9d ago
Quieres un consejo? Reescribelo en C y optimiza eso
1
u/Arcanite_Cartel 8d ago
just implement A solution, after that you can attempt to go back and do a brtter solution