Upgrade to Pro — share decks privately, control downloads, hide ads and more …

So you want to write a framework? Accidental le...

So you want to write a framework? Accidental lessons from a successful project

Opening keynote from PyCon PH 2014

Russell Keith-Magee

February 22, 2014
Tweet

More Decks by Russell Keith-Magee

Other Decks in Programming

Transcript

  1. So you want to write a framework? Accidental lessons from

    a successful project Dr Russell Keith-Magee PyCon PH 2014
  2. "Batteries Included" Frameworks "Everything comes in the box" One package

    to download/install Minimal dependencies No decisions to make Documentation on the parts
  3. "Best of Breed" Frameworks Pick from existing selection of libraries

    Glue logic to tie them together Many dependencies Multiple decisions may be required Documentation on integration
  4. “ A rule of thumb that has worked for me

    is that if I'm excited to play around with something it probably doesn't belong in production ” Maciej Ceglowski (Pinboard)
  5. Models and Forms class MyUser(models.Model): name = models.CharField(max_length=100) age =

    models.IntegerField() date_of_birth = models.DateField() class MyForm(forms.Form): name = forms.CharField(max_length=100) age = forms.IntegerField() date_of_birth = forms.DateField()
  6. “ A society grows great when old men plant trees

    whose shade they know they shall never sit in. ” Greek proverb