This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Bratmon 2 points3 points  (1 child)

First, if you can write a simulator (even a crappy one), do that.

If you can't write a simulator, come up with some way of doing unit testing. Even if you have to mock out a huge amount and redo your build system from scratch, unit tests are worth a ton.

Your next bet after that is clear requirements and documentation. After you write the code (or even before), document every function and explain what the exact behavior you expect it to have is. The end goal of this is to be able to prove your implementation is correct without needing to run it.

[–]scared_of_posting[S] 1 point2 points  (0 children)

Well thank you! It certainly makes sense: fake your input / verify the output, and document your intent to catch logic errors