by austinpray · 8y ago · 0 comments
When it came time for the researchers to submit transcripts I had the pleasure of reviewing probably the worst python program I have ever seen.
1) The request JSON was manually built using strings and string substitution. One immediate bug I saw was that the researcher forgot to wrap one of his keys in quotes. `{key: “val”}` is not valid JSON of course.
2) The python program did not actually make the web requests. It generated curl commands as strings and then printed them to std out.
3) The researcher then took all these generated curl commands and evaled them.
You seriously can’t make this stuff up.
No comments yet.