Xavier Olive research teaching python blog til cli

The zen of NumPy

19 August 2014

Just found here an attempt to rewrite The Zen of Python for NumPy.

Strided is better than scattered
Contiguous is better than strided
Descriptive is better than imperative (use data-types)
Array-oriented is often better than object-oriented
Broadcasting is a great idea – use where possible
Vectorized is better than an explicit loop
Unless it’s complicated — then use numexpr, weave, or Cython
Think in higher dimensions

Couldn’t agree more :)