My recent biggest problem is that i start coding a problem to soon. Like in my head an idea that should solve a problem will work but when i start actuall coding i often realise that it wont at all. Also this process of realising can be quite time consuming. To fix this i tried to divide a problem into supbroplems and think about every part individually, how i would do this in code. But even then i often miss some small detail and solution falls apart. Any pro tips how i can fix this? How are you guys dealing with this? At what point do you realize that you are ready to code a solution?