Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Null-stripping performance

by dragonchild (Archbishop)
on Feb 26, 2007 at 15:50 UTC ( #602155=note: print w/replies, xml ) Need Help??


in reply to Null-stripping performance

No matter what you do, this kind of function is going to be about 3 lines. It needs a good 30-60 lines of comments explaining what the problem was, why this solution is better, and demonstrating other solutions that didn't work as well. Furthermore, it should probably contain the URL to this thread so that future readers of your code can find the people who made the suggestions (Thelonius++) and make their own conclusions.

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Replies are listed 'Best First'.
Re^2: Null-stripping performance
by qiau (Initiate) on Feb 26, 2007 at 17:55 UTC
    First of all, I can't see what your replay has anything to do with my question.

    You acually don't have any idea of where/why/what/how I'm going to use this code. This feels more like you have a grudge against me personaly.

    I've been programming for about 20 years now and kind of know the value of documentation so I would be glad if you could tell me what I wrote to make you think that I didn't appreciate the help. Or that I had no clue of why I should comment my code.

    I'm not ironic, I would really want to know since I don't want to look stupid while posting questions here (as I do reading your reply). I know my english isn't super but most of the time english grammar affects programming as much as the color of the chair I'm sitting on, none..

    Best regards, Qiau
      99% of all questions on Perlmonks are from novice and intermediate programmers. As such, the concept of commenting difficult sections of code is alien to them. As this question deals with a counter-intuitive optimization, mentioning that commenting it well is a reply well-served for most people who ask questions here (and on #perl and on #cgiapp and ... etc).

      I wholeheartedly apologize if my reply insulted you - it was not meant as such. Note - I didn't even notice that you weren't a native English speaker.


      My criteria for good software:
      1. Does it work?
      2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2021-05-11 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (123 votes). Check out past polls.

    Notices?