Generators and closures are two special function types that can come in handy under the right circumstances. To illustrate the basic usage and differences I will use some example code. # python def inc_by_10_generator(): # returns infinite series of 10’s starting at 10 – recalls position i = 10 while True: … Continue reading
Posted in April 2014 …
Running a Django Development Environment with Vagrant
One tool I’ve come to appreciate recently is Vagrant. Vagrant allows you to run a portable, virtual, OS instance. This means that if you work on more than one machine you don’t have to worry about having the same environment set up on each one. The vagrant install mounts your local home directory in the … Continue reading