On Sat, Dec 19, 2009 at 04:37:08PM +0100, Floor Terra wrote:
> On Sat, Dec 19, 2009 at 2:38 PM, Claudio Jeker <cje...@diehard.n-r-g.com> 
> wrote:
> > Ugh, a programming language where you can't copy paste from xterm to xterm
> > without fucking up the program is just way to much pain to work on.
> 
> I agree that copy/paste is a big problem in Python.
> But in my experience copy/paste of code in any language is dangerous.
> If you want to re-use code, write a function.

If you're copying and pasting, you're probably doing something wrong.

If it's a small example that you're using as a tutorial or as inspiration
to understand how something works, you probably should type it.
By typing it the information makes another pass through your brain
which can improve comprehension.
If it's large and part of something functional, it should have been 
in a tarball or under source control and there shouldn't be any copy/paste.

If your coding style involves a lot of copy and paste, you're repeating
yourself and probably should not do that.

With that said my python grumbles have been.

1) Developers that refuse to understand the packaging utilities available
and how they work with source control systems.

2) Packaging libraries that were written with CVS and subversion in mind that
completely break on current versions of subversion.

3) Inattention to detail in libraries.  IE the python ldap libraries
where results can be retrieved without a message id, but an exception
doesn't return the message-id for which it was raised.  
> 
> 
> 
> -- 
> Floor Terra <flo...@gmail.com>
> www: http://brobding.mine.nu/
> 

-- 
Chris Dukes

Reply via email to