Recently, I wanted to write a test case that I was sure would lead to an error in the application. Yet, I could not, as the testing framework was written in the same programming language as the application, lacking the expressiveness needed for the test case. Then that thing happened again.
Example: Mocking requests that contain U+2028 or U+2029 from JavaScript. Those characters are valid in JSON, but not in JavaScript … if your test framework is written in JavaScript, how do you even mock these requests? I believe there might be some lesson about the power of languages hidden in my experience, but I am not sure what exactly it would be. It reminds me of Kerningham's lever (The Elements of Programming Style, Chapter 2): > Everyone knows that debugging is twice as hard as writing a program in > the first place. So if you're as clever as you can be when you write > it, how will you ever debug it? Greetings, -- Nils Dagsson Moskopp // erlehmann <http://dieweltistgarnichtso.net>
signature.asc
Description: PGP signature
_______________________________________________ langsec-discuss mailing list langsec-discuss@mail.langsec.org https://mail.langsec.org/cgi-bin/mailman/listinfo/langsec-discuss