We're going to do a double feature this week! (Followed by the normal happy hour, of course!)
or, The Blacksmith and Gardener
In this talk, I look at programming as an activity of invention and a
creative endeavour. I contrast the "forging of code" style
problem-solving that we do with a more reflective approach, recognising
and trying to draw out the experiences that we've all had where
solutions seem to come to us organically. I offer some techniques for
encouraging the use of our whole brains in solving problems rather than
just the analytical approaches we typically associate with programming.
A View to a Thing
We're going to do a quick exploration of a use case for lambdas - type erasure. The goal is to see if we can make a `map_view` type that can take any map-like thing by reference, giving a stable interface and avoiding templates in our function definitions.
If we succeed, code like this should compile: