Do it. Do it badly. Do it anyway. It's the act of doing it that is important. I apply this philosophy to my programming. I don't look for shortcuts. For libraries to do my work, or an AI to magic the code into existence for me. I want to do it. The process is cathartic.
When you do it, you tend to solve just the problem at hand. Write just enough code. Avoid thinking in abstracts. Solve the actual problem, not a more generalised one.
Code is in constant change. It changes it's shape as the thing you need to do changes. You refactor when necessary, not before. You abstract when necessary, not before. The ultimate expression of YAGNI (you aren't gonna need it).
Build just what is needed, no more. Design as you go. Test as you go. Document as you go. How long will it take? Start coding it. How difficult will it be? Start coding it. Just start, the questions will be answered in their own time.
The act of programming is important. It has value. Don't think around it, or try to avoid it. Grasp the nettle and write the code. Work with it. Keep going until you are done.
Then solve the next problem.