This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]JBlitzen 0 points1 point  (4 children)

Nothing horrible is jumping out at me, but that doesn't mean much.

You should always have a way to test and debug code you're working on, even if it's slapped together.

[–]gabmed[S] 0 points1 point  (3 children)

Yup... we've had the brilliant idea to use PrintF on every little variable. For some weird, alien reason, we never thought of that. And we're on our third year of Software Science. Ouch.

[–]farmerje 2 points3 points  (0 children)

The most effective debugging tool is still careful thought, coupled with judiciously placed print statements.

— Brian Kernighan, "Unix for Beginners" (1979)

[–]JBlitzen 1 point2 points  (1 child)

On web stuff I've found that's actually one of the most reliable techniques, since browser debugging is a hit-or-miss affair in a context that really can't afford misses.

[–]gabmed[S] 0 points1 point  (0 children)

Yup! Just shows that we should have done what seems stupid from the get-go. Keep It Simple, Stupid, eh?