On Fri, 9 Dec 2011 12:50:05 -0500, Shmuel Metz (Seymour J.) wrote:
>
>Cost per function point might have been more meaningful.
>
IMO, function point analysis measures not the complexity
of a problem, but the complexity of an imputed solution to
the problem.  Consider the Rexx snippets:

    B = if X==y then 1
         else 0
    if B==1 then whatever = string
         else whatever = ''

versus:

    B = (X==y)
   whatever = copies( string, B )

Do these contain the same number of function points?  The
former appears to contain at least one more branch than
the latter.

I have known of programmers who would never use the
value of a relational expression other than in an IF
statement.  Or who will use no construct in language
X unless language Y supports the same construct.  In
POSIX shell, they'd code:

S0
RC=$?
if test $RC -eq 0
    then S1
    else S2
fi

(and then they complain about the complexity of shell
coding.)  Where I code:

if S0
    then S1
    else S2
fi

(but it is the same number of function points.)

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to