Jackson structured programming: Difference between revisions

Content deleted Content added
OAbot (talk | contribs)
m Open access bot: doi added to citation with #oabot.
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
Line 16:
The JSP version of the program is structurally equivalent to
 
<sourcesyntaxhighlight lang="java">
String line;
 
Line 30:
System.out.println(firstLineOfGroup + " " + count);
}
</syntaxhighlight>
</source>
 
and the traditional version of the program is equivalent to
 
<sourcesyntaxhighlight lang="java">
String line;
 
Line 53:
System.out.println(firstLineOfGroup + " " + count);
}
</syntaxhighlight>
</source>
 
Jackson criticises the traditional version, claiming that it hides the relationships which exist between the input lines, compromising the program's understandability and maintainability by, for example, forcing the use of a special case for the first line and forcing another special case for a final output operation.
Line 133:
If we put all this together, we can convert the diagram and the primitive operations into C, maintaining a one-to-one correspondence between the code and the operations and structure of the program design diagram.
 
<sourcesyntaxhighlight lang="c">
#include <stdio.h>
#include <stdlib.h>
Line 159:
return EXIT_SUCCESS;
}
</syntaxhighlight>
</source>
 
== Criticism ==