A bit off-topic
Mathijs Kwik
1 post
|
Dave, in episode 7, you mention you should do unit testing when metaprogramming. I would be really interested to see you work through episode 7 with unit-testing. Like you said, this breaks up the flow too much for the original screencast, but maybe you can do a separate one on that? This would greatly help me find a nice and safe workflow when metaprogramming. Thanks, |
Dave Thomas
Administrator
70 posts
|
Mathijs: To be fair, I didn’t say I don’t do unit testing when metaprogramming. I just said I wasn’t doing it in the screencast—after all, it’s already over 50 minutes, and Mike Clark gave me a 30 minute target… Remember that metaprogramming is orthogonal to your final code. When you write tests, you write tests for the metaprogramming implementation separately from the tests you write for your use of that metaprogramming. And, because they are unit tests, it’s OK to know about the implementation. Dave |
2 posts, 2 voices
