Entries tagged: python

  • #179

    Presenting Django Password Required

    Another little open source project of mine, a reusable Django app for simple password-based access control.

  • #32

    Code’s worst enemy

    An old, but still highly relevant rant by Steve Yegge:

    A design pattern isn't a feature. A Factory isn't a feature, nor is a Delegate nor a Proxy nor a Bridge. They "enable" features in a very loose sense, by providing nice boxes to hold the features in. But boxes and bags and shelves take space. And design patterns – at least most of the patterns in the "Gang of Four" book – make code bases get bigger.

    Some things are hard to explain, but I think Yegge does a fairly good job here. I think I may understand him. I haven’t written any 500.000 line codebases, but I learned object-oriented programming the Python way, and I’ve come to appreciate the zen of Python:

    Simple is better than complex.
    Complex is better than complicated.
    Flat is better than nested.
    Sparse is better than dense.
    Readability counts.

    and:

    If the implementation is hard to explain, it's a bad idea.
    If the implementation is easy to explain, it may be a good idea.

    Visit: http://steve-yegge.blogspot.com/2007/12/codes-worst-enemy.html

  • #54
  • #10