Coding vs Writing - which is the dull mechanical skill?
You start off with a set of results you want to achieve. These depend on each other and on external factors. You arrange them in the correct logical sequence, reference the external factors, and connect everything together. If this doesn't produce the required output, you go through making adjustments and re-ordering until it does. Finally, you make sure that it's all syntactically valid and easy to follow.
A generalised description of coding, or possibly of journalistic writing. (If you're a great author there's probably a bit more to it, though I love the idea of Finnegan's Wake as the literary equivalent of obfuscated Perl.)