Meditech NPR Reports / NPR Report Writing / NPR Report Writer / Meditech NPR / Non-Procedural Report / Meditech Consulting / Meditech Reports IT TidBits: Functional Cohesion (inspired by P.J. Plauger)

November 30, 2005

Functional Cohesion (inspired by P.J. Plauger)


When you can describe a module of code in a simple sentence, then you probably have a re-usable piece of code that will be around for awhile.

Routines with descriptions like "TOTAL.AND.PRINT" indicate that the routine does not do one thing and do it well. A more useful and maintainable implementation of this code would separate the TOTAL & PRINT logic into two different routines.

Changes to the new routines TOTAL & PRINT should be improvements that benefit all users of the new routines.

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home

Meditech NPR Reports / NPR Report Writing / NPR Report Writer / Meditech NPR / Non-Procedural Report / Meditech Consulting / Meditech Reports