Saltycrane logo

SaltyCrane Blog

Notes on Python, Django, and web development on Ubuntu Linux

     Posts tagged "wide"

DeclarativeFunctional vs. imperative style in Python

Which is better for Python? An imperative / procedural style or a declarative / functional style? Why? I put some examples I've encountered below.

Update 2010-04-10: As dan and pete pointed out, the examples below are not declarative, so I replaced declarative with functional. I've also added a better method for example 1 suggested by deno.

Imperative DeclarativeFunctional

Example 1 ...

... read more »

My software tools list

Inspired by Mark Pilgrim's 2006 Essentials list, below is a list of my current software tools. If you notice a lot of "I switched from ..." statements, keep in mind that I am a programmer who likes shiny things.

Other lists

... read more »
Created with Django | Hosted by Linode