I wrote a free book about TDD and clean architecture in Python
Leonardo Giordani
giordani.leonardo at gmail.com
Thu Mar 21 09:21:21 EDT 2019
A couple of people asked the link to the post I mentioned, sorry I forgot to add it
http://www.thedigitalcatonline.com/blog/2017/07/21/refactoring-with-test-in-python-a-practical-example/
This is just a very simple exercise in refactoring, but I believe it's a good starting point for people who never faced such a task. Enjoy!
On Thursday, 21 March 2019 11:17:11 UTC, Leonardo Giordani wrote:
> Akkana, yes that is a good idea, even though I expected the LeanPub output to be already the correct one. I'll check with them.
>
> Thanks for reading the book, you actually gave me an idea: writing something about adding tests to a project *after* the code has been written. I already wrote a post on it, with a practical example, and this might be interesting. Many people discover TDD after they already wrote some code.
>
> Thanks
>
>
> On Thursday, 21 March 2019 01:15:40 UTC, Akkana Peck wrote:
> > > On 20/03/19 7:18 AM, Leonardo Giordani wrote:
> > > > Ha ha ha, yes I get it! =) I'm sorry, that depends entirely on the LeanPub processing chain (I believe, I'll have a look just to be sure). I hope the book will be useful even with this little issue. Thanks for reading it!
> >
> > DL Neil writes:
> > > Yes, I'm happy reading from cover-to-cover. Unfortunately, not being able to
> > > refer back to (say) the Mocks chapter, means it will be of little utility
> > > (to me) in-future.
> >
> > For what it's worth, the epub version has chapter links that work
> > fine. So maybe you could download the epub version, and use calibre's
> > ebook-convert to make a mobi version?
> >
> > Nice book, Leonardo. I haven't finished part 2 yet, but part 1
> > inspired me to go write some new tests for some of my existing programs,
> > and I'm planning to try test-first development for my next project.
> >
> > ...Akkana
More information about the Python-list
mailing list