Validate your idea. Don't write a single line of code until you validate your idea. 80% of startups can actually build no-code prototypes to test out what they are building before they actually go and dive into code. So, really don't write any code, and when it comes to validating your idea go and conduct multiple user interviews and try and sell your product before you have a product to sell and that's true validation right there.