News for hackers. Stuff that matters.
Re:What most young programmers need to learn by loqi on Monday January 05, 2015 @02:03PM (#8840469)
I've gotten in the habit of adding trailing whitespace when I comment out code or do any printf debugging. It's still quick, but then git yells at me if I try and commit it.
Re:What most young programmers need to learn by eric_h on Wednesday January 07, 2015 @07:30PM (#8854316)
That's an interesting way of dealing with it - I have my text editor strip trailing whitespace and ensure there's a newline at the end of the file on every save, so it wouldn't work for me.

That's okay though. I visually review the diff before I commit (almost) every time.