r/Coding_for_Teens • • 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 Upvotes

15 comments sorted by

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/Nutellatoast_2 9d ago

Thank you; I might look into that. But why shouldn't I think about the time? Isn't it always better to have some sort of deadline to speed up your work and be more productive?

1

u/Some-Comparison4863 9d ago

not always in start your brain need to build everything and start to get it natural sometimes trying to do it faster making you do it slower just have fun put the music on or be in quite room and have fun doing it coding is about fun dont destroy your motivation for doing it faster have fun and create your own things

1

u/Nutellatoast_2 9d ago

Thanks a lot! I'll do that. I never thought that this is much more important.

1

u/Some-Comparison4863 9d ago

happy to help if you want we can always be partners and I can connect you with some people who can also help you develop your skills

if you want to be partners dm me on private

1

u/Nutellatoast_2 8d ago

Sorry for replying 2 days late. I will look through it. Thank you!

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/Nutellatoast_2 9d ago

For my Tic-Tac-Toe.py project, it is actually displaying the marks from both the player and the AI. I have so many great solutions if I'm seeing my imperfect code, which is working, but I can't be satisfied with it.

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/Nutellatoast_2 7d ago

That's exactly what a professor told me today when I explained to him about my current problem. Just make it work; the other features or beautification 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