80% is thinking and figuring things out, 20% is writing code; always.
Solve your problem then write code. Problems solved by writing code almost always ends up with crappy / messy code / difficult to maintain code.
The coding should be the easy bit, it's just implementing your solution in a language you know. It's basically just typying.