Month: November 2009
-
python and class methods
Yes, they are supported, but you have to use an extra magic function call: classmethod = classmethod(classmethod)
-
software documentation
From the book Expert Python Programming, “Documenting Your Project“, “Use a Simple Style“: You are not writing fiction, so keep the style as simple as possible. And with a few more words: (Another author) made an analysis […] to try to understand, why his books sold so well. He made a list of all best…
-
using associative arrays in your code
How many lines of code does it take for your new piece of code, before you introduce an associative array? How many lines of code does it take for your new piece of code, before you introduce a class? Yes, I know, Bourne shell doesn’t come with the concept of associative arrays, of course it…
-
how to abbreviate the word Character and how German programmers pronounce it
We know, that in a few “modern” programming languages the word “character” as an IT term gets abbreaviated as “char“. Do you have any idea, of how many coders pronounce it? They pronounce it like the “char-” as in “Charlie“. Why would actually anybody pronounce the abbrevation so much different to the unabbreviated word?
-
how to use UNIX tee to send output to more than one pipe?
I have a necessity for that usage, I googled for it, found an answer here on UNIX.com, but I thought, there might be something slicker. I got myself an account there in order to tell the initiator of that thread, what I am going to find out, but sadly enough, he got banned since. That…