How I think game design should work

We have all been in the stage where we think that it should only take us a few hours to have a large portion of our game done, but this is not the case. Regardless of how many times you have made something, it is not efficient to go around and copy-paste code from other projects, and most of the time, you will never want the exact code. I’ve had bugs that take me hours to fix, not because I am inexperienced, but because something unexpected happened. For example, right now I am working with a bug where my code does not work properly because of the delay between the client-server sync, I have been working on this bug for 3 hours now.