It's damn easy to sculpt tests to make yourself look good - or others look bad. I'd be a liar if I said that I didn't knowingly write tests that emphasized our best selectors in jQuery. Of course, everyone does this - it's a game of tactics. The issue, though, is that this sort of strange test writing behavior only arises when you're competing on stats - you want your code to look the best that it can. It's only when you divorce yourself from competition, and take a step back, that you can truly start to understand what it is that's most important to users and what's a true performance problem.
SaveShareSend
Tags: frameworks, javascript, opinion
Add your comment