====== 2013.02.09 - programming wat ====== as a part of exercising my (basic) [[wp>Python (programming language)|python]] skills i've decided to write short [[wp>HTML]] links extractor and combiner, to download a series of [[https://class.coursera.org/crypto-preview/lecture/index|lectures on cryptography]] (which, btw i highly recommend!) to disk. as an experienced [[wp>C++]] developer, having to increment variable, as a part of the loop, i typed: ++i and... it didn't increment. wtf? quick search showed that python uses "+" and "-" as sign indicators, for number and thus parses "++i" as "+(+i)", which gives "i". WAT? and this is how i reminded myself of an short, excellent talk about "nice" [[https://www.youtube.com/watch?v=0QZgx45aGCA|pitfalls in rubby and javascript]]. good news: - just learned something new - had some fun bad news: - got late - want sleep