Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^4: [OT] The joys of bad code

by Happy-the-monk (Abbot)
on Oct 26, 2004 at 11:27 UTC ( #402537=note: print w/replies, xml ) Need Help??

in reply to Re^3: The joys of bad code
in thread The joys of bad code

I do see the point in documenting it (not in what the code does, but why it does it)

So this is off topic: bad documentation does not bad code make.

Documenting what the code does isn't bad by itself, it just isn't needed at all if the people supposed to be reading the documentation can program already.

Imagine they can't, that kind of documentation might help them understand what's happening.

Cheers, Sören

Replies are listed 'Best First'.
Re^5: [OT] The joys of bad code
by hardburn (Abbot) on Oct 26, 2004 at 13:38 UTC

    If they can't program already, why are they digging around in code?

    Over-documentation does make bad code. The documentation in the cases above is highly redundant with the actual code. Humans like some redundancy to keep communication robust, but there is a threshold where it just becomes silly. Flowerbox comments like the above go well past that point.

    "There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

      why are they digging around in code?

      We can never know, can we?
      Just a happy guess: to learn from a code example?
      Another one: to do something we would not want them to do?

      I wasn't advocating that kind of documentation, if you thought I was -
      But some managers strongly do that.
      I do understand their views, even though I think they are flawed.

      Cheers, Sören

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://402537]
[erix]: I think they use Cormorants for that in Asia, by putting a ring around their necks to prevent them from swallowing. Plenty of cormorants here too (=Kormoran)
[erix]: (I've seen gruops of up to a thousand cormorants overhead)

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2017-10-20 10:57 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (261 votes). Check out past polls.