Writing clean, testable, high quality code in Python
ibm.com
ibm.com
There's also a pretty good series of recorded lectures Berkeley gives in conjunction with the book over at http://academicearth.org/courses/the-structure-and-interpret... if you have lots of free time.
But, yeah, look, the article is 'fine', but not much more, and very unfortunately.
Does anybody know of a similar article re modularisation with a more transparent example, and a more detailed transition between hypothesis and conclusion? He just seems to say 'less complexity', ???, 'profit'.
What i would like to see :- what in python we can use that will help us write quality, concise code. Things like using list comprehensions, using magic methods, higher order functions(decorators...) and may be something else that i didn't knew.
They help make code more declarative rather than filling it with implementation logic. Anyone can just read the code and understand it instead of getting bogged down with the implementation. Especially list comprehensions. [len(i) for i in k] is much better than reading a for loop implementation looping through k and append len of each object in the loop to a result array
x = [] for i in k: x.extend(len(i))
is really, really easy for me to understand instantly, if I have just been writing an actuarial model using R, c++, c#, vba, sql, html, css and python for the day, which I have.
Shortness is not always conciseness, methinks.