When I learned programming the idea was first draw a flowchart, then code it. I wonder if anybody does that any more.