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

Re^7: regexp class (no bugs)

by tye (Sage)
on Sep 03, 2011 at 15:52 UTC ( #924004=note: print w/replies, xml ) Need Help??

in reply to Re^6: regexp class
in thread re: regexp class

Adding functionality would be a feature request, not a bug report.

The following test suite provides 100% code and feature coverage:

use Test; BEGIN { plan tests => 1 } do '/dev/null'; ok( ! $@ ); # Empty text compiles w/o error # Test all features:

- tye        

Replies are listed 'Best First'.
Re^8: regexp class (no bugs)
by JavaFan (Canon) on Sep 03, 2011 at 18:08 UTC
    So, if you send an empty file to your next client, and he responds with "this program actually doesn't do as we agreed on", you charge him because he wants additional features?

      No, of course it would not be an "additional feature" request. It would be an original feature request. "This code doesn't have feature $X" is not the same as "This code is buggy". Failing to implement required features makes the code incomplete. It doesn't mean the code contains any bugs.

      Code being bug-free obviously does not mean that there are no features that it leaves unsatisfied.

      But the empty program successfully implements the following important features:

      1. Compiles without errors
      2. Validates all required inputs
      3. Reproduces itself
      4. Does not allow any SQL injection attacks
      5. Produces all output in UTF-16
      6. Produces all output in 7-bit ASCII
      7. Produces all output in Big5
      8. Logs detailed error reports if any operation it attempts fails
      9. Exits immediately if used as part of any illegal or immoral activity
      10. All output is automatically translated into the viewer's native language, even if there are multiple simultaneous viewers
      11. All network communication is encrypted so that not only can the NSA never decrypt a single byte of it, they can't even detect it

      - tye        

        You forgot some: 12. Has minimal cpu, memory & IO requirements :)

        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.
        Failing to implement required features makes the code incomplete. It doesn't mean the code contains any bugs.
        That's an utterly weird definition of not having bugs.

        Pray tell me, how do you define a bug? I guess if the requirement is to multiply two numbers $x, and $y, $x + $y isn't a bug, it's merely incomplete (it just doesn't do the right thing yet for inputs other than (0, 0) or (2, 2)).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://924004]
[stevieb]: it's a reminder to re-inforce it :P
[atcroft]: james28909: That particular questions was a bit of trick, actually (depending on the country you are in). More interesting is, if you are trying to subtract from an epoch time, for instance, you might have to consider when/if DST occurs for a location,
[atcroft]: because you may have to adjust the number of seconds you change from an epoch from 86400 (not to mention leap seconds)....
[atcroft]: james28909: Although if your program is using a database, you might be able to "pass the buck" to the database and ask it to do the date change for you....

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2017-04-29 04:37 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (531 votes). Check out past polls.