In my experience, you'd better understand the problem and context first before coming up with a solution. It's better to think about what solution should be built before building it. And it is desirable to test the result before putting it into operation. That is why I chose the
waterfall model in software engineering. You might also find this information useful.