Re: Splitting packages in per-procedure separate files



Francesco Bochicchio <bockman@xxxxxxxxxxx> writes:

What I have is an application consisting of a dozen different
packages. Now the standard mandates:

- one name_package.ads for package public declarations
- one name_package.adb for package private declarations (including
separate declarations for all procedures)
- one name_package-name_procedure.adb for each procedure in the package

Some of the coders have actually followed the standards, some have not,
putting all the procedure code inside the name_package.adb file. Now I
have to split these files ( about half of the packages, so probably 10000
line of codes, not the 20000 initially stated ).

In general, I approve of organizations enforcing coding standards;
they increase overall productivity.

However, in this situation it's appropriate to consider whether this
coding standard should be changed instead.

If the process you are supposed to be using doesn't actually increase
productivity, or your bottom line, you should change the process in a
way that does. That is _required_ by CMMI, and definitely in the
spirit of ISO 9001.

What is the rationale for putting _every_ procedure in a separate
file?

Why do some coders choose to not follow the standard?

I have very few separate procedures in my applications. I had more in
Ada 83 code, but child packages are in general a better solution to
organizing code.

--
-- Stephe
.



Relevant Pages

  • Re: Constrained Random Verification with VHDL
    ... I suppose there should be separate ... identifiers is not in keeping with current ieee standard packages. ... but I do not recommend naming conventions that use ...
    (comp.lang.vhdl)
  • Re: Constrained Random Verification with VHDL
    ... I suppose there should be separate ... RandomBasePkg to allow the seeds, ... identifiers is not in keeping with current ieee standard packages. ...
    (comp.lang.vhdl)
  • Re: Splitting packages in per-procedure separate files
    ... I now have to split the packages of a 20000 LOC ADA program, ... single procedure per file (using the separate clause). ... application consisting of a dozen different packages. ... one name_package.adb for package private declarations (including ...
    (comp.lang.ada)
  • Re: Splitting packages in per-procedure separate files
    ... Now the standard ... one name_package.adb for package private declarations (including ... At least the task of putting your separate procedures into files can be done automatically by GNAT. ...
    (comp.lang.ada)
  • coding standards question and RFC
    ... proposed standard for choosing identifier names, ... packages, when not used as a class ... leading underscore, e.g., $obj->_as_string. ... standard as for subroutine-scoped lexical variables. ...
    (perl.beginners)