Hacker News new | ask | show | jobs
by johnminter 4634 days ago
That's where version control helps. Save and commit frequently. It is much easier to go back to just before the problem and insert smaller chunks. Found many an error this way. Selective cutting of sections and stashing them in a text editor works as well.