• Best way to approach problems,

I could really do with some advice on a structured way to approach each problem. I am new to programming and am normally pretty disappointed when I start to look at other peoples solutions. Sometimes I get something fairly tight, but often I end up with a clunky piece of code that evolves from the wrong starting point. Are there any good online tutorials that would look at code planning.