This is a good creative approach to coding from the web:
"Writing Code from Scratch
- Write down clearly what the code should do
- Sketch it out – on paper and in pseudocode (human language)
- Translate each step into code one line at a time
- Iterate - refine the code to make it more efficient"
Does anyone have any other approaches?
Well yes, the layer cake approach is a bit idealistic. In the real world we have the sherry trifle approach
- Steal the 100 lines or so of code that do the actual work.
- Start adding UI elements at random
- IF (stuck) LAUNCH StackOverflow
- When the UI elements start interfering with one another, call it a release.
- Immediately stop working on this and start on a completely different project.
Maybe there’s a meringue approach as well:
- Get some old, formless legacy code.
- Apply a hot new coding style to create a firm wrapper.
- Release it as a piece of solid object-oriented software for the OS.