LOTD: 2007-06-21
2007-06-22 / 11:38 / dave
- Neat notation for Python closures. Replace the ugly “ndx = [0]” in my closures. Still trying to figure out what’s worth putting in a higher order function. Is it worth a “count(func, total=None, outstream=sys.)” wrapper to keep track of (and optionally report) how many times a function’s been run. It seems trivial, but I’ve used it three times to monitor long running functions. I guess Dave Thomas would say it’s time.
- One is the loneliest number. Never program alone! I agree… my coding improves whenever I’m working with someone else. And I don’t feel bad talking through design ideas with myself.
- Total Functional Programming [PDF] (via LtU). Blows my brain wide open. I don’t understand everything, but removing a class of programming errors by enforcing constraints that prevent halting is interesting. Good comments in the Lambda: the Ultimate thread.
- The Dunning-Kruger Effect. Oh crap, we’re going to hell!
