Posts Tagged ‘programming’

This tutorial discusses some techniques of functional programming that might be of interest to mathematicians or people who use Python for scientific computation. We first start off with a brief overview of procedural and object-oriented programming, and then discuss functional programming techniques. Along the way, we briefly review Python’s built-in support for functional programming, including [...]


Here’s a quick tip for renaming multiple files with the same name <name> but different extensions <ext>. You want to retain the extensions and only change <name> to <new-name>.

for i in `ls`; do
mv -fv “$i” `ls “$i” | sed ’s/././’`
done


30 years of C by Landon Dyer — Some rules on good programming practices.
Digging Yourself Out of A Debugging Hole by Martin Aspeli — General debugging tips and using programming/debugging tools.
Flymake Mode for Emacs / Python — Flymake, an on-the-fly Python syntax checker for Emacs.
pep8 – Python style guide checker — Checking Python code against [...]