“Prime Testable” Code
powerfulpython.com
powerfulpython.com
Got a little bit disappointed in the content of the article. In fact, the whole article amounts to the three sentences of information "Write functional code. If it doesn't work, reorganize. Try it and let me know". I wish the author at least pointed how to convert the code to the testable state. Not to mention the "reorganization part" totally blows all the meaning out of all previous sentences -- if writing pure functions may not work, does what you say even matter?