Thursday, August 05, 2010

Do not copy paste, do not use autocompletion

I do not believe in auto-completion help in an IDE. Nor do I believe that you should copy-past code snippet to "be faster".

I believe that your brain must have the purest form of the source code in its memory: the sequence of statement or a visual image of the functions. The last thing you want to do is to "corrupt" this mental image with "grey areas" that you brain has not learned in a compatible manner. Everytime you use auto-complete you push aside your brains and take a short cut. Same for copy past. Copy past may be in your mind because there exists a pattern that maps the orginal understanding of the source to the copied version.. But in such a case, you are introducing redundency, so better not do that.

No comments: