News for hackers. Stuff that matters.
Re:Where Yegge’s Wrong by mattmanser on Monday March 26, 2018 @07:05PM (#16683521)
It's wrong anyway, if you're someone who doesn't bother with unit tests writing front-end code is still a nightmare compared to back-end programming. So it can't be the unit tests that are the problem.

It's more a problem that iterating/debugging/testing is generally so much harder for front-end, however you do it and regardless of whether you're dogmatic about unit testing or not.

Focusing on the difficulty of unit testing is simply focusing on one of the symptoms rather than the root cause.

Like in backend code, I can back out of a method, rollback to the start of a call and re-run it all again when debugging. In front-end code, that's simply not possible because there were a bunch of user interactions and you can't re-run them, you have to restart and click, click, click.

There are no comments on this comment yet.