Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^8: Programming *is* much more than "just writing code".

by BrowserUk (Patriarch)
on May 14, 2007 at 09:50 UTC ( [id://615257]=note: print w/replies, xml ) Need Help??


in reply to Re^7: Programming *is* much more than "just writing code".
in thread Programming *is* much more than "just writing code".

The question at hand is that if you are going to do something like this (e.g. use a mildly obscure feature such as a hash slice) is there something heinous about labeling it as such in a comment.

No. But now we have come full circle. I set out in the OP to refute the idea that "... programmers who do not extensively comment their code are lazy, or bad, or otherwise detrimental to the world of programmer-kind.".

Ie. to refute the idea that not commenting the use of those features that an original programmer thinks that some of those that follow him might consider mildy obscure, is heinous.

The purpose of the node was to point out that commenting is a double edged sword, with definite costs and ethereal benefits.

So, I think that we are almost agreeing here. We just seem to be at opposite ends of the middle ground between those that appear to consider code incomplete unless it is possible to get a pretty complete idea of what the code is doing from reading the comments alone; and those that think that comments have no value at all. Though I must admit that a) I've never seen anyone who actually vermently advocated the latter position; b) I'm much closer to that end than you are to the other it seems.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^8: Programming *is* much more than "just writing code".

Replies are listed 'Best First'.
Re^9: Programming *is* much more than "just writing code".
by doom (Deacon) on May 14, 2007 at 16:48 UTC
    The purpose of the node was to point out that commenting is a double edged sword, with definite costs and ethereal benefits.
    The benefits are only as ethereal as any attempt at communication, and the programmer that doesn't understand that the source code is an attempt at communicating with human beings (as well as with a compiler), has some problems as a programmer.

    And I think you continue to exaggerate the costs. I don't think I've ever been confused by an out-of-date comment for any length of time... as I've said before, the fact that the comment is out-of-date can itself be an interesting hint about what's been going on.

    On the other hand, I've definitely been confused by devotees of "self-documenting" code: that's a philosophy that has a definite cost if you ask me.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://615257]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-20 03:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found