Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

From the commit that introduced this bug:

  The point of the question here is if anybody remembers why we decided not
  to parse command line args for the cgi version?  I could easily see it
  being useful to be able to write a cgi script like:
  
    #!/usr/local/bin/php-cgi -d include_path=/path
    <?php
        ...
    ?>
  
  and have it work both from the command line and from a web context.
  
  As far as I can tell this wouldn't conflict with anything, but somebody at
  some point must have had a reason for disallowing this.
Perfectly illustrating the utility of well-chosen comments in code.


In addition, it illustrates the utility of well-written commit messages with judicious use of the blame utility.


Thanks for digging that up, it's indeed a very strong example in favor of good comments.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: