Mike Coughlin's Gravatar Mike Coughlin's Profile

About Me:

Last 10 Comments

1

... all swell - in theory. Arguing against code re-use would be like arguing against motherhood and apple pie. Like most things in life, the devil's in the (implementation process) details. We'd all like to do it, BUT ...

I think that the biggest restrictions on code re-use are:

#1 FINDing appropriate solutions and

#2 documentation.

Regarding #1, would a central code directory service be neat?

Regarding #2, even when best intentions exist to document, when updates/revisions/refactoring occurs, documentation is seldom updated, concurrently ... rendering the original good documentation intentions out of date. Let's face it, coders are not natural documentors; they HATE documenting. They don't even comment their code when on their best behavior, like providing code examples for books they write! So, how might they take advantage of the automatic documenation (updating) schemes, which depend upon commented code? Looking at most code, you'd think we were back in memory-constricted assembly language days.

In the absence of great documentation, most think "I could re-write this faster than I could figure out how this code works."

Just like good testing involves coding to test code, good documentation starts with coding to designs (e.g. UML diagrams or whatever). How many abide by these 'best practices'?

... and so it goes ... unfortunately.

Posted in /blog/2007/dec/php-advent-calendar-day-8.

Tue, 18 Dec 2007 at 21:07:54: Link


2

Thanks, Christian.

I was just reading Robert Richards' SOAP chapter and thinking that creating a WSDL document is butt-ugly!

Your options look more promising; so, thanks - for pre-doing the "homework".

Posted in /blog/2007/dec/php-advent-calendar-day-18.

Tue, 18 Dec 2007 at 20:29:49: Link


Stats

  • Member Since: 18 Dec 2007
  • Comments: 2

Web Site

openid.aol.com/MickCoughli

Blog Posts

Coming soon!