News for hackers. Stuff that matters.
Re:Want to learn to code? Don't copy and paste, type out oth... by christensen_emc on Friday December 14, 2012 @02:47PM (#4922882)
If I may add to this, I found it really helpful to comment out every line as I went. Even today, when I want to learn new languages or frameworks I pick a repo on github and copy the whole thing line for line, commenting as I go. I found that this helps a lot.
Re:Want to learn to code? Don't copy and paste, type out oth... by rayiner on Friday December 14, 2012 @06:04PM (#4923849)
I work this way too, and for the last several years I have been looking for software that would let me mark up some code without actually changing the underlying source files (keeping the annotations on the side). Putting your own comments in screws up diffs and all sorts of things like that.
Re:Want to learn to code? Don't copy and paste, type out oth... by gurch101 on Friday December 14, 2012 @06:46PM (#4923959)
you could try stripping comments before diff'ing. If you have single line comments you can use diff -I otherwise try this: http://freecode.com/projects/stripcmt