529 karma · joined April 1, 2015
You can read the first 1/3 online for free. The rest is available DRM free.
Or directly here:
https://talkpython.fm/episodes/transcript/100/python-past-pr...
1. Instantiate the dict each time, make the code super readable and the choices right next to where they are used.
2. Make the code efficient, move the dict to a static / instance level variable away from the use case at the cost of clarity and maintainability.
My slide chose clarity and I would recommend you write clear code over fast code until you profile it and see it's too slow.
That was my motivation for the slide and demo.
As for the materials, good link. I'll be releasing 10 of the 50 topics as a free video series outside the course over the next few weeks.