It’s just data

Baby Pyrate

I'm putting this out here so that people can poke fun at it.  It is totally TDD, and YAGNI.  In fact, the only portion that has had more than a few moments of thought put into it is in the ast.__init__ source file.

I'm totally impressed by Michal's Pirate, in a put everything in one source file as the author has the whole problem in his head sort of way.

What I would like to see is a refactoring so that blocks of code are objects which understand their own symbol tables.  My goal is to implement patterns which reflect how a human coder would chose to implement something in Parrot.


Sam, I'm just wondering, was it the author's intent to be using eXtreme Programming? I assume so, but I wonder if you know for certain?

Posted by Randy Charles Morin at

Randy: if you mean the author of pirate, then sort of. I was definitely following a test-driven approach, but not XP per se.

Sam: one idea we tossed around quite a bit was to put all the code into a template system, preferably one where you could override certain chunks for different results.

As an interim step, Allen Short (dash on #python and #twisted) and I were kicking around the idea of separate objects for each "visit" method, kind of like what you have here. He began a major refactoring at one point (which also included some neat compiler optimizations), but I don't think he ever finished, or kept the tests up to date while he was moving things around.

Posted by Michal Wallace at

I'm willing to pick up the refactoring work, and I'm a firm believer in keeping the tests up to date at all times.

Posted by Sam Ruby at

Sam Ruby: Baby Pyrate

[link]...

Excerpt from del.icio.us/tag/python at

Add your comment