News for hackers. Stuff that matters.
Re:Ask HN: How to prevent bugs in your code? by RollAHardSix on Tuesday March 13, 2012 @12:59PM (#3699256)
Pass the code around to group-think.

Test-Cases!

Pray to Buddha to bring you a pony and a plastic rocket.

'Read' your code. Start at the top, draw your way (manually) all the way down through each line, each decision structure, until you have reached the end. Then go back up and do it all again but with a slightly different path. (Not for large code segments; more just for smaller, components.)

There are no comments on this comment yet.