Coding Horror: Pseudocode or Code?
codinghorror.com
codinghorror.com
I think English is most useful when used to express test cases. Such statements usually convey about the same information as pseudocode, but are a lot easier to follow.
Take one of the pseudocode examples from the article:
set the default status to "fail"
look up the message based on the error code
if the error code is valid
if doing interactive processing, display the error message interactively and declare success
if doing command line processing, log the error message to the command line and declare success
if the error code isn't valid, notify the user that an internal error has been detected
return status information
All this really means is... for interactive and command line uses:
produce the message for an error code, or raise an internal error
You can still infer a program from this, it's just that a lot of details are implied. // express agreement
echo "I agree.";