[python-uk] Game of Life / TDD ideas
david.read at hackneyworkshop.com
Tue Feb 7 16:58:11 CET 2012
On 7 February 2012 13:41, Nicholas H.Tollervey <ntoll at ntoll.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Hey David,
> On 07/02/12 11:36, David Read wrote:
> > Those of us at last week's London Python Dojo had fun hacking
> > together
> A shame I missed it :-(
> > little animated Game of Life simulators. My team's data model was
> > based on a set of the alive cells, rather than the world as an
> > array / list of lists, and its a choice I pushed for having
> > recently read an extremely relevant blog post:
> > http://emilybache.blogspot.com/2011/12/global-day-of-code-retreat.html
> > I mentioned it to some of the people in the pub afterwards and
> > wondered if the rest of you would be interested.
> > Emily r
> > <http://emilybache.blogspot.com/2011/12/global-day-of-code-retreat.html
> Python Dojos in Gothenburg and provides "clean code" training for
> > companies, so practises doing problems like Game of Life time
> > after time. She aims for clarity / pythonic-ness and practising
> > different coding methods to get high quality.
> > I was particularly interested to watch her screen cast
> > https://s3.amazonaws.com/ryanbigg_screencasts/Game+of+Life+-+Full.mov
> > where she goes through her practised version of Game of Life
> > whilst demonstrating several of the latest ideas in the TDD world.
> > It's quite different to most people's ways of thinking / coding,
> > and perhaps won't be to everyone's tastes, but it's definitely food
> > for thought!
> It's definitely an interesting read. I especially liked the Norvig quote:
> "you can test all you want and if you don’t know how to approach the
> problem, you’re not going to get a solution"
> Which chimes with Rich Hickey's (creator of Clojure) "Hammock Driven
> Development" (see:
> http://blip.tv/clojure/hammock-driven-development-4475586 - definitely
> worth a watch all the way through). I.e without thought, wisdom,
> exploration or time to reflect on a problem it doesn't matter what *DD
> you're practising you're not going to get good results. He also warns
> against what he terms "guard-rail" development in
> http://www.infoq.com/presentations/Simple-Made-Easy (around the
> 14-18min mark) and again emphasises simplicity and understanding
> trumps methodology.
Cheers for the links - he is great fun! That analogy about "guard-rail
programming" though, it's the old joke about how you'd never buy a car that
crashed as often as Windows does! I think I'd liken TDD to concepts such as
"cross-referencing", "feeling your way" or a "tight feedback loop". Not
that I'm claiming to be an expert or anything. But anyway, vive la
I like your idea of 15 minutes planning. I wonder though if presenting them
all may have the reverse effect and kill off any maverick designs?
Definitely worth trying it out though.
> Given the high-energy coding that happens at the dojo I'm currently
> trying to think of a way to preserve the enthusiasm whilst allowing
> participants a chance to reflect on the problem without jumping in to
> create an unholy mess of spaghetti code. As you may know, I feel very
> uncomfortable promoting "one true way" to do development since I think
> it's essential that people discover what works best for them after
> reflection and exploration of lots of different solutions rather than
> forming habits due to a "that's just how it should be done" mentality.
> In any case I was going to suggest a 15minute design-time followed by
> a "stand up and explain" session of each group having 1 minute to
> explain what they're going to code (erm, sort of lightning-lightning
> talks). Of course groups could copy / learn from other's designs.
> Let's see what happens next time. :-)
> Thanks Dave for leading me to the blog post. Definitely food for thought!
> > Dave
> > _______________________________________________ python-uk mailing
> > list python-uk at python.org
> > http://mail.python.org/mailman/listinfo/python-uk
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> -----END PGP SIGNATURE-----
> python-uk mailing list
> python-uk at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the python-uk