Campy Happer <[EMAIL PROTECTED]> wrote:
... In the bad old days of programming,
>before subroutines were even available,
>people used to write "spaghetti code", which
>was an unreadable, unmaintainable mess of
>"goto" statements.
>...
>C++, with its multiple inheritance,
>templates, and vastly bloated class libraries
>such as STL and Boost, which permit and
>seem even to require illegible coding practices
>in which 5-deep derived classes are not
>unlikely, has led to the C++ equivalent
>of spaghetti code.
>
>But how to describe it?

In the one and only true way. The object-oriented version of
"Spaghetti code" is, of course, "Lasagna code".  (Too many layers.)

I have used that expression for years, but so far failed to obtain ISO
certification for it, or have it included in Webster's dictionary...

It goes without saying that any good chef can cook both Spaghetti and
Lasagna codes in either C or C++.  (If using the later I would
recommend inheriting  from the Pasta abstract base class.)
-- 
Roberto Waltman

[ Please reply to the group,
  return address is invalid ]
_______________________________________________
gnu-misc-discuss mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-misc-discuss

Reply via email to