goonlord ([info]goonlord) wrote,
@ 2009-02-03 08:14:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
Greene's Law for Programming Library Construction
If you have an interesting idea for a library, spend a bit of time figuring out how it would work, what sort of calls you want. Then figure out what the technical name ought to be for the type of library you have constructed (doesn't matter if you make up words to accomplish this).

Google the name and find out that it's already in the standard library.

"Iterator Algebras"
http://docs.python.org/library/itertools.html

(note that this is not strictly what I was looking for, but the obvious interpretation for what it would mean to have iter1+iter2 is obviously either itertools.chain or itertools.izip. I wanted izip).


Advertisement


(No comments)

Post a comment in response:

From:
Help
Identity URL: 
Username:
Password:
Don't have an account? Create one now.
Subject:
No HTML allowed in subject
   Help
Message:
 
Notice! This user has turned on the option that logs your IP address when posting. Help
Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…