What’s wrong with software today? – straight-line coding. . .

Straight-line coding can be described as the tendency of novice software developers to code from start to finish for each set of circumstances. The straight-line code employed by developers is in some ways similar to greedy algorithms. The developer has a vague picture of the finish line, but does not possess a plan. From the perspective of “where I am” and “where I think I need to be”, the best course of action is to take one step in this direction. The major difference between greedy algorithms and straight-line coding is that greedy algorithms analysis is based on short-term best solution, whereas straight-line coding focus is solely on a direct path from start to finish.

Novice SD developers are often overwhelmed with the information and cannot process effectively.  They do not decompose the requirements into smaller tasks and subtasks.  Straight-line programming does not incorporate decomposition in the thought process; it is simply the process of driving from point A to point B.   This process is repeated until the developer considers all viable contingencies are covered.

About Basil

Basil has over twenty years of programming experience from a wide variety of industries including warehouse distribution, insurance, state licensing for trucking industry, and discount retail. Programming language experience has predominantly been for IBM’s AS400 platform – CL, RPG, COBOL, Queries, Managed Queries, APF, SQL, Synon, Visual Basic and C++. He obtained his masters from the University of Mary-Hardin Baylor in 2007.
This entry was posted in Software Dev - General and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *