This past few days I’ve been wrestling with a minor flaw in my porting plan, namely that some files are reference not methods but constants, and I have no idea what values to assign to them. I’ve been picking random values to get the build to progress, but that’s just storing up hard to debug errors for when I finally get to run the thing. But I finally figured out how to do this properly:
- Every time make complains about a missing file, touch it.
- Every time something complains about a missing method, stub it with something that throws an error.
- Every time something complains about a missing constant, create one randomly but mark it with XXX EVIL.
Then:
- Remove all evil constants, and stub everything that needed them with the same error-throwing thing as before.
- Every time a stub gets hit, write the real method.
I’m glad I figured this one out, it’s been bugging me.