Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Random thoughts on programming

by Maclir (Curate)
on Feb 20, 2001 at 02:14 UTC ( #59499=note: print w/ replies, xml ) Need Help??


in reply to Random thoughts on programming

A few thoughts:-

  1. Programmers will test their code to make sure it works. Users will test code to see where it breaks.
  2. Always look to see where you have hard coded limits. Things like numbers of variables in some array or structure, maximum / minimum values, things like that. Make them at least a globally defined value, so you only have to change things once when the user will (eventually) say "now could we make it do this . . . ".
  3. Data validation - it is easier to assume all data is wrong, and test to see if it is correct, than to assume it is correct, and look for errors. This, of course, sits well with the taint concept. And if the requirements change ("well, can we now handle negative rates of growth?"), you only need to add an additional validation test, or modify an existing test.


Comment on Re: Random thoughts on programming

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2014-07-14 05:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (255 votes), past polls