When I was getting into coding, I first started to just scamble together some PHP stuff because I had no mentor. Later, I learned to at least write a short document describing what you want to achieve: Set goals, estimate usages (of libraries, dependencies, technologies) and annotate a few "I could ...