10-28-2003, 09:35 PM
In a recent discussion, someone asked if FlowCharts were out of style. This prompted an off-forum discussion between myself and a few others in here about how we approach a new project. Some of us just sit down at our keyboards and start writing..... while others plan their work in advance, in varying degrees. Obviously, there are many different ways to go about writing a program in QBasic, (or any other language).
As for me, I use a highly structured and planned method for writing my programs. Most of my work is actually completed on paper (or on a LOTUS spreadsheet) before I ever begin coding. I start out with formally defining the problem... then move on to required inputs, processing steps, and desired output. Next I do a rough flow-chart, then a detailed flow-chart.... and finally a Code / Screen Display Sheet. The work actually done within QB71 is largely limited to bulk typing the program from the code sheet into the computer, and compiling it. It's the old method taught by IBM back when computer time was wildly expensive, programmers were relatively cheap, and error codes were insanely cryptic.
I'd guess that something similar is still taught to student programmers in colleges.... and they all roll their eyes with disdain at how clunky it is.
I use this method for the following reasons:
1. It enables one to trace logical flow easily, and detect those unforseen multiple loops that we all love so much.
2. It allows me to draw and visualize the screen outputs very quickly. This works well for text out puts .... but I don't do graphics, so it may not work for everyone.
3. It frees me from having to sit at my keyboard for a long time. I can take my notebook anywhere, and work in any comfortable position that I choose. (I guess I could use a laptop for the same thing..... but I don't have one.)
4. I'm set in my ways, and been doing it this way since Nixon was president....and yes, I have short hair, and wear white shirts...... but I don't wear plastic rim glasses. I have small wire frames, like John Lennon. ( Actually, this is probably the REAL reason I do things the way I do! )
So..... That's the "IBM /Dave / Nixon Era" approach. What I'd like to know is how YOU guys approach a new program. Do you keep it all in your brains, and just code it directly? Do you plan your work out? How do you do it?
Dave
As for me, I use a highly structured and planned method for writing my programs. Most of my work is actually completed on paper (or on a LOTUS spreadsheet) before I ever begin coding. I start out with formally defining the problem... then move on to required inputs, processing steps, and desired output. Next I do a rough flow-chart, then a detailed flow-chart.... and finally a Code / Screen Display Sheet. The work actually done within QB71 is largely limited to bulk typing the program from the code sheet into the computer, and compiling it. It's the old method taught by IBM back when computer time was wildly expensive, programmers were relatively cheap, and error codes were insanely cryptic.
I'd guess that something similar is still taught to student programmers in colleges.... and they all roll their eyes with disdain at how clunky it is.
I use this method for the following reasons:
1. It enables one to trace logical flow easily, and detect those unforseen multiple loops that we all love so much.
2. It allows me to draw and visualize the screen outputs very quickly. This works well for text out puts .... but I don't do graphics, so it may not work for everyone.
3. It frees me from having to sit at my keyboard for a long time. I can take my notebook anywhere, and work in any comfortable position that I choose. (I guess I could use a laptop for the same thing..... but I don't have one.)
4. I'm set in my ways, and been doing it this way since Nixon was president....and yes, I have short hair, and wear white shirts...... but I don't wear plastic rim glasses. I have small wire frames, like John Lennon. ( Actually, this is probably the REAL reason I do things the way I do! )
So..... That's the "IBM /Dave / Nixon Era" approach. What I'd like to know is how YOU guys approach a new program. Do you keep it all in your brains, and just code it directly? Do you plan your work out? How do you do it?
Dave