▲ | giveita 3 days ago | |||||||||||||||||||||||||||||||
I have a boring opinion. A cold take? served straight from the freezer. He is right, however AI is still darn useful. He hints at why: patterns. Writing a test suite for a new class when an existing one is in place is a breeze. It even can come up with tests you wouldnt have thought of or would have been too time pressed to check. It also applies to non-test code too. If you have the structure it can knock a new one out. You could have some lisp contraption that DRYs all the WETs so there is zero boilerplate. But in reality we are not crafting these perfect cosebases, we make readable, low-magic and boilerplatey code on tbe whole in our jobs. | ||||||||||||||||||||||||||||||||
▲ | skydhash 3 days ago | parent [-] | |||||||||||||||||||||||||||||||
But what about the tests usefulness? Tests enforce contracts, contracts are about the domain, not the implementation. The number of tests don't actually matter as much as what is being actually verified. If you look at the code to know what to tests, you are doing it wrong. | ||||||||||||||||||||||||||||||||
|