English-like source code is much easier to debug.  The 64k memory limit for the TRS-80 is long gone.  Old code like this:

:
    String an = theData.get(KEY);
    if (an != null)
    {
        update(an,u);
    }
:

..should become this:

:
    String accountNumber = parameters.get(PARAM_ACCOUNT_NUMBER);
    if (accountNumber != null)
    {
        registerAccountAccessed(accountNumber,user);
    }
:

It doesn't matter what language you are working in, Java, C# or PHP: source code that reads like English is easy to comprehend.

blog comments powered by Disqus