[..] small procedures rather than a few large oneThis also has the added benefit that is will probably be easier to test. chromatic writes (IntroTestMore.pdf, p32 of 69):
writing testable codeBe sure to read his Perl Testing: A Developer's Notebook.
- the smaller the unit, the better
- the simpler the unit, the better
In reply to Re^2: What habits do you have to avoid introducing bugs?
by andreas1234567
in thread What habits do you have to avoid introducing bugs?
by superfrink
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |