Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I did a similar thing when writing Java code for university assignments. Usually, generating test data required either writing a handler to pull it in from a file, or just writing a lot of Java code to manually load it into memory.

I wrote Python scripts which spat out the method calls with the appropriate arguments.

Yes, I could probably have written an abstraction to create the data set in Java, but it worked out faster to write it in Python, and one doesn't get marks for generating test data.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: