(Untitled)

Dec 29, 2011 12:08

I've been writing some Perl code recently, and a couple of ideas have occurred to me.
  1. Closures are great when you have several behaviours which can all vary independently; objects are great when you have several behaviours that must all vary in sync with one another. Put another way: if your problem is combinatorial explosion of objects, try using ( Read more... )

computers, programming, beware the geek

Leave a comment

Comments 3

necaris December 31 2011, 01:02:40 UTC
+1 to your second point -- I've not thought about it exactly that way but I have certainly experienced that "working on housekeeping stuff and letting the tough things percolate in your L2 cache" effect :-)

Reply


anonymous January 2 2012, 15:52:28 UTC
'bg'-ing thought processes is a form of problem solving I'm very much in favour of, although I generally find option (b) to be more effective than doing housekeeping.

what works for you, etc.

-mat

Reply

pozorvlak January 3 2012, 01:14:10 UTC
Option (b) can be pretty effective for me, but only if I've previously devoted enough thought to the problem. Doing related housekeeping tasks isn't as good at building up thought-hours as working directly on the problem, but it does help. Several good ideas occurred to me as a result of the housekeeping/doing something completely different combo.

Reply


Leave a comment

Up