Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2016-10-22 00:03 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (291 votes). Check out past polls.