--

I seem to be having trouble spotting the tests in your example. I don't think you can really compare two different ways of writing code unless you also look at how easy or hard it is to write the corresponding tests.

--

--

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.

Responses (1)